raiigraph
C++ RAII for igraph data structures
Loading...
Searching...
No Matches
raiigraph Namespace Reference

Utilities for manipulating igraph data structures in C++. More...

Classes

class  Graph
 Wrapper around igraph_t objects with RAII behavior. More...
 
class  IgraphError
 Error class for igraph-related errors. More...
 
class  Matrix
 Wrapper around igraph_matrix_*_t objects with RAII behavior. More...
 
class  RNGScope
 Control the igraph RNG via RAII. More...
 
class  Vector
 Wrapper around igraph_vector_*_t objects with RAII behavior. More...
 

Typedefs

typedef Matrix< matrix_internal::Integer > IntMatrix
 
typedef Matrix< matrix_internal::Real > RealMatrix
 
typedef Matrix< matrix_internal::Bool > BoolMatrix
 
typedef Vector< internal::Integer > IntVector
 
typedef Vector< internal::Real > RealVector
 
typedef Vector< internal::Bool > BoolVector
 

Functions

void check_code (igraph_error_t code)
 
bool initialize ()
 

Detailed Description

Utilities for manipulating igraph data structures in C++.

Typedef Documentation

◆ BoolMatrix

typedef Matrix<matrix_internal::Bool> raiigraph::BoolMatrix

Matrix of igraph booleans.

◆ BoolVector

typedef Vector<internal::Bool> raiigraph::BoolVector

Vector of igraph booleans.

◆ IntMatrix

typedef Matrix<matrix_internal::Integer> raiigraph::IntMatrix

Matrix of igraph integers.

◆ IntVector

typedef Vector<internal::Integer> raiigraph::IntVector

Vector of igraph integers.

◆ RealMatrix

typedef Matrix<matrix_internal::Real> raiigraph::RealMatrix

Matrix of igraph reals.

◆ RealVector

typedef Vector<internal::Real> raiigraph::RealVector

Vector of igraph reals.

Function Documentation

◆ check_code()

void raiigraph::check_code ( igraph_error_t code)
inline

Throw an IgraphError if code is not IGRAPH_SUCCESS.

Parameters
codeError code returned by igraph functions.

◆ initialize()

bool raiigraph::initialize ( )
inline

Initialize the igraph library by calling igraph_setup(). This should be called before any igraph functions or raiigraph classes are used.

Returns
Boolean indicating whether initialization has already been performed. If true, this function is a no-op.