mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-04 11:34:23 +01:00
Update packages/mermaid/src/dagre-wrapper/mermaid-graphlib.js
Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com>
This commit is contained in:
@@ -45,20 +45,7 @@ const edgeInCluster = (edge, clusterId) => {
|
||||
log.debug('Tilt, ', clusterId, ',not in decendants');
|
||||
return false;
|
||||
}
|
||||
if (decendants[clusterId].indexOf(edge.v) >= 0) {
|
||||
return true;
|
||||
}
|
||||
if (isDecendant(edge.v, clusterId)) {
|
||||
return true;
|
||||
}
|
||||
if (isDecendant(edge.w, clusterId)) {
|
||||
return true;
|
||||
}
|
||||
if (decendants[clusterId].indexOf(edge.w) >= 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return decendants[clusterId].indexOf(edge.v) >= 0 || isDecendant(edge.v, clusterId) || isDecendant(edge.w, clusterId) || decendants[clusterId].indexOf(edge.w) >= 0;
|
||||
};
|
||||
|
||||
const copy = (clusterId, graph, newGraph, rootId) => {
|
||||
|
||||
Reference in New Issue
Block a user