Graphity for TypeScript 3.0.0
    Preparing search index...

    Type Alias EdgeConsumer

    EdgeConsumer: (source: number, target: number, edgeIndex: number) => void

    An action on an edge, given its source, target and edge index: the callback of Graph.forEachEdge.

    The parameters come in the order that DfsEdgeTraverser.visitEdge and the lists of Edges use as well.

    Performs this action on edge edgeIndex, which is source -> target.

    Type Declaration

      • (source: number, target: number, edgeIndex: number): void
      • Parameters

        • source: number

          node ID of the source, in 0..nodeCount-1

        • target: number

          node ID of the target, in 0..nodeCount-1

        • edgeIndex: number

          edge index in 0..edgeCount-1

        Returns void