Graphviz 13.0.0~dev.20241220.2304
|
creates a geographical map highlighting clusters More...
#include "config.h"
#include "../tools/openFile.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 <sparse/DotIO.h>
#include <sparse/colorutil.h>
#include <sparse/color_palette.h>
#include <util/startswith.h>
#include <util/unreachable.h>
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 int | 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 int | mapFromGraph (Agraph_t *g, params_t *pm) |
int | main (int argc, char *argv[]) |
Variables | |
static const char | usestr [] |
|
static |
Definition at line 135 of file gvmap.c.
References params_t::bbox_margin, CLUSTERING_MODULARITY, CLUSTERING_MQ, params_t::clusterMethod, params_t::cmd, cmd, params_t::color_optimize, params_t::color_scheme, COLOR_SCHEME_GREY, COLOR_SCHEME_NONE, COLOR_SCHEME_PASTEL, params_t::color_scheme_str, params_t::dim, params_t::highlight_cluster, HLPFX, params_t::improve_contiguity_n, params_t::include_OK_points, params_t::infiles, knownColorScheme(), params_t::line_color, params_t::line_width, MAX, params_t::maxcluster, N_HLPFX, params_t::nart, params_t::nedgep, params_t::nrandom, NULL, params_t::opacity, openFile(), params_t::outfile, params_t::plotedges, params_t::seed, params_t::shore_depth_tol, startswith(), UNREACHABLE, usage, params_t::useClusters, and Verbose.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 425 of file gvmap.c.
References agclose(), graphviz_exit(), params_t::infiles, init(), mapFromGraph(), newIngraph(), nextGraph(), and NULL.
|
static |
Definition at line 317 of file gvmap.c.
References params_t::bbox_margin, params_t::color_optimize, params_t::color_scheme_str, D, params_t::dim, dim, Dot_SetClusterColor(), ELSCHEME_NONE, free(), graph(), params_t::highlight_cluster, improve_contiguity(), params_t::improve_contiguity_n, params_t::include_OK_points, params_t::line_color, params_t::line_width, make_map_from_rectangle_groups(), map_optimal_coloring(), map_palette_optimal_coloring(), params_t::nart, params_t::nedgep, params_t::nrandom, NULL, params_t::opacity, params_t::outfile, plot_dot_map(), params_t::plotedges, remove_overlap(), params_t::seed, params_t::shore_depth_tol, SparseMatrix_delete(), SparseMatrix_get_real_adjacency_matrix_symmetrized(), validateCluster(), and Verbose.
Referenced by mapFromGraph().
Definition at line 402 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().
|
static |
|
static |