Expand description
Module for connectivity and cut algorithms.
Structs§
- Simple
Cycle Iter - An iterator of simple cycles in a graph
Functions§
- all_
simple_ paths_ multiple_ targets - Returns a dictionary with all simple paths from
from
node to all nodes into
, which contains at leastmin_intermediate_nodes
nodes and at mostmax_intermediate_nodes
, if given, or limited by the graph’s order otherwise. The simple path is a path without repetitions. - articulation_
points - Return the articulation points of an undirected graph.
- bfs_
undirected - Given an graph, a node in the graph, and a visit_map, return the set of nodes connected to the given node using breadth first search and treating all edges as undirected.
- bridges
- Return the bridges of an undirected graph.
- chain_
decomposition - Returns the chain decomposition of a graph.
- connected_
components - Given a graph, return a list of sets of all the connected components.
- core_
number - Return the core number for each node in the graph.
- cycle_
basis - Return a list of cycles which form a basis for cycles of a given graph.
- find_
cycle - Return the first cycle encountered during DFS of a given directed graph. Empty list is returned if no cycle is found.
- isolates
- Return the isolates in a graph object
- johnson_
simple_ cycles - /// Find all simple cycles of a graph
- longest_
simple_ path_ multiple_ targets - Returns the longest of all the simple paths from
from
node to all nodes into
, which contains at leastmin_intermediate_nodes
nodes and at mostmax_intermediate_nodes
, if given, or limited by the graph’s order otherwise. The simple path is a path without repetitions. - number_
connected_ components - Given a graph, return the number of connected components of the graph.
- stoer_
wagner_ min_ cut - Stoer-Wagner’s min cut algorithm.