graphologyToD3 = (
graphologyGraph,
{ nodeList = "nodes", edgeList = "links" } = {}
) => {
const outJSON = graphologyGraph.toJSON();
const d3JSON = {
[nodeList]: outJSON.nodes.map((d) => d.attributes),
[edgeList]: outJSON.edges.map((d) => d.attributes)
};
return d3JSON;
}