MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / topologicalSort

Function topologicalSort

graph/topological_sort.cpp:95–118  ·  view source on GitHub ↗

* @brief Function to get the topological sort of the graph * @param g Graph object * @returns A vector containing the topological order of nodes */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testFunction · 0.85

Calls 7

getNumNodesMethod · 0.80
push_backMethod · 0.80
dfsFunction · 0.70
emptyMethod · 0.45
topMethod · 0.45
popMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected