Topological sort that returns an edge compatible ordering of the vertices. Translated from pseudo-code and implements Tarjan's algorithm. The topological sort will contain NEGATIVE values, if there is a CYCLE.
Topological sort that returns an edge compatible ordering of the vertices. Translated from pseudo-code and implements Tarjan's algorithm. The topological sort will contain NEGATIVE values, if there is a CYCLE.