omega_h
Reliable mesh adaptation
Public Member Functions | Public Attributes | List of all members
Omega_h::Graph Struct Reference

directed graph (as defined by graph theory) in compressed row format More...

#include <Omega_h_graph.hpp>

Inheritance diagram for Omega_h::Graph:
Omega_h::Adj Omega_h::Children

Public Member Functions

 Graph (LOs ab2b_)
 
 Graph (LOs a2ab_, LOs ab2b_)
 
LO nnodes () const
 
LO nedges () const
 

Public Attributes

LOs a2ab
 
LOs ab2b
 

Detailed Description

directed graph (as defined by graph theory) in compressed row format

the typical access pattern: using a serial CPU backend for (LO a = 0; a < na; ++a) { for (auto ab = a2ab[a]; ab < a2ab[a + 1]; ++ab) { auto b = ab2b[ab]; // do something with the (a,b) pair } }


The documentation for this struct was generated from the following files: