Class Graph<T>
- Namespace
- AlgorithmsSW.Graph
- Assembly
- AlgorithmsSW.dll
public class Graph<T>
Type Parameters
T
- Inheritance
-
Graph<T>
- Inherited Members
- Extension Methods
Constructors
Graph(T[], Func<IGraph>, Func<ISymbolTable<T, int>>)
public Graph(T[] intToSymbol, Func<IGraph> graphFactory, Func<ISymbolTable<T, int>> symbolTableFactory)
Parameters
intToSymbol
T[]graphFactory
Func<IGraph>symbolTableFactory
Func<ISymbolTable<T, int>>
Properties
EdgeCount
public int EdgeCount { get; }
Property Value
IsEmpty
public bool IsEmpty { get; }
Property Value
VertexCount
public int VertexCount { get; }
Property Value
Vertices
public IEnumerable<T> Vertices { get; }
Property Value
- IEnumerable<T>
Methods
AddEdge(T, T)
public void AddEdge(T vertex0, T vertex1)
Parameters
vertex0
Tvertex1
T
GetAdjacents(T)
public IEnumerable<T> GetAdjacents(T vertex)
Parameters
vertex
T
Returns
- IEnumerable<T>
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.