made topsort / reverse / scc graph member functions
updated to use the respective member functions