   // randomly create some nodes and edges
      var data = getScaleFreeNetwork(amountOfNodes);

      // create a network
      var container = document.getElementById('mynetwork');
      var options = {
        physics: {
          stabilization: {
            iterations: 1200
          }
        }
      };
      network = new vis.Network(container, data, options);

      // add event listeners
      network.on('select', function(params) {
        document.getElementById('selection').innerHTML = 'Selectio