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

Function dfs

graph/topological_sort.cpp:79–88  ·  view source on GitHub ↗

* @brief Function to perform Depth First Search on the graph * @param v Starting vertex for depth-first search * @param visited Array representing whether each node has been visited * @param graph Adjacency list of the graph * @param s Stack containing the vertices for topological sorting */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

topologicalSortFunction · 0.70

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected