Zoltan2
Typedefs | Functions | Variables
GraphModel.cpp File Reference
#include <Zoltan2_GraphModel.hpp>
#include <Zoltan2_XpetraCrsMatrixAdapter.hpp>
#include <Zoltan2_XpetraCrsGraphAdapter.hpp>
#include <Zoltan2_BasicVectorAdapter.hpp>
#include <Zoltan2_TestHelpers.hpp>
#include <Zoltan2_InputTraits.hpp>
#include <string>
#include <vector>
#include <iostream>
#include <bitset>
#include <Teuchos_Comm.hpp>
#include <Teuchos_DefaultComm.hpp>
#include <Teuchos_ArrayView.hpp>
Include dependency graph for GraphModel.cpp:

Go to the source code of this file.

Typedefs

typedef Zoltan2::BasicUserTypes< zscalar_t, zlno_t, zgno_tsimpleUser_t
 
typedef Tpetra::CrsMatrix< zscalar_t, zlno_t, zgno_t, znode_ttcrsMatrix_t
 
typedef Tpetra::CrsGraph< zlno_t, zgno_t, znode_ttcrsGraph_t
 
typedef Tpetra::Map< zlno_t, zgno_t, znode_ttmap_t
 
typedef Zoltan2::BasicVectorAdapter< simpleUser_tsimpleVAdapter_t
 
typedef Zoltan2::MatrixAdapter< tcrsMatrix_t, simpleUser_tbaseMAdapter_t
 
typedef Zoltan2::GraphAdapter< tcrsGraph_t, simpleUser_tbaseGAdapter_t
 
typedef Zoltan2::XpetraCrsMatrixAdapter< tcrsMatrix_t, simpleUser_txMAdapter_t
 
typedef Zoltan2::XpetraCrsGraphAdapter< tcrsGraph_t, simpleUser_txGAdapter_t
 

Functions

void printGraph (zlno_t nrows, const zgno_t *v, const zgno_t *elid, const zgno_t *egid, const zlno_t *idx, const RCP< const Comm< int > > &comm)
 
template<typename BaseAdapter , typename Adapter , typename MatrixOrGraph >
void testAdapter (RCP< const MatrixOrGraph > &M, RCP< const Tpetra::CrsGraph< zlno_t, zgno_t > > &Mgraph, const RCP< const Comm< int > > &comm, bool idsAreConsecutive, int nVtxWeights, int nEdgeWeights, int nnzWgtIdx, int coordDim, bool consecutiveIdsRequested, bool removeSelfEdges, bool buildLocalGraph)
 
void testGraphModel (string fname, zgno_t xdim, zgno_t ydim, zgno_t zdim, const RCP< const Comm< int > > &comm, int nVtxWeights, int nnzWgtIdx, int coordDim, bool consecutiveIdsRequested, bool removeSelfEdges, bool buildLocalGraph)
 
int main (int argc, char *argv[])
 

Variables

const int SMALL_NUMBER_OF_ROWS = 5
 Test of GraphModel interface. More...
 

Typedef Documentation

Definition at line 82 of file GraphModel.cpp.

typedef Tpetra::CrsMatrix<zscalar_t, zlno_t, zgno_t, znode_t> tcrsMatrix_t

Definition at line 84 of file GraphModel.cpp.

typedef Tpetra::CrsGraph<zlno_t, zgno_t, znode_t> tcrsGraph_t

Definition at line 85 of file GraphModel.cpp.

typedef Tpetra::Map<zlno_t, zgno_t, znode_t> tmap_t

Definition at line 86 of file GraphModel.cpp.

Definition at line 88 of file GraphModel.cpp.

Definition at line 90 of file GraphModel.cpp.

Definition at line 91 of file GraphModel.cpp.

Definition at line 93 of file GraphModel.cpp.

Definition at line 94 of file GraphModel.cpp.

Function Documentation

void printGraph ( zlno_t  nrows,
const zgno_t v,
const zgno_t elid,
const zgno_t egid,
const zlno_t idx,
const RCP< const Comm< int > > &  comm 
)

Definition at line 100 of file GraphModel.cpp.

template<typename BaseAdapter , typename Adapter , typename MatrixOrGraph >
void testAdapter ( RCP< const MatrixOrGraph > &  M,
RCP< const Tpetra::CrsGraph< zlno_t, zgno_t > > &  Mgraph,
const RCP< const Comm< int > > &  comm,
bool  idsAreConsecutive,
int  nVtxWeights,
int  nEdgeWeights,
int  nnzWgtIdx,
int  coordDim,
bool  consecutiveIdsRequested,
bool  removeSelfEdges,
bool  buildLocalGraph 
)

Definition at line 131 of file GraphModel.cpp.

void testGraphModel ( string  fname,
zgno_t  xdim,
zgno_t  ydim,
zgno_t  zdim,
const RCP< const Comm< int > > &  comm,
int  nVtxWeights,
int  nnzWgtIdx,
int  coordDim,
bool  consecutiveIdsRequested,
bool  removeSelfEdges,
bool  buildLocalGraph 
)

Definition at line 555 of file GraphModel.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 669 of file GraphModel.cpp.

Variable Documentation

const int SMALL_NUMBER_OF_ROWS = 5

Test of GraphModel interface.

Todo:

test all methods of GraphModel

test with GraphAdapter: add testGraphAdapter which is like testAdapter except is uses GraphAdapter queries and it may have edges weights.

Address the TODOs in the code below.

Definition at line 74 of file GraphModel.cpp.