8#include "CombBLAS/CombBLAS.h"
16bool from_string(
T & t,
const string& s, std::ios_base& (*
f)(std::ios_base&))
33 cout <<
"Usage: ./IndexingTiming Input/Force/Binary <Inputfile>/<Scale>/<BinaryFile>" <<
endl;
41 if(
string(
argv[1]) ==
string(
"Input"))
43 A->ReadDistribute(
argv[2], 0);
45 else if(
string(
argv[1]) ==
string(
"Binary"))
52 outs <<
"Reading " <<
argv[2] <<
" with " << n <<
" vertices and " << m <<
" edges" <<
endl;
67 else if(
string(
argv[1]) ==
string(
"Force"))
69 double initiator[4] = {.6, .4/3, .4/3, .4/3};
94 p.iota(
A->getnrow(), 0);
121 cout<<
"Indexing Iterations finished"<<
endl;
130 for(
int i = 0; i<
nclust; i++)
137 for(
int i=0; i<
nclust; i++)
145 for(
int i=0; i<
nclust; i++)
156 cout<<
"Indexing Iterations finished"<<
endl;
161 for(
int i=0; i<
nclust; i++)
bool from_string(T &t, const string &s, std::ios_base &(*f)(std::ios_base &))
void GenGraph500Data(double initiator[4], int log_numverts, int edgefactor, bool scramble=false, bool packed=false)
static void Print(const std::string &s)
void PermEdges(DistEdgeList< IT > &DEL)
void RenameVertices(DistEdgeList< IU > &DEL)