Class GraphVertex<T>
Graph vertex for adjacency list Graph implementation.
IEnumerable enumerates all the outgoing edge destination vertices.
Inheritance
GraphVertex<T>
Implements
IGraphVertex<T>
Assembly: Advanced.Algorithms.dll
Syntax
public class GraphVertex<T> : IEnumerable<T>, IGraphVertex<T>
Type Parameters
Constructors
GraphVertex(T)
Declaration
public GraphVertex(T value)
Parameters
Type |
Name |
Description |
T |
value |
|
Properties
Edges
Declaration
public HashSet<GraphVertex<T>> Edges { get; set; }
Property Value
Key
Declaration
public T Key { get; set; }
Property Value
Methods
GetEdge(IGraphVertex<T>)
Declaration
public IEdge<T> GetEdge(IGraphVertex<T> targetVertex)
Parameters
Type |
Name |
Description |
IGraphVertex<T> |
targetVertex |
|
Returns
Type |
Description |
IEdge<T> |
|
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type |
Description |
IEnumerator<T> |
|
Implements
IGraphVertex<>