Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pyrival/graphs/edge_bcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def find_SCC(graph):
"""
Given an undirected simple graph, find_BCC returns a list of lists
containing the edge biconnected components of the graph (i.e. no bridges).
In a biconnected component, any two nodes are connected by at least two
edge-disjoint paths.
Runs in O(n + m) time.

This algorithm is based on https://cses.fi/problemset/task/2177
Expand Down
2 changes: 2 additions & 0 deletions pyrival/graphs/node_bcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"""
Given an undirected graph, find_BCC returns a list of lists containing the nodes
of the different node-biconnected components.
Node-biconnected components are maximal subgraphs that cannot be disconnected
by removing a single node.
Note that a node belongs to multiple node-bccs iff it is an articulation point.
"""

Expand Down
Loading