GraphEdge<Node extends GraphNode<Object>> constructor

const GraphEdge<Node extends GraphNode<Object>>(
  1. Node from,
  2. Node to
)

Create an GraphEdge.

Implementation

const GraphEdge(this.from, this.to);