Describes how to interact with an arbitrary edge type.
Your graph's edges can be any format, as long as you supply the appropriate accessors.
type Vertex = objecttype Edge1 = {from: Vertex, to: Vertex}const getEdge1 = {from: (e: Edge1) => e.from, to: (e: Edge1) => e.to}type Edge2 = {parent: Vertex, child: Vertex}const getEdge2 = {from: (e: Edge1) => e.parent, to: (e: Edge1) => e.child} Copy
type Vertex = objecttype Edge1 = {from: Vertex, to: Vertex}const getEdge1 = {from: (e: Edge1) => e.from, to: (e: Edge1) => e.to}type Edge2 = {parent: Vertex, child: Vertex}const getEdge2 = {from: (e: Edge1) => e.parent, to: (e: Edge1) => e.child}
Generated using TypeDoc
Describes how to interact with an arbitrary edge type.
Your graph's edges can be any format, as long as you supply the appropriate accessors.