Home
last modified time | relevance | path

Searched refs:edge_array (Results 1 – 25 of 33) sorted by relevance

12

/third_party/boost/libs/graph/example/
Ddfs_parenthesis.cpp54 E edge_array[] = { E(0, 2), E(1, 1), E(1, 3), E(2, 1), E(2, 3), E(3, 1), in main() local
58 for (std::size_t j = 0; j < sizeof(edge_array) / sizeof(E); ++j) in main()
59 add_edge(edge_array[j].first, edge_array[j].second, G); in main()
61 Graph G(edge_array, edge_array + sizeof(edge_array) / sizeof(E), 5); in main()
Dcity_visitor.cpp117 E edge_array[] in main() local
127 for (std::size_t j = 0; j < sizeof(edge_array) / sizeof(E); ++j) in main()
128 add_edge(edge_array[j].first, edge_array[j].second, G); in main()
130 Graph G(edge_array, edge_array + sizeof(edge_array) / sizeof(E), N); in main()
Dkruskal-example.cpp23 E edge_array[] = { E(0, 2), E(1, 3), E(1, 4), E(2, 1), E(2, 3), E(3, 4), in main() local
26 std::size_t num_edges = sizeof(edge_array) / sizeof(E); in main()
35 = add_edge(edge_array[j].first, edge_array[j].second, g); in main()
39 Graph g(edge_array, edge_array + num_edges, weights, num_nodes); in main()
Ddfs-example.cpp60 E edge_array[] = { E(u, v), E(u, x), E(x, v), E(y, x), E(v, y), E(w, y), in main() local
64 for (std::size_t j = 0; j < sizeof(edge_array) / sizeof(E); ++j) in main()
65 add_edge(edge_array[j].first, edge_array[j].second, g); in main()
67 graph_t g(edge_array, edge_array + sizeof(edge_array) / sizeof(E), N); in main()
Djohnson-eg.cpp26 Edge edge_array[] = { Edge(0, 1), Edge(0, 2), Edge(0, 3), Edge(0, 4), in main() local
29 const std::size_t E = sizeof(edge_array) / sizeof(Edge); in main()
34 add_edge(edge_array[j].first, edge_array[j].second, g); in main()
36 Graph g(edge_array, edge_array + E, V); in main()
Dbfs-example.cpp53 E edge_array[] = { E(r, s), E(r, v), E(s, w), E(w, r), E(w, t), E(w, x), in main() local
56 const int n_edges = sizeof(edge_array) / sizeof(E); in main()
61 add_edge(edge_array[j].first, edge_array[j].second, g); in main()
64 graph_t g(edge_array, edge_array + n_edges, v_size_t(N)); in main()
Dadj_list_ra_edgelist.cpp23 E edge_array[] = { E(0, 1), E(0, 2), E(0, 1) }; in main() local
24 const std::size_t m = sizeof(edge_array) / sizeof(E); in main()
25 Graph g(edge_array, edge_array + m, n); in main()
Dremove_edge_if_bidir.cpp67 Edge edge_array[6] = { Edge(0, 3), Edge(0, 2), Edge(0, 3), Edge(1, 3), in main() local
73 add_edge(edge_array[j].first, edge_array[j].second, g); in main()
75 Graph g(edge_array, edge_array + 6, 4); in main()
Dremove_edge_if_undir.cpp66 Edge edge_array[5] in main() local
72 add_edge(edge_array[j].first, edge_array[j].second, g); in main()
74 Graph g(edge_array, edge_array + 5, 4); in main()
Dquick_tour.cpp91 Edge edge_array[] = { in main() local
100 const int num_edges = sizeof(edge_array) / sizeof(edge_array[0]); in main()
115 = add_edge(edge_array[j].first, edge_array[j].second, g); in main()
120 edge_array, edge_array + num_edges, transmission_delay, num_vertices); in main()
Dbfs-example2.cpp61 E edge_array[] = { E(r, s), E(r, v), E(s, w), E(w, r), E(w, t), E(w, x), in main() local
64 const int n_edges = sizeof(edge_array) / sizeof(E); in main()
72 add_edge(verts[edge_array[j].first], verts[edge_array[j].second], g); in main()
75 graph_t g(edge_array, edge_array + n_edges, v_size_t(N)); in main()
Dbellman-example.cpp62 E edge_array[] = { E(u, y), E(u, x), E(u, v), E(v, u), E(x, y), E(x, v), in main() local
72 add_edge(edge_array[j].first, edge_array[j].second, g); in main()
74 Graph g(edge_array, edge_array + n_edges, N); in main()
Dexterior_property_map.cpp82 Pair edge_array[11] = { Pair(0, 1), Pair(0, 2), Pair(0, 3), Pair(0, 4), in main() local
88 add_edge(edge_array[i].first, edge_array[i].second, G); in main()
Dedge_basics.cpp68 Pair edge_array[8] = { Pair(0, 1), Pair(0, 2), Pair(0, 3), Pair(0, 4), in main() local
76 add_edge(edge_array[i].first, edge_array[i].second, G); in main()
Ddijkstra-no-color-map-example.cpp41 Edge edge_array[] = { Edge(A, C), Edge(B, B), Edge(B, D), Edge(B, E), in main() local
44 int num_arcs = sizeof(edge_array) / sizeof(Edge); in main()
45 graph_t g(edge_array, edge_array + num_arcs, weights, num_nodes); in main()
Ddijkstra-example.cpp37 Edge edge_array[] = { Edge(A, C), Edge(B, B), Edge(B, D), Edge(B, E), in main() local
40 int num_arcs = sizeof(edge_array) / sizeof(Edge); in main()
41 graph_t g(edge_array, edge_array + num_arcs, weights, num_nodes); in main()
Dinterior_pmap_bundled.cpp72 Pair edge_array[11] = { Pair(0, 1), Pair(0, 2), Pair(0, 3), Pair(0, 4), in main() local
78 add_edge(edge_array[i].first, edge_array[i].second, G); in main()
Ddijkstra-example-listS.cpp40 Edge edge_array[] = { Edge(A, C), Edge(B, B), Edge(B, D), Edge(B, E), in main() local
43 int num_arcs = sizeof(edge_array) / sizeof(Edge); in main()
46 graph_t g(edge_array, edge_array + num_arcs, weights, num_nodes); in main()
Dinterior_property_map.cpp89 Pair edge_array[11] = { Pair(0, 1), Pair(0, 2), Pair(0, 3), Pair(0, 4), in main() local
95 add_edge(edge_array[i].first, edge_array[i].second, G); in main()
/third_party/boost/libs/graph_parallel/test/
Ddistributed_st_connected_test.cpp55 E edge_array[] = { E(u, u), E(u, v), E(u, w), E(v, w), E(x, y), in test_distributed_st_connected() local
57 Graph g(edge_array, edge_array + sizeof(edge_array) / sizeof(E), N); in test_distributed_st_connected()
67 E edge_array[] = { E(u, v), E(u, w), E(u, x), E(x, v), E(y, x), in test_distributed_st_connected() local
69 Graph g(edge_array, edge_array + sizeof(edge_array) / sizeof(E), N); in test_distributed_st_connected()
Ddistributed_page_rank_test.cpp59 Edge edge_array[] = in test_distributed_page_rank() local
61 const int num_edges = sizeof(edge_array)/sizeof(edge_array[0]); in test_distributed_page_rank()
64 Graph g(edge_array, edge_array + num_edges, N); in test_distributed_page_rank()
/third_party/boost/libs/graph/test/
Dcore_numbers_test.cpp83 Edge edge_array[] = { Edge(0, 1), Edge(0, 2), Edge(1, 2) }; in test_2() local
85 int num_arcs = sizeof(edge_array) / sizeof(Edge); in test_2()
87 graph_t G(edge_array, edge_array + num_arcs, weights, num_nodes); in test_2()
117 Edge edge_array[] in test_3() local
119 int num_arcs = sizeof(edge_array) / sizeof(Edge); in test_3()
121 graph_t G(edge_array, edge_array + num_arcs, num_nodes); in test_3()
Dsequential_vertex_coloring.cpp32 Edge edge_array[] = { Edge(A, C), Edge(B, B), Edge(B, D), Edge(B, E), in main() local
34 int m = sizeof(edge_array) / sizeof(Edge); in main()
35 Graph g(edge_array, edge_array + m, n); in main()
Djohnson-test.cpp42 Edge edge_array[] = { Edge(0, 1), Edge(1, 2), Edge(2, 3), Edge(1, 4), in main() local
46 const std::size_t E = sizeof(edge_array) / sizeof(Edge); in main()
48 Graph g(edge_array, edge_array + E, V); in main()
Dbellman-test.cpp36 Edge edge_array[] = { Edge(B, A) }; in main() local
37 int const numEdges = sizeof(edge_array) / sizeof(Edge); in main()
44 Graph g(edge_array, edge_array + numEdges, numVertex); in main()

12