Finding non isolated graph bridges

2 visualizzazioni (ultimi 30 giorni)
Lukas Marcinkevicius
Lukas Marcinkevicius il 2 Dic 2020
Risposto: ag il 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)

Risposte (1)

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

Categorie

Scopri di più su Graph and Network Algorithms in Help Center e File Exchange

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by