Description Usage Arguments Value
The contained nodes in the sugraph after cutting the max_edge. This function visits and mark the nodes of the subgraph after cutting the max_edge.
1 | dfs(cur)
|
cur |
The current node |
It uses the Depth First Search algorithm to return the visited nodes after cutting the max_edge in order to check whether the subgraph remains connected after the cut or not. dfs(currentnode)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.