46#ifndef MUELU_GRAPH_DECL_HPP
47#define MUELU_GRAPH_DECL_HPP
49#include <Xpetra_ConfigDefs.hpp>
50#include <Xpetra_CrsGraph.hpp>
51#include <Xpetra_Map_fwd.hpp>
72#undef MUELU_GRAPH_SHORT
79 Graph(
const RCP<const CrsGraph> & graph,
const std::string & =
"") :
graph_(graph) {
92 const RCP<const Teuchos::Comm<int> >
GetComm()
const {
return graph_->getComm(); }
110 ArrayView<const LO> rowView;
111 graph_->getLocalRowView(i, rowView);
119 size_t GetNodeNumGhost()
const;
143#define MUELU_GRAPH_SHORT
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu representation of a graph.
MueLu representation of a compressed row storage graph.
const RCP< const CrsGraph > GetGraph() const
std::string description() const
Return a simple one-line description of the Graph.
ArrayRCP< const bool > localDirichletNodes_
Vector of Dirichlet boundary node IDs on current process.
const RCP< const Map > GetImportMap() const
Returns overlapping import map (nodes).
void SetBoundaryNodeMap(const ArrayRCP< const bool > &localDirichletNodes)
Set map with local ids of boundary nodes.
const RCP< const Map > GetDomainMap() const
Graph(const RCP< const CrsGraph > &graph, const std::string &="")
Xpetra::global_size_t GetGlobalNumEdges() const
Return number of global edges in the graph.
size_t GetNodeNumEdges() const
Return number of edges owned by the calling node.
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the Graph with some verbosity level to an FancyOStream object.
const ArrayRCP< const bool > GetBoundaryNodeMap() const
Returns map with local ids of boundary nodes.
ArrayView< const LO > getNeighborVertices(LO i) const
Return the list of vertices adjacent to the vertex 'v'.
size_t getLocalMaxNumRowEntries() const
Returns the maximum number of entries across all rows/columns on this node.
RCP< const CrsGraph > graph_
bool isLocalNeighborVertex(LO i) const
Return true if vertex with local id 'v' is on current process.
const RCP< const Teuchos::Comm< int > > GetComm() const
size_t GetNodeNumVertices() const
Return number of vertices owned by the calling node.
Namespace for MueLu classes and methods.
KokkosClassic::DefaultNode::DefaultNodeType DefaultNode