Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
galois::graphs::PartitioningScaffold Class Reference

Default fields and functions all CuSP partitioners use; this is a class to inherit from. More...

#include <BasePolicies.h>

Inheritance diagram for galois::graphs::PartitioningScaffold:
galois::graphs::CustomMasterAssignment galois::graphs::ReadMasterAssignment FennelP GingerP SugarColumnFlipP SugarP GenericCVC GenericCVCColumnFlip GenericHVC MiningPolicyDegrees MiningPolicyNaive NoCommunication

Public Member Functions

 PartitioningScaffold (uint32_t hostID, uint32_t numHosts, uint64_t numNodes, uint64_t numEdges)
 Constructor for Scaffold. More...
 
void saveGIDToHost (std::vector< std::pair< uint64_t, uint64_t >> &gid2host)
 Save a provided map from host to nodes a host has read into this object. More...
 

Protected Attributes

uint32_t _hostID
 host ID of owner of this object More...
 
uint32_t _numHosts
 total number of hosts More...
 
uint64_t _numNodes
 number of nodes in graph More...
 
uint64_t _numEdges
 number of edges in graph More...
 
std::vector< std::pair
< uint64_t, uint64_t > > 
_gid2host
 maps from host id to nodes that host as read from disk More...
 

Detailed Description

Default fields and functions all CuSP partitioners use; this is a class to inherit from.

Constructor & Destructor Documentation

galois::graphs::PartitioningScaffold::PartitioningScaffold ( uint32_t  hostID,
uint32_t  numHosts,
uint64_t  numNodes,
uint64_t  numEdges 
)
inline

Constructor for Scaffold.

Parameters
hostIDHost ID of caller
numHostsTotal num hosts in execution
numNodesTotal number of nodes in graph
numEdgesTotal number of edges in graph

Member Function Documentation

void galois::graphs::PartitioningScaffold::saveGIDToHost ( std::vector< std::pair< uint64_t, uint64_t >> &  gid2host)
inline

Save a provided map from host to nodes a host has read into this object.

Parameters
gid2hostMap of hosts to read nodes to save

Member Data Documentation

std::vector<std::pair<uint64_t, uint64_t> > galois::graphs::PartitioningScaffold::_gid2host
protected

maps from host id to nodes that host as read from disk

uint32_t galois::graphs::PartitioningScaffold::_hostID
protected

host ID of owner of this object

uint64_t galois::graphs::PartitioningScaffold::_numEdges
protected

number of edges in graph

uint32_t galois::graphs::PartitioningScaffold::_numHosts
protected

total number of hosts

uint64_t galois::graphs::PartitioningScaffold::_numNodes
protected

number of nodes in graph


The documentation for this class was generated from the following file: