how to form branch to node incidence matrix by using tree

3 vues (au cours des 30 derniers jours)
Yearuva Srikanth reddy
Yearuva Srikanth reddy le 3 Mai 2018
Modifié(e) : Akbar le 3 Mai 2018
how to form incidence matrix for this graph

Réponse acceptée

Akbar
Akbar le 3 Mai 2018
Modifié(e) : Akbar le 3 Mai 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));

Plus de réponses (0)

Catégories

En savoir plus sur Graph and Network Algorithms dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by