Don't force apart nodes with the same label, even if not connected

This commit is contained in:
Ian Gulliver
2019-07-09 17:34:54 +00:00
parent b44a9d40a7
commit d07f631f10

View File

@@ -50,7 +50,7 @@ class GraphNode {
this.addAffinity(node, d => d);
// Keep one space between subgraphs
if (this.subgraph != node.subgraph) {
if (this.subgraph != node.subgraph && this.label != node.label) {
this.addAffinity(node, d => d <= 2 ? -INF : 0);
}