This commit is contained in:
2020-04-28 09:59:24 +02:00
parent 373285ec46
commit 8af030e54f
2 changed files with 34 additions and 0 deletions

@ -75,6 +75,7 @@ export class Graph extends Element {
public add_graph (constructor: ((g: Graph) => void) | string): string {
const graph = new Graph ('unnamed', this.full_name);
graph.directional = this.directional;
if (typeof constructor === 'string')
graph.name = constructor;