Ejemplo n.º 1
0
    def test_graph_should_be_pretty_printed(self):
        g = Graph(v=["A", "B", "C"])
        g.add_edge("A", "C")

        self.assertEqual("[('A', ['C']), ('B', []), ('C', [])]", g.__str__())