Class BasicGraphOnEdges<TEdge>
The base class for graphs: layering and ordering work on an instance of this class.
public class BasicGraphOnEdges<TEdge> where TEdge : IEdge
Type Parameters
TEdge
- Inheritance
-
BasicGraphOnEdges<TEdge>
- Inherited Members
Fields
edges
protected List<TEdge> edges
Field Value
- List<TEdge>
Properties
Edges
returning all edges of the graph
public ICollection<TEdge> Edges { get; }
Property Value
- ICollection<TEdge>
Methods
InEdges(int)
Edges entering a vertex
public IList<TEdge> InEdges(int vertex)
Parameters
vertexint
Returns
- IList<TEdge>
InEdgesCount(int)
public int InEdgesCount(int node)
Parameters
nodeint
Returns
OutEdges(int)
Edges exiting a vertex
public IList<TEdge> OutEdges(int vertex)
Parameters
vertexint
Returns
- IList<TEdge>
OutEdgesCount(int)
public int OutEdgesCount(int node)
Parameters
nodeint