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

조회 수: 7 (최근 30일)
chandra Naik
chandra Naik 2019년 7월 24일
편집: Matt J 2019년 7월 24일
How to check given undirected graph connected or not

답변 (1개)

Matt J
Matt J 2019년 7월 24일
For example,
G = graph([1 1 4],[2 3 5],[1 1 1],6);
conncomp(G)
  댓글 수: 2
chandra Naik
chandra Naik 2019년 7월 24일
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 2019년 7월 24일
편집: Matt J 2019년 7월 24일
Bizarre. It's been there since R2015b.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by