Don't force apart nodes with the same label, even if not connected
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user