Try to stack like nodes

This commit is contained in:
Ian Gulliver
2019-07-08 03:00:31 +00:00
parent 83ce35c2dd
commit 311c32b2c5
2 changed files with 9 additions and 0 deletions

View File

@@ -61,6 +61,10 @@ class Layout {
let nodes = this.nodesFromGraphNodes(subgraph);
this.groups_.push(new LayoutGroup(null, this.nodesByPos_, nodes));
}
for (let labelGroup of this.graph_.nodesByLabel.values()) {
let nodes = this.nodesFromGraphNodes(labelGroup);
this.groups_.push(new LayoutGroup(null, this.nodesByPos_, nodes));
}
}
resolveLinks() {