1 #ifndef OMEGA_H_GRAPH_HPP
2 #define OMEGA_H_GRAPH_HPP
7 #include "Omega_h_array.hpp"
23 OMEGA_H_INLINE
Graph() {}
24 explicit Graph(
LOs ab2b_) : ab2b(ab2b_) {}
25 Graph(
LOs a2ab_,
LOs ab2b_) : a2ab(a2ab_), ab2b(ab2b_) {}
46 Reals graph_weighted_average_arc_data(
48 Reals graph_weighted_average(
53 Graph identity_graph(LO nnodes);
62 #define INST_DECL(T) \
63 extern template Read<T> graph_reduce(Graph, Read<T>, Int, Omega_h_Op); \
64 extern template void map_into( \
65 Read<T> a_data, Graph a2b, Write<T> b_data, Int width); \
66 extern template Read<T> map_onto( \
67 Read<T> a_data, Graph a2b, LO nb, T, Int width);
Definition: Omega_h_array.hpp:50
Definition: amr_mpi_test.cpp:6
Graph unmap_graph(LOs a2b, Graph b2c)
traverse two graphs a2b and b2c to form and return a graph from a2c
Definition: Omega_h_graph.cpp:42
Read< T > graph_reduce(Graph a2b, Read< T > b_data, Int width, Omega_h_Op op)
apply reduction operation op to the edge data associated with each source node
Definition: Omega_h_graph.cpp:62
Graph add_edges(Graph g1, Graph g2)
combine the edges of two graphs that have the same set of nodes
Definition: Omega_h_graph.cpp:14
directed graph (as defined by graph theory) in compressed row format
Definition: Omega_h_graph.hpp:22