A strong bridge is an edge whose removal increases the number of SCCs (strongly connected
components), and a strong articulation point is a node whose removal does the same. Strong
bridges lie inside SCCs of two or more nodes. Strong articulation points lie inside SCCs of three
or more nodes, since without one node of an SCC of two, the other still forms an SCC. So a graph
without cycles has neither, and a self-loop is never a strong bridge.
The edges are followed in their direction, as by Components.sccsOf: the edges a -> b
and b -> a are two edges, and both are strong bridges of the SCC they form.
Biconnectivity has the counterparts for a graph read as undirected. Here, in the control
flow of the method load, the loop splits into several SCCs without header, body or next,
but not without then:
conststrong = Components.strongConnectivityOf(BiAdjacentGraph.of(cfg)); conststrongBridges = strong.strongBridges; // strongBridges: header -> body, body -> then, then -> next, next -> header conststrongArticulationPoints = strong.strongArticulationPoints; // strongArticulationPoints: [1, 2, 4] - header, body and next
The strong bridges and strong articulation points of a graph, as Components.strongConnectivityOf returns them.
A strong bridge is an edge whose removal increases the number of SCCs (strongly connected components), and a strong articulation point is a node whose removal does the same. Strong bridges lie inside SCCs of two or more nodes. Strong articulation points lie inside SCCs of three or more nodes, since without one node of an SCC of two, the other still forms an SCC. So a graph without cycles has neither, and a self-loop is never a strong bridge.
The edges are followed in their direction, as by Components.sccsOf: the edges
a -> bandb -> aare two edges, and both are strong bridges of the SCC they form. Biconnectivity has the counterparts for a graph read as undirected. Here, in the control flow of the methodload, the loop splits into several SCCs withoutheader,bodyornext, but not withoutthen:Instances are immutable.
Memory: up to 28 x nodeCount bytes.