code: def make_data(n):
      
      V = range(1,n+1)
      x = dict([(i, random.random()) for i in V])
      y = dict([(i, random.random()) for i in V])
      c, q = {}, {}
      Q = 100
      for i in V:
          q[i] = random.randint(10, 20)
          for j in V:
              if j > i:
                  c[i, j] = distance(x[i], y[i], x[j], y[j])
      return V, c, q, Q
docs: make_data: compute matrix distance based on euclidean distance