Generating adjacency matrix for an un-directed graph
3 views (last 30 days)
Show older comments
Christy Jackson
on 16 Mar 2016
Commented: Christy Jackson
on 17 Mar 2016
I need to generate an adjacency matrix for an un-directed graph. I m new to matlab can someone help
0 Comments
Accepted Answer
Steven Lord
on 16 Mar 2016
Are you using a graph object? If so, call adjacency on it. If instead you just have a list of edges, take a look at the functions sparse or accumarray.
More Answers (0)
See Also
Categories
Find more on Undirected Graphs in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!