commit
efadbcd1bb
@ -60,7 +60,7 @@
|
|||||||
let weight =
|
let weight =
|
||||||
3 *
|
3 *
|
||||||
Math.sqrt(
|
Math.sqrt(
|
||||||
linksData.filter((l) => l.source === el.id || l.target === el.id)
|
linksData.filter((l) => l.source.id === el.id || l.target.id === el.id)
|
||||||
.length + 1
|
.length + 1
|
||||||
);
|
);
|
||||||
if (weight < MINIMAL_NODE_SIZE) {
|
if (weight < MINIMAL_NODE_SIZE) {
|
||||||
@ -151,7 +151,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const edge of next) {
|
for (const edge of next) {
|
||||||
if (!set.has(`${edge.source}-${edge.target}`)) {
|
if (!set.has(`${edge.source.id}-${edge.target.id}`)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user