Example #1
0
 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
Example #2
0
    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
Example #3
0
 def setUp(self):
     TestGraph.setUp(self)
     self.Graph = nx.Graph
Example #4
0
 def setUp(self):
     TestGraph.setUp(self)
     self.Graph = nx.Graph
Example #5
0
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()