Borrar filtros
Borrar filtros

How to check graph connected or not for given adjacency matrix of graph

4 visualizaciones (últimos 30 días)
chandra Naik
chandra Naik el 24 de Jul. de 2019
Editada: Matt J el 24 de Jul. de 2019
How to check given undirected graph connected or not

Respuestas (1)

Matt J
Matt J el 24 de Jul. de 2019
For example,
G = graph([1 1 4],[2 3 5],[1 1 1],6);
conncomp(G)
  2 comentarios
chandra Naik
chandra Naik el 24 de Jul. de 2019
In Matlab 2017, generating error
Undefined function or variable 'graph'.
Error in connected (line 1)
G = graph([1 1 4],[2 3 5],[1 1 1],6);
Matt J
Matt J el 24 de Jul. de 2019
Editada: Matt J el 24 de Jul. de 2019
Bizarre. It's been there since R2015b.

Iniciar sesión para comentar.

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