import { Node } from './Node'; export class GraphNode extends Node { public label: string; public is_table: boolean; public table_contents: Array>; private get serialized_table (): string { const mapped_columns = this.table_contents .map ((val) => `${val.join ('')}`); return `${mapped_columns.join ('')}
`; } // eslint-disable-next-line @typescript-eslint/naming-convention public toString (): string { return `${this.full_name}[label=<${this.is_table ? this._serialized_table : this.label}>]`; } }