Professional Documents
Culture Documents
Practica 1 Unidad III
Practica 1 Unidad III
topologia(6, 13) = 1;
topologia(13, 6) = 1;
topologia = sparse(topologia)
topologia =
(2,1) 1
(3,1) 1
(4,1) 1
(12,1) 1
(1,2) 1
(1,3) 1
(1,4) 1
(6,5) 1
(7,5) 1
(12,5) 1
(5,6) 1
(13,6) 1
(5,7) 1
(9,8) 1
(10,8) 1
(11,8) 1
(12,8) 1
(8,9) 1
(8,10) 1
(8,11) 1
(1,12) 1
(5,12) 1
(8,12) 1
(6,13) 1
(14,13) 1
(15,13) 1
(16,13) 1
(13,14) 1
(13,15) 1
(13,16) 1
G = graph(topologia);
plot(G, 'layout', 'layered')
title('nodo de estrella (protocolo)')
1
2