graph-toolkit
Preparing search index...
traversal/src
topologicalSort
Function topologicalSort
topologicalSort
(
graph
:
Graph
)
:
readonly
VertexId
[]
|
undefined
Topological order of a directed graph, or
undefined
if it has a cycle. $O(V + E)$.
Parameters
graph
:
Graph
Returns
readonly
VertexId
[]
|
undefined
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
graph-toolkit
Loading...
Topological order of a directed graph, or
undefinedif it has a cycle. $O(V + E)$.