Click or drag to resize

GraphBaseTVertex, TEdgeGetAdjacencyListForVertex Method

Gets the adjacency list for vertex. The adjacency list is a list of TVertex - Hashset(Of TEdge) tuples, as a vertex can have multiple edges with the same related vertex.

Namespace:  SD.Tools.Algorithmia.Graphs
Assembly:  SD.Tools.Algorithmia (in SD.Tools.Algorithmia.dll) Version: 1.3.3.0 (1.3.18.0209)
Syntax
public MultiValueDictionary<TVertex, TEdge> GetAdjacencyListForVertex(
	TVertex vertex
)

Parameters

vertex
Type: TVertex
The vertex to obtain the adjacency list for.

Return Value

Type: MultiValueDictionaryTVertex, TEdge
MultiValueDictionary with as key the related vertices of the passed in vertex and as value per related vertex a Hashset with edges which connect passed in vertex with the related vertex, or null if the vertex isn't part of this graph
See Also