Home | History | Annotate | Download | only in tests

Lines Matching refs:P10

10         self.P10=cnlti(nx.path_graph(10),first_label=1)
33 P10=self.P10
34 assert_equal(nx.node_boundary(P10,[]),[])
35 assert_equal(nx.node_boundary(P10,[],[]),[])
36 assert_equal(nx.node_boundary(P10,[1,2,3]),[4])
37 assert_equal(sorted(nx.node_boundary(P10,[4,5,6])),[3, 7])
38 assert_equal(sorted(nx.node_boundary(P10,[3,4,5,6,7])),[2, 8])
39 assert_equal(nx.node_boundary(P10,[8,9,10]),[7])
40 assert_equal(sorted(nx.node_boundary(P10,[4,5,6],[9,10])),[])
44 P10=self.P10
46 assert_equal(nx.edge_boundary(P10,[]),[])
47 assert_equal(nx.edge_boundary(P10,[],[]),[])
48 assert_equal(nx.edge_boundary(P10,[1,2,3]),[(3, 4)])
49 assert_equal(sorted(nx.edge_boundary(P10,[4,5,6])),[(4, 3), (6, 7)])
50 assert_equal(sorted(nx.edge_boundary(P10,[3,4,5,6,7])),[(3, 2), (7, 8)])
51 assert_equal(nx.edge_boundary(P10,[8,9,10]),[(8, 7)])
52 assert_equal(sorted(nx.edge_boundary(P10,[4,5,6],[9,10])),[])
53 assert_equal(nx.edge_boundary(P10,[1,2,3],[3,4,5]) ,[(2, 3), (3, 4)])