def setup(self):
		# build an ER 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):
				if random.random() < self.P:
					self.ER_G.add_edge_(i,j)

		# generate some endpoints
		self.sources = random.sample(range(self.NUM_NODES),self.NUM_SOURCES)
dataset/ETHPy150Open networkdynamics/zenlib/src/zen/benchmarks/shortest_path.py/UERDijkstraBenchmark.setup/original