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
)
Public Function GetAdjacencyListForVertex (
vertex As TVertex
) As MultiValueDictionary(Of TVertex, TEdge)
Parameters
- vertex
- Type: TVertex
The vertex to obtain the adjacency list for.
Return Value
Type:
MultiValueDictionaryTVertex,
TEdgeMultiValueDictionary 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