Generating adjacency matrix for an un-directed graph

3 visualizzazioni (ultimi 30 giorni)
I need to generate an adjacency matrix for an un-directed graph. I m new to matlab can someone help

Risposta accettata

Steven Lord
Steven Lord il 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 Commento
Christy Jackson
Christy Jackson il 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?

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by