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 CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by