Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
cluster.c File Reference
#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>
Include dependency graph for cluster.c:

Go to the source code of this file.

Data Structures

struct  opts_t
 

Macros

#define STANDALONE
 

Functions

static void usage (char *cmd, int eval)
 
static void init (int argc, char *argv[], opts_t *opts)
 
static void clusterGraph (Agraph_t *g, int maxcluster, int clustering_method)
 
int main (int argc, char *argv[])
 

Variables

static const char usestr []
 

Macro Definition Documentation

◆ STANDALONE

#define STANDALONE

Definition at line 15 of file cluster.c.

Function Documentation

◆ clusterGraph()

static void clusterGraph ( Agraph_t g,
int  maxcluster,
int  clustering_method 
)
static

Definition at line 108 of file cluster.c.

References attached_clustering(), and initDotIO().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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.

Here is the call graph for this function:

◆ usage()

static void usage ( char *  cmd,
int  eval 
)
static

Definition at line 49 of file cluster.c.

References cmd, eval(), graphviz_exit(), and usestr.

Here is the call graph for this function:

Variable Documentation

◆ usestr

const char usestr[]
static
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().