This commit is contained in:
Knut Sveidqvist
2020-04-16 19:57:56 +02:00
parent c3f2e8dde1
commit e8e7b419b5
3 changed files with 3 additions and 48 deletions

View File

@@ -7,13 +7,11 @@ import graphlib from 'graphlib';
export let clusterDb = {};
let decendants = {};
let parents = {};
let graphs = {};
export const clear = () => {
decendants = {};
parents = {};
clusterDb = {};
graphs = {};
};
const isDecendant = (id, ancenstorId) => {
@@ -37,7 +35,7 @@ const edgeInCluster = (edge, clusterId) => {
if (!(edge.v === clusterId || edge.w === clusterId)) return false;
if (!decendants[clusterId]) {
log.debug('Tilt, ', clustedId, ',not in decendants');
log.debug('Tilt, ', clusterId, ',not in decendants');
return false;
}