index.js
function deserialize(serialized){
    serialized.nodes.forEach(function (node){ addNode(node.id); });
    serialized.links.forEach(function (link){ addEdge(link.source, link.target, link.weight); });
    return graph;
  }
function deserialize(serialized){
    serialized.nodes.forEach(function (node){ addNode(node.id); });
    serialized.links.forEach(function (link){ addEdge(link.source, link.target, link.weight); });
    return graph;
  }
function deserialize ( serialized ) { serialized . nodes . forEach ( function ( node ) { addNode ( node . id ) ; } ) ; serialized . links . forEach ( function ( link ) { addEdge ( link . source , link . target , link . weight ) ; } ) ; return graph ; }
Deserializes the given serialized graph.
Deserializes the given serialized graph .