Class WeightedGraphVertex<T, TW>
A weighted graph vertex for adjacency list Graph implementation.
IEnumerable enumerates all the outgoing edge destination vertices.
Inheritance
WeightedGraphVertex<T, TW>
Implements
IEnumerable<T>
Assembly: Advanced.Algorithms.dll
Syntax
public class WeightedGraphVertex<T, TW> : IGraphVertex<T>, IEnumerable<T> where TW : IComparable
Type Parameters
Constructors
WeightedGraphVertex(T)
Declaration
public WeightedGraphVertex(T value)
Parameters
Type |
Name |
Description |
T |
value |
|
Properties
Edges
Declaration
public Dictionary<WeightedGraphVertex<T, TW>, TW> Edges { get; }
Property Value
Value
Declaration
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
IEnumerable<>