DOT object class representing an edge between two or more nodes.
import { Node, Edge } from '@ts-graphviz/core';const a = new Node('a');const b = new Node('b');const edge = new Edge([a, b], { label: 'connects', color: 'blue' }); Copy
import { Node, Edge } from '@ts-graphviz/core';const a = new Node('a');const b = new Node('b');const edge = new Edge([a, b], { label: 'connects', color: 'blue' });
Optional
Readonly
Comments to include when outputting with toDot.
The type of the DotObjectType.
DOT object class representing an edge between two or more nodes.
Example