Introduction - If you have any usage issues, please Google them yourself
The realization of topological sort: a directed acyclic graph, expressed as an adjacency matrix graph [n] [n], which graph [i] [0] for the vertex i of income, the remaining node to its successor.