Skip to content
Snippets Groups Projects
Commit d4231240 authored by Maximilian Giller's avatar Maximilian Giller
Browse files

Implemented basic toString

parent a1859695
No related branches found
No related tags found
1 merge request!2Implemented editor in the react framework
Pipeline #56580 passed
......@@ -101,4 +101,16 @@ export class Link extends GraphElement {
return link;
}
public toString(): string {
let source: any = this.source;
let target: any = this.target;
if (this.source == undefined || this.target == undefined) {
source = this.sourceId;
target = this.targetId;
}
return source.toString() + " -> " + target.toString();
}
}
......@@ -101,4 +101,8 @@ export class Node extends GraphElement {
return node;
}
public toString(): string {
return this.label;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment