code: function getColormap() {
      var map = [];
      var index = [];
  
      for (var i = 0; i < netsize; i++)
        index[network[i][3]] = i;
  
      var k = 0;
      for (var l = 0; l < netsize; l++) {
        var j = index[l];
        map[k++] = (network[j][0]);
        map[k++] = (network[j][1]);
        map[k++] = (network[j][2]);
      }
      return map;
    }
docs: /*
  Method: getColormap
  
  builds colormap from the index
  
  returns array in the format:
  
  >
  > [r, g, b, r, g, b, r, g, b, ..]
  >