#include "config.h"
#include "../tools/openFile.h"
#include <stdio.h>
#include <stdlib.h>
#include <sparse/general.h>
#include <sparse/QuadTree.h>
#include <time.h>
#include <sparse/SparseMatrix.h>
#include <getopt.h>
#include <string.h>
#include "make_map.h"
#include <sfdpgen/spring_electrical.h>
#include <sfdpgen/post_process.h>
#include <neatogen/overlap.h>
#include <sparse/clustering.h>
#include <cgraph/ingraphs.h>
#include <sparse/DotIO.h>
#include <sparse/colorutil.h>
#include <util/unreachable.h>
Go to the source code of this file.
◆ STANDALONE
◆ clusterGraph()
static void clusterGraph |
( |
Agraph_t * |
g, |
|
|
int |
maxcluster, |
|
|
int |
clustering_method |
|
) |
| |
|
static |
◆ init()
static void init |
( |
int |
argc, |
|
|
char * |
argv[], |
|
|
opts_t * |
opts |
|
) |
| |
|
static |
Definition at line 56 of file cluster.c.
References opts_t::clustering_method, CLUSTERING_MODULARITY, cmd, opts_t::infiles, opts_t::maxcluster, NULL, openFile(), opts, opts_t::outfp, UNREACHABLE, usage, and Verbose.
Referenced by main().
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 113 of file cluster.c.
References agclose(), agwrite(), clusterGraph(), opts_t::clustering_method, graphviz_exit(), opts_t::infiles, init(), opts_t::maxcluster, newIngraph(), nextGraph(), opts, and opts_t::outfp.
◆ usage()
static void usage |
( |
char * |
cmd, |
|
|
int |
eval |
|
) |
| |
|
static |
◆ usestr
Initial value:=
" -C k - generate no more than k clusters (0)\n\
0 : no limit\n\
-c k - use clustering method k (0)\n\
0 : use modularity\n\
1 : use modularity quality\n\
-o <outfile> - output file (stdout)\n\
-v - verbose mode\n\
-? - print usage\n"
Definition at line 39 of file cluster.c.
Referenced by usage().