Implement adjacency list representation of a graph???

1 visualización (últimos 30 días)
Sisi Ma
Sisi Ma el 14 de Mzo. de 2011
how would you implement adjacency list representation of a graph???
i tried class dlnode, but it doesn't do the job. since the linkage of a certain node in different adjacency lists.
Thanks :)
Sisi

Respuestas (1)

Walter Roberson
Walter Roberson el 14 de Mzo. de 2011
Not recommended that you do that, but here is one discussion of alternatives: http://en.wikipedia.org/wiki/Adjacency_list
  1 comentario
Sisi Ma
Sisi Ma el 15 de Mzo. de 2011
So my guess is for individual adjacency list, i can use an array,whose individual entry is adjacent vertex..., no pointer required.

Iniciar sesión para comentar.

Categorías

Más información sobre Directed 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