Finding non isolated graph bridges

3 views (last 30 days)
Lukas Marcinkevicius
Lukas Marcinkevicius on 2 Dec 2020
Answered: ag on 5 Feb 2025
Hello, I could use some help on how i could find non isolated bridges in a graph, I tried searching but with no luck
n = 6; % node count
V = 1:n; % node list
U = [1 3; 6 5; 6 1; 1 5; 3 4; 1 5; 1 2];
I was told that this code has something similar with what im supposed to do, and that with a few changes it could be done
if(first == 1) % using "if" incase of program failure
first = first-1;
meetsrequirements = CnCount;
else
if(CnCount > meetsrequirements)
BridgeCount = BridgeCount+1; % Bridge count + 1
BridgEgdes(:, kiek) = Briaunos; %Bridge edges are put into a matrix
count = count +1;
end
end
The script that i have currently finds all the graph bridges which would be 1 3, 3 4, 1 2
But i need to change it, so it would search and print non isolated graph bridges(in this case it would be only 1 3)

Answers (1)

ag
ag on 5 Feb 2025
To find the non isolated graph bridges aka Articulation points in a graph, you can utilize the "biconncomp" MATLAB function. The below code snippet demonstrates the syntax for the same:
[edgebins,iC] = biconncomp(G)
Hope this helps!

Categories

Find more on Graph and Network Algorithms in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!