Пример #1
0
 def testEdgeOccupation(self):
     n = 10
     for m in xrange(0, 10, 1):
         agent = Agent(n = n, m = m, topology='ErdosRenyi')
         p = float(m)/float(n * (n-1)/2)
         self.assertEqual(agent.edgeOccupation(), p)