Interface GraphLink<NodeDatum, LinkDatum>

a link between nodes, with attached information

The immutable version of MutGraphLink.

interface GraphLink<out NodeDatum = unknown, out LinkDatum = unknown> {
    data: LinkDatum;
    points: [number, number][];
    source: GraphNode<NodeDatum, LinkDatum>;
    target: GraphNode<NodeDatum, LinkDatum>;
}

Type Parameters

  • out NodeDatum = unknown
  • out LinkDatum = unknown

Hierarchy (View Summary)

Properties

data: LinkDatum

user data attached to this link

points: [number, number][]

layout control points assigned to the link

The dag node this link comes from

The dag node this link goes to