clean-without longbranches
This commit is contained in:
13
bzGraflow.js
13
bzGraflow.js
@@ -459,19 +459,6 @@ class BZgraflow extends Buildoz{
|
|||||||
return backEdges
|
return backEdges
|
||||||
}
|
}
|
||||||
|
|
||||||
findCrossLayerLinks(links) {
|
|
||||||
const { parents } = this.buildGraphStructures(this.flow.nodes, links)
|
|
||||||
const layers = this.computeLayers(this.flow.nodes, parents)
|
|
||||||
const crossLayerLinks = []
|
|
||||||
for(const link of links){
|
|
||||||
const from = link.from[0]
|
|
||||||
const to = link.to[0]
|
|
||||||
if(layers[from] !== layers[to]) {
|
|
||||||
crossLayerLinks.push(link)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return crossLayerLinks
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Buildoz.define('graflow', BZgraflow)
|
Buildoz.define('graflow', BZgraflow)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user