Table of Contents

Class BasicGraphOnEdges<TEdge>

Namespace
Italbytz.Graph
Assembly
Italbytz.Graph.dll

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

vertex int

Returns

IList<TEdge>

InEdgesCount(int)

public int InEdgesCount(int node)

Parameters

node int

Returns

int

OutEdges(int)

Edges exiting a vertex

public IList<TEdge> OutEdges(int vertex)

Parameters

vertex int

Returns

IList<TEdge>

OutEdgesCount(int)

public int OutEdgesCount(int node)

Parameters

node int

Returns

int