how to form branch to node incidence matrix by using tree

3 ビュー (過去 30 日間)
Yearuva Srikanth reddy
Yearuva Srikanth reddy 2018 年 5 月 3 日
編集済み: Akbar 2018 年 5 月 3 日
how to form incidence matrix for this graph

採用された回答

Akbar
Akbar 2018 年 5 月 3 日
編集済み: Akbar 2018 年 5 月 3 日
G = digraph([1 2 2 2 3 4], [4 1 3 4 1 3]);
G.Nodes.Name = {'a' 'b' 'c' 'd'}';
h = plot(G);
labelText = {'6' '3' '2' '4' '5' '1'};
labeledge(h,[1 2 2 2 3 4], [4 1 3 4 1 3],labelText)
I = full(incidence(G));

その他の回答 (0 件)

カテゴリ

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