def setup(self):
		# build a network
		self.ER_G = zn.Graph()

		for i in range(self.NUM_NODES):
			self.ER_G.add_node(i)

		# add edges
		for i in range(self.NUM_NODES):
			for j in range(i+1,self.NUM_NODES):
				r = random.random()
				w = random.random()
				if r < self.P:
					w = math.ceil(w*10.0)
					self.ER_G.add_edge_(i,j, weight=w)
					self.weights.append(w)
dataset/ETHPy150Open networkdynamics/zenlib/src/zen/benchmarks/spanning.py/MinimumSpanningTreeBenchmark.setup/original