Generating adjacency matrix for an un-directed graph
2 次查看(过去 30 天)
显示 更早的评论
I need to generate an adjacency matrix for an un-directed graph. I m new to matlab can someone help
0 个评论
采纳的回答
Steven Lord
2016-3-16
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Undirected Graphs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!