Hyperlinkv0.8.0-beta.28

Graph

Graph.Protointerfaceeffect/Graph.ts:122
Proto<N, E>

Common structural interface shared by immutable and mutable graphs.

Details

Contains the node and edge maps, adjacency indexes, allocation counters, and shared protocols used by both Graph and MutableGraph.

models
Source effect/Graph.ts:12210 lines
export interface Proto<out N, out E> extends Iterable<readonly [NodeIndex, N]>, Equal.Equal, Pipeable, Inspectable {
  readonly [TypeId]: typeof TypeId
  readonly nodes: Map<NodeIndex, N>
  readonly edges: Map<EdgeIndex, Edge<E>>
  readonly adjacency: Map<NodeIndex, Array<EdgeIndex>>
  readonly reverseAdjacency: Map<NodeIndex, Array<EdgeIndex>>
  nextNodeIndex: NodeIndex
  nextEdgeIndex: EdgeIndex
  acyclic: Option.Option<boolean>
}
Referenced by 2 symbols