graph-toolkit
Preparing search index...
paths/src
hasCycle
Function hasCycle
hasCycle
(
graph
:
Graph
)
:
boolean
Whether the graph contains a cycle (self-loops count). $O(V + E)$ directed, ~$O(E)$ undirected.
Parameters
graph
:
Graph
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
graph-toolkit
Loading...
Whether the graph contains a cycle (self-loops count). $O(V + E)$ directed, ~$O(E)$ undirected.