Finding non isolated graph bridges

3 ビュー (過去 30 日間)
Lukas Marcinkevicius
Lukas Marcinkevicius 2020 年 12 月 2 日
回答済み: ag 2025 年 2 月 5 日
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)

回答 (1 件)

ag
ag 2025 年 2 月 5 日
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!

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by