Turn JSON loaded from a file into a graph a layout accepts: nodes with string ids and numeric coordinates where
they have any, and links whose ends name nodes, by id or as { id }. Every other field is kept as it is. Whether
ids repeat or link ends exist is left to the layout, which names the offending node or link.
Turn JSON loaded from a file into a graph a layout accepts:
nodeswith string ids and numeric coordinates where they have any, andlinkswhose ends name nodes, by id or as{ id }. Every other field is kept as it is. Whether ids repeat or link ends exist is left to the layout, which names the offending node or link.