Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
gvmap.c File Reference

creates a geographical map highlighting clusters More...

#include "config.h"
#include "../tools/openFile.h"
#include <cgraph/unreachable.h>
#include <stdbool.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 <cgraph/startswith.h>
#include <sparse/DotIO.h>
#include <sparse/colorutil.h>
#include <sparse/color_palette.h>
Include dependency graph for gvmap.c:

Go to the source code of this file.

Data Structures

struct  params_t
 

Macros

#define STANDALONE
 
#define HLPFX   "ighlight="
 
#define N_HLPFX   (sizeof(HLPFX)-1)
 

Functions

static void usage (char *cmd, int eval)
 
static void init (int argc, char **argv, params_t *pm)
 
static int validateCluster (int n, int *grouping, int clust_num)
 
static void makeMap (SparseMatrix graph, int n, double *x, double *width, int *grouping, char **labels, float *fsz, float *rgb_r, float *rgb_g, float *rgb_b, params_t *pm, Agraph_t *g)
 
static void mapFromGraph (Agraph_t *g, params_t *pm)
 
int main (int argc, char *argv[])
 

Variables

static const char usestr []
 

Macro Definition Documentation

◆ HLPFX

#define HLPFX   "ighlight="

Definition at line 131 of file gvmap.c.

◆ N_HLPFX

#define N_HLPFX   (sizeof(HLPFX)-1)

Definition at line 132 of file gvmap.c.

◆ STANDALONE

#define STANDALONE

Definition at line 22 of file gvmap.c.

Function Documentation

◆ init()

static void init ( int  argc,
char **  argv,
params_t pm 
)
static

◆ main()

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

Definition at line 418 of file gvmap.c.

References agclose(), graphviz_exit(), params_t::infiles, init(), mapFromGraph(), newIngraph(), nextGraph(), and NULL.

Here is the call graph for this function:

◆ makeMap()

static void makeMap ( SparseMatrix  graph,
int  n,
double *  x,
double *  width,
int *  grouping,
char **  labels,
float *  fsz,
float *  rgb_r,
float *  rgb_g,
float *  rgb_b,
params_t pm,
Agraph_t g 
)
static

◆ mapFromGraph()

static void mapFromGraph ( Agraph_t g,
params_t pm 
)
static

Definition at line 396 of file gvmap.c.

References params_t::clusterMethod, params_t::color_scheme, params_t::dim, free(), graph(), Import_coord_clusters_from_dot(), initDotIO(), makeMap(), params_t::maxcluster, NULL, and params_t::useClusters.

Referenced by main().

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

◆ usage()

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

Definition at line 124 of file gvmap.c.

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

Here is the call graph for this function:

◆ validateCluster()

static int validateCluster ( int  n,
int *  grouping,
int  clust_num 
)
static

Definition at line 306 of file gvmap.c.

Referenced by makeMap().

Here is the caller graph for this function:

Variable Documentation

◆ usestr

const char usestr[]
static

Definition at line 66 of file gvmap.c.

Referenced by usage().