Finding non isolated graph bridges

4 Ansichten (letzte 30 Tage)
Lukas Marcinkevicius
Lukas Marcinkevicius am 2 Dez. 2020
Beantwortet: ag am 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)

Antworten (1)

ag
ag am 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!

Kategorien

Mehr zu Graph and Network Algorithms finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by