Given a directed acyclic graph, and a set of edges, this algorithm will determine the given edge's types (front, back, tree, cross edge).