(self)
| 286 | print "pattern.graph.Graph.split()" |
| 287 | |
| 288 | def test_update(self): |
| 289 | # Assert node position after updating layout algorithm. |
| 290 | self.g.update() |
| 291 | for n in self.g.nodes: |
| 292 | self.assertTrue(n.x != 0) |
| 293 | self.assertTrue(n.y != 0) |
| 294 | self.g.layout.reset() |
| 295 | for n in self.g.nodes: |
| 296 | self.assertTrue(n.x == 0) |
| 297 | self.assertTrue(n.y == 0) |
| 298 | print "pattern.graph.Graph.update()" |
| 299 | |
| 300 | def test_copy(self): |
| 301 | # Assert deep copy of Graph. |