フィルターのクリア

How can I convert an adjacency matrix to its corresponding node list?Please help.

1 回表示 (過去 30 日間)
SUNANNA S S
SUNANNA S S 2017 年 4 月 24 日
回答済み: Steven Lord 2017 年 4 月 24 日
I have an adjacency matrix
A = 0 1 1 1 1 0
1 0 1 1 1 1
1 0 0 1 0 1
1 1 1 0 1 1
1 0 1 1 0 1
0 0 0 0 1 0
I want to get the output as:
1 2
1 3
2 3
1 4
2 4
3 4
1 5
2 5
4 5
2 6
3 6
4 6
5 6

回答 (1 件)

Steven Lord
Steven Lord 2017 年 4 月 24 日
Use the find function. Or if you've built a digraph object out of this adjacency matrix, see the Edges property of that digraph.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by