  */
 template <typename VertexId, typename Value, typename SizeT>
 void RunTests(
-  const Csr<VertexId, Value, SizeT> &graph,
-  CommandLineArgs                   &args,
-  mgpu::CudaContext&                context)
-{
-  bool instrumented  = false; // do not collect instrumentation from kernels
-  int  max_grid_size = 0;     // maximum grid size (up to the enactor)
-  int  num_gpus      = 1;     // number of GPUs for multi-gpu enactor to use
-  g_quick            = false; // Whether or not to skip ref validation
+  const Csr<VertexId, Value, SizeT> & graph,
+  CommandLineArgs                   & args,
+  mgpu::CudaContext                 & context)
+{
+  bool instrumented  = 0;  // do not collect instrumentation from kernels
+  int  max_grid_size = 0;  // maximum grid size (up to the enactor)
+  int  num_gpus      = 1;  // number of GPUs for multi-gpu enactor to use
+  g_quick            = 0;  // Whether or not to skip ref validation
 
   instrumented = args.CheckCmdLineFlag("instrumented");
-
   g_quick = args.CheckCmdLineFlag("quick");
   g_verbose = args.CheckCmdLineFlag("v");
 

      g_undirected,
      false) != 0) { return 1; }

    // display graph
    // csr.DisplayGraph();

    /***************************************************************
    * To make sure two graphs have same weight value for each edge *
    * we have to change ll_value = rand()%64 in market.cuh file to *
    * some NON-RANDOM value if the original graph does NOT contain *
    * weight per edge. Note it only support FULLY-CONNECTED graphs *
    ***************************************************************/

    // test graph connectivity and run test
    if (IsConnected(csr))
    {
        RunTests(csr, args, *context);

template<typename VertexId, typename Value, typename SizeT>
bool IsConnected(const Csr<VertexId, Value, SizeT> & graph)
{
  GunrockGraph *temp = (GunrockGraph*)malloc(sizeof(GunrockGraph));
  unsigned int *components = (unsigned int*)malloc(sizeof(unsigned int));
  run_cc<VertexId, Value, SizeT>(temp, components, graph, 0, 1);
  if (temp) free(temp);
  return *components == 1;
}

