PPL Logo

libs/ck-libs/metis/GKlib/test/rw.c File Reference

A simple frequent itemset discovery program to test GKlib's routines. More...

Go to the source code of this file.

Data Structures

struct  params_t

Functions

void print_init_info (params_t *params, gk_csr_t *mat)
void print_final_info (params_t *params)
params_tparse_cmdline (int argc, char *argv[])
int main (int argc, char *argv[])

Variables

static struct gk_option long_options []
static char helpstr [][100]
static char shorthelpstr [][100]


Detailed Description

A simple frequent itemset discovery program to test GKlib's routines.

Date:
6/12/2008
Author:
George
Version:
$Id: rw.c 11387 2012-01-21 23:36:23Z karypis $ 

Definition in file rw.c.


Function Documentation

void print_init_info ( params_t params,
gk_csr_t mat 
)

Function prototypes

This function prints run parameters

void print_final_info ( params_t params  ) 

This function prints final statistics

params_t* parse_cmdline ( int  argc,
char *  argv[] 
)

This is the entry point of the command-line argument parser

Definition at line 217 of file cmdline_gpmetis.c.

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


Variable Documentation

struct gk_option long_options[] [static]

Initial value:

 {
  {"niter",      1,      0,      CMD_NITER},
  {"lamda",      1,      0,      CMD_LAMDA},
  {"eps",        1,      0,      CMD_EPS},
  {"ppr",        1,      0,      CMD_PPR},
  {"ntvs",       1,      0,      CMD_NTVS},
  {"help",       0,      0,      CMD_HELP},
  {0,            0,      0,      0}
}
Local variables

Definition at line 39 of file rw.c.

char helpstr[][100] [static]

Initial value:

 {
" ",
"Usage: rw [options] <graph-file> <out-file>",
" ",
" Required parameters",
"  graph-file",
"     The name of the file storing the transactions. The file is in ",
"     Metis' graph format.",
" ",
" Optional parameters",
"  -niter=int",
"     Specifies the maximum number of iterations. [default: 100]",
" ",
"  -lamda=float",
"     Specifies the follow-the-adjacent-links probability. [default: 0.80]",
" ",
"  -eps=float",
"     Specifies the error tollerance. [default: 1e-10]",
" ",
"  -ppr=int",
"     Specifies the source of the personalized PR. [default: -1]",
" ",
"  -ntvs=int",
"     Specifies the number of test-vectors to compute. [default: -1]",
" ",
"  -help",
"     Prints this message.",
""
}

Definition at line 53 of file rw.c.

char shorthelpstr[][100] [static]

Initial value:

 {
" ",
"   Usage: rw [options] <graph-file> <out-file>",
"          use 'rw -help' for a summary of the options.",
""
}

Definition at line 83 of file rw.c.


Generated on Mon Sep 21 08:09:07 2020 for Charm++ by  doxygen 1.5.5