.style("fill", (d,i) => roleScale(i))
          .attr("r", d => d.r);
      
      function updateNetwork() {
        d3.selectAll("circle")
            .attr("cx", d => d.x)
            .attr("cy", d => d.y);
      }
    </script>
  </body>
</html>
