YMbh

YMbh / StronglyConnectedComponents / 0.1.0

README.md
Input: an array of directed Edges where each edge is given by a start and end vertices {"start": "vertexA", "end": "vertexB"}.
Output: the algorithm returns an array which maps vertices to natural numbers describing to which connected component the vertex contains like {"vertexA": 1, "vertexB": 4, ....}.