フィルターのクリア

Incidence matrix of a graph

5 ビュー (過去 30 日間)
Vlad Bec
Vlad Bec 2019 年 4 月 18 日
コメント済み: djibeyrou ba 2020 年 6 月 15 日
Hello,
Is there any way to create a incidence matrix of a graph. For example, for IEEE 7-bus system I have branch data like this:
1 2
2 3
2 7
2 6
3 6
3 4
4 7
4 5
And I need incidence matrix to be like this:
Or, maybe better solution, to give me numbers of nodes which are mutualy connected, for example
1 2 (node 1 is connected to node 2)
1 2 3 6 7 (node 2 is connected to nodes 1, 3, 6, 7)
2 3 4 6 (node 3 is connected to nodes 2, 4 and 6)
etc.
Thanks!!!

採用された回答

Walter Roberson
Walter Roberson 2019 年 4 月 18 日
If you have constructed a graph() object named G, then
full(G.adjacency)
  4 件のコメント
Vlad Bec
Vlad Bec 2019 年 5 月 5 日
Thank you a lot!
djibeyrou ba
djibeyrou ba 2020 年 6 月 15 日
Hello I have the same problem. I am using IEEE6-bus system. I would like to calculate the incidence matrix from MATLAB. Can you help me? I want to get the result showed in the picture.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by