[prev] 42 [next]

Comparison of Graph Representations

 array
of edges
adjacency
matrix
adjacency
list
space usageEV2V+E
initialise1V2V
insert edge111
find/delete edgeE1V

Other operations:

 array
of edges
adjacency
matrix
adjacency
list
disconnected(v)?EV1
isPath(x,y)?E·log VV2V+E
copy graphEV2V+E
destroy graph1VV+E