Delegate EdgeConsumer
- Namespace
- Graphity
- Assembly
- Graphity.Core.dll
An action on an edge, given its source, target and edge index: the callback of ForEachEdge(EdgeConsumer).
public delegate void EdgeConsumer(int source, int target, int edgeIndex)
Parameters
sourceintNode ID of the source, in
0..NodeCount-1.targetintNode ID of the target, in
0..NodeCount-1.edgeIndexintEdge index in
0..EdgeCount-1.
Remarks
The parameters come in the order that VisitEdge(int, int, int, TargetState) and the lists of Edges use as well.
Performs this action on edge edgeIndex, which is source -> target.