When applying TarjanSCC to a graph, new nodes are created. At present time, these are strings, which may cause problems in code relying on correct type of nodes.
A workaround would be to provide a factory for correct type of nodes to the TarjanSCC object.