Generating adjacency matrix for an un-directed graph

3 views (last 30 days)
I need to generate an adjacency matrix for an un-directed graph. I m new to matlab can someone help

Accepted Answer

Steven Lord
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.
  1 Comment
Christy Jackson
Christy Jackson on 17 Mar 2016
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?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!