Table of Contents

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

source int

Node ID of the source, in 0..NodeCount-1.

target int

Node ID of the target, in 0..NodeCount-1.

edgeIndex int

Edge 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.