フィルターのクリア

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

4 ビュー (過去 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 Center および File ExchangeGraph and Network Algorithms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by