teArcDiagram(resolve[0], resolve[1])
        });
      
      function createArcDiagram(nodes,edges) {
        var nodeHash = {};
        nodes.forEach((node, x) => {
          nodeHash[node.id] = node;
          node.x = parseInt(x) * 30;
        });
        
        edges.forEach(edge => {
          edge.weight = parseInt(edge.weight);
          edge.source = nodeHash[edge.source];
          edge.target = nodeHash[edge.target];
        });
        
        var arcG = d3.select("svg").append("g").attr("id"