Optional
_adjacencyOptional
_positionsmapping from node names to array holding (x,y) coordinates of the node
Optional
constraintsArray of positioning constraints on node (x,y) coordinates of nodes, where (0,0) is the bottom-left point of the canvas, with x-coordinates increasing to the right and y-coordinates increasing to the top. Positioning requests for nodes should be treated as requests for corresponding constraints on the node positions.
Optional
constraints?: string[]Optional
meaning?: stringOptional
decorationsmaps decoration names to decoration objects (texts and rectangles to display on top of the graph)
Optional
fillOptional
fillOptional
fontOptional
fontOptional
lineOptional
lineOptional
lineOptional
region?: { Relative height of region (as proportion of canvas height)
Relative width of region (as proportion of canvas width)
Optional
style?: StyleOptional
text?: stringText overlay
x-coordinate of the center (left boundary of canvas is zero, right boundary is one)
y-coordinate of the center (lower boundary of canvas is zero, upper boundary is one)
true
if graph is directed (a graph is directed if it has any directed edges), false
if undirected
maps edge names to attribute objects; by default, an edge from node A to node B is named AB
Optional
angleangle relative to the direction between the node centers; in undirected graphs, the node whose name is second lexographically is taken as the target for this purpose.
Optional
angleangle relative to the direction between the node centers; in undirected graphs, the node whose name is first lexographically is taken as the source for this purpose.
Optional
arrowOptional
data?: { Key-value pairs specifying extra data associated with this edge. Any properties not in the schema should be specified in this object.
Optional
fontOptional
fontOptional
fontOptional
fontOptional
fontOptional
fontOptional
label?: LabelOptional
labelOptional
labelOptional
lineOptional
lineOptional
lineOptional
loopFor self-loop edges, the angle at which the loop points, counter-clockwise from positive x direction
Optional
softnesscontrols the curvature of an edge near the target node
Optional
softnesscontrols the curvature of an edge near the source node
name of the node from which the edge originates
Optional
style?: Stylename of the node to which the edge connects
Optional
weight?: numberAn optional numeric value associated with the edge.
Optional
weightOptional
hasTrue if user tells us that the graph is a tree or DAG or specifies an explicit parent-child relation between any two nodes. Given a parent-child relation means, include an edge from parent to child. This property should be automatically updated when parent-child relations are specified.
maps node names to attribute objects
Optional
data?: { Extra data associated with this node as key-value pairs. Any properties not in the schema should be specified in this object.
Optional
fillOptional
fillOptional
fontOptional
fontOptional
fontOptional
fontOptional
fontOptional
fontOptional
label?: LabelOptional
labelOptional
labelOptional
lineOptional
lineOptional
lineOptional
nodeOptional
nodeNode size relative to a base size; if not specified, the node size is 1
Optional
nodeWidth to height ratio of a node; if not specified, the ratio is 1
Optional
style?: StyleOptional
stylesmapping from style names to style definition objects
Optional
arrowOptional
fillOptional
fontOptional
fontOptional
fontOptional
fontOptional
fontOptional
fontOptional
labelOptional
lineOptional
lineOptional
lineOptional
nodeOptional
nodeOptional
nodeGenerated using TypeDoc
Defines a graph with optional attributes on nodes and edges. Directed and undirected graphs are supported, as well as self-loops and multiple edges between nodes.