in src/utilities/graph-util.js [33:51]
static getNodesMap(nodes: any, key: string) {
const map = {};
const arr = Object.keys(nodes).map(key => nodes[key]);
let item = null;
for (let i = 0; i < arr.length; i++) {
item = arr[i];
map[`key-${item[key]}`] = {
children: [],
incomingEdges: [],
node: item,
originalArrIndex: i,
outgoingEdges: [],
parents: [],
};
}
return map;
}