add logging

This commit is contained in:
Tobias Koppers 2021-08-06 11:29:16 +02:00
parent a6e9f59dfc
commit 2507b2ac2f
1 changed files with 5 additions and 0 deletions

View File

@ -294,6 +294,11 @@ module.exports = ({ maxSize, minSize, items, getSize, getKey }) => {
}
}
console.log(
initialNodes.map(n => `${n.key} ${JSON.stringify(n.size)}`),
maxSize
);
if (initialNodes.length > 0) {
const initialGroup = new Group(initialNodes, getSimilarities(initialNodes));