import { Node } from './Node'; import { Edge } from './Edge'; export class Graph extends Node { public children: Array = []; public nodes: Array = []; public is_root = false; public edges: Array; // eslint-disable-next-line @typescript-eslint/naming-convention public toString (): string { return `subgraph cluster_${this.full_name} { ${this.children.map ((c) => c.toString ()) .join ('\n')} ${this.nodes.map ((c) => c.toString ()) .join ('\n')} ${this.edges.map ((c) => c.toString ()) .join ('\n')} }`; } }