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

采纳的回答

Steven Lord
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.
  1 个评论
Christy Jackson
Christy Jackson 2016-3-17
Thanks Steven Lord. If i had to plot some points on a cartesian graph and convert that to an adjacency matrix, how do i go about it?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Undirected Graphs 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by