Reading a Graph Object from a Text File
古いコメントを表示
I'm reading through this blog post and the author appears to read this text document of contiguous US states and their neighbors as a graph object on which he then calls the function adjacency(S). I'm curious about how to do this myself, as the blog post defines
S = get_state_neighbors;
Without any reference to what get_state_neighbors is. I've tried downloading the text file and using
S=readcell("get_state_neighbors.txt");
however this produces a 53x1 cell array, which the adjacency function cannot be used on.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Graph and Network Algorithms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
