Example #1
0
 def test_wed(self):
     wed = WED(self.edges, self.coords)
     self.assertEqual(wed.enum_edges_region(0),
                     [(4, 3), (3, 1), (1, 2), (2, 4), (4, 5),
                         (5, 6), (6, 5), (5, 4), (4, 3)])
     self.assertEqual(wed.enum_links_node(20),
                     [(19, 20), (21, 20), (20, 24), (22, 20), (20, 12)])
Example #2
0
 def test_wed(self):
     wed = WED(self.edges, self.coords)
     self.assertEqual(wed.enum_edges_region(0), [(4, 3), (3, 1), (1, 2),
                                                 (2, 4), (4, 5), (5, 6),
                                                 (6, 5), (5, 4), (4, 3)])
     self.assertEqual(wed.enum_links_node(20),
                      [(19, 20), (21, 20), (20, 24), (22, 20), (20, 12)])
Example #3
0
 def test_wed(self):
     wed = WED(self.edges, self.coords)
     self.assertEqual(wed.enum_edges_region(3),
                      [(19, 11), (11, 14), (14, 16), (16, 17), (17, 19),
                       (19, 11)])
     self.assertEqual(wed.enum_links_node(19),
                      [(17, 19), (22, 19), (19, 25), (18, 19), (19, 11)])
Example #4
0
    def test_wed(self):
        wed = WED(self.edges, self.coords)
        self.assertEqual(wed.enum_edges_region(0),
                         [(5, 0), (0, 1), (1, 4), (4, 5), (5, 3), (3, 2), (2, 3), (3, 5), (5, 0)])
        self.assertEqual(wed.enum_links_node(19),
                         [(17, 19), (22, 19), (19, 25), (18, 19), (19, 11)])

        self.assertEqual(wed.w_links().histogram, [(1, 3), (2, 9), (3, 8), (4, 4), (5, 3), (6, 2)])
Example #5
0
    def test_wed(self):
        wed = WED(self.edges, self.coords)
        self.assertEqual(wed.enum_edges_region(0), [(5, 0), (0, 1), (1, 4),
                                                    (4, 5), (5, 3), (3, 2),
                                                    (2, 3), (3, 5), (5, 0)])
        self.assertEqual(wed.enum_links_node(19),
                         [(17, 19), (22, 19), (19, 25), (18, 19), (19, 11)])

        self.assertEqual(wed.w_links().histogram, [(1, 3), (2, 9), (3, 8),
                                                   (4, 4), (5, 3), (6, 2)])
Example #6
0
 def test_wed(self):
     wed = WED(self.edges, self.coords)
     self.assertEqual(wed.enum_edges_region(3),
                      [(19, 11), (11, 14), (14, 16), (16, 17), (17, 19), (19, 11)])
     self.assertEqual(wed.enum_links_node(19),
                      [(17, 19), (22, 19), (19, 25), (18, 19), (19, 11)])