Added some more interfaces to prepare for Tarjan's algorithm implementation.