Topological sort

template<class G>
class TopologicalSort

Public Functions

inline TopologicalSort(const G &g)
inline bool isPossible() const
inline const std::vector<int> &topologicalSort() const

Private Members

bool m_isPossible
std::vector<int> m_topologicalSort
std::vector<int> m_states