how to form branch to node incidence matrix by using tree

3 visualizaciones (últimos 30 días)
Yearuva Srikanth reddy
Yearuva Srikanth reddy el 3 de Mayo de 2018
Editada: Akbar el 3 de Mayo de 2018
how to form incidence matrix for this graph

Respuesta aceptada

Akbar
Akbar el 3 de Mayo de 2018
Editada: Akbar el 3 de Mayo de 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));

Más respuestas (0)

Categorías

Más información sobre Graph and Network Algorithms en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by