Generating adjacency matrix for an un-directed graph

3 visualizaciones (últimos 30 días)
Christy Jackson
Christy Jackson el 16 de Mzo. de 2016
Comentada: Christy Jackson el 17 de Mzo. de 2016
I need to generate an adjacency matrix for an un-directed graph. I m new to matlab can someone help

Respuesta aceptada

Steven Lord
Steven Lord el 16 de Mzo. de 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 comentario
Christy Jackson
Christy Jackson el 17 de Mzo. de 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?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Undirected Graphs en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by