Zoltan2
Classes | Namespaces | Functions
Zoltan2_GraphModel.hpp File Reference

Defines the GraphModel interface. More...

#include <Zoltan2_Model.hpp>
#include <Zoltan2_InputTraits.hpp>
#include <Zoltan2_MatrixAdapter.hpp>
#include <Zoltan2_GraphAdapter.hpp>
#include <Zoltan2_IdentifierAdapter.hpp>
#include <Zoltan2_VectorAdapter.hpp>
#include <Zoltan2_StridedData.hpp>
#include <vector>
#include <Teuchos_Hashtable.hpp>
Include dependency graph for Zoltan2_GraphModel.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Zoltan2::GraphModel< Adapter >
 GraphModel defines the interface required for graph models. More...

Namespaces

namespace  Zoltan2

Functions

template<typename User >
size_t Zoltan2::removeUndesiredEdges (const RCP< const Environment > &env, int myRank, bool removeSelfEdges, bool removeOffProcessEdges, bool removeOffGroupEdges, ArrayView< const typename InputTraits< User >::gid_t > &gids, ArrayView< const typename InputTraits< User >::gid_t > &gidNbors, ArrayView< const int > &procIds, ArrayView< StridedData< typename InputTraits< User >::lno_t, typename InputTraits< User >::scalar_t > > &edgeWeights, ArrayView< const typename InputTraits< User >::lno_t > &offsets, ArrayRCP< const typename InputTraits< User >::gid_t > &newGidNbors, typename InputTraits< User >::scalar_t **&newWeights, ArrayRCP< const typename InputTraits< User >::lno_t > &newOffsets)
 Helper function to remove undesired edges from a graph.
template<typename User >
size_t Zoltan2::computeLocalEdgeList (const RCP< const Environment > &env, int rank, size_t numLocalEdges, size_t numLocalGraphEdges, RCP< const IdentifierMap< User > > &idMap, ArrayRCP< const typename InputTraits< User >::gid_t > &allEdgeIds, ArrayRCP< int > &allProcs, ArrayRCP< const typename InputTraits< User >::lno_t > &allOffs, ArrayRCP< StridedData< typename InputTraits< User >::lno_t, typename InputTraits< User >::scalar_t > > &allWeights, ArrayRCP< const typename InputTraits< User >::lno_t > &edgeLocalIds, ArrayRCP< const typename InputTraits< User >::lno_t > &offsets, ArrayRCP< StridedData< typename InputTraits< User >::lno_t, typename InputTraits< User >::scalar_t > > &eWeights)
 Helper function to create new edges lists containing only edges connected to a neighbor on this process.

Detailed Description

Defines the GraphModel interface.

Definition in file Zoltan2_GraphModel.hpp.