how to form branch to node incidence matrix by using tree

3 visualizzazioni (ultimi 30 giorni)
how to form incidence matrix for this graph

Risposta accettata

Akbar
Akbar il 3 Mag 2018
Modificato: Akbar il 3 Mag 2018
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));

Più risposte (0)

Categorie

Scopri di più su Graph and Network Algorithms in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by