DOT object class representing a node.
import { Node } from '@ts-graphviz/core';const node = new Node('a', { shape: 'box', label: 'Start' });const withPort = node.port({ port: 'p1', compass: 'n' }); Copy
import { Node } from '@ts-graphviz/core';const node = new Node('a', { shape: 'box', label: 'Start' });const withPort = node.port({ port: 'p1', compass: 'n' });
Optional
Readonly
Comments to include when outputting with toDot.
ID of the node
The type of the DotObjectType.
Returns ForwardRefNode with port and compass specified.
DOT object class representing a node.
Example