def setUp(self): TestGraph.setUp(self) class MyGraph(nx.DiGraph): node_dict_factory = OrderedDict adjlist_dict_factory = OrderedDict edge_attr_dict_factory = OrderedDict self.Graph=MyGraph
def setUp(self): TestGraph.setUp(self) class MyGraph(nx.DiGraph): node_dict_factory = OrderedDict adjlist_outer_dict_factory = OrderedDict adjlist_inner_dict_factory = OrderedDict edge_attr_dict_factory = OrderedDict self.Graph = MyGraph
def setUp(self): TestGraph.setUp(self) self.Graph = nx.Graph
from test_node import TestNode from test_link import TestLink from test_graph import TestGraph from test_euler import TestEuler if __name__ == "__main__": test = TestNode() test.test_all() test = TestLink() test.test_all() test = TestGraph() test.test_all() test = TestEuler() test.test_all()