Graphviz 13.0.0~dev.20241220.2304
|
Go to the source code of this file.
Macros | |
#define | neighbor(t, i, edim, elist) elist[(edim)*(t)+i] |
#define | edge_head(e) edge_table[2*(e)] |
#define | edge_tail(e) edge_table[2*(e)+1] |
#define | cycle_prev(e) cycle[2*(e)] |
#define | cycle_next(e) cycle[2*(e)+1] |
Functions | |
int | make_map_from_rectangle_groups (bool include_OK_points, int n, int dim, double *x, double *sizes, int *grouping, SparseMatrix graph, double bounding_box_margin, int nrandom, int *nart, int nedgep, double shore_depth_tol, int *nverts, double **x_poly, SparseMatrix *poly_lines, SparseMatrix *polys, int **polys_groups, SparseMatrix *poly_point_map, SparseMatrix *country_graph, int highlight_cluster) |
void | improve_contiguity (int n, int dim, int *grouping, SparseMatrix poly_point_map, double *x, SparseMatrix graph) |
void | plot_dot_map (Agraph_t *gr, int n, int dim, double *x, SparseMatrix polys, SparseMatrix poly_lines, double line_width, const char *line_color, double *x_poly, int *polys_groups, char **labels, float *fsz, float *r, float *g, float *b, const char *opacity, SparseMatrix A, FILE *) |
void | map_optimal_coloring (int seed, SparseMatrix A, float *rgb_r, float *rgb_g, float *rgb_b) |
void | map_palette_optimal_coloring (char *color_scheme, SparseMatrix A, float **rgb_r, float **rgb_g, float **rgb_b) |
#define cycle_next | ( | e | ) | cycle[2*(e)+1] |
Definition at line 45 of file make_map.h.
#define cycle_prev | ( | e | ) | cycle[2*(e)] |
Definition at line 44 of file make_map.h.
#define edge_head | ( | e | ) | edge_table[2*(e)] |
Definition at line 42 of file make_map.h.
#define edge_tail | ( | e | ) | edge_table[2*(e)+1] |
Definition at line 43 of file make_map.h.
Definition at line 41 of file make_map.h.
void improve_contiguity | ( | int | n, |
int | dim, | ||
int * | grouping, | ||
SparseMatrix | poly_point_map, | ||
double * | x, | ||
SparseMatrix | graph | ||
) |
Definition at line 115 of file make_map.c.
References D, dim, dist(), distance_cropped(), get_poly_id(), graph(), maxit, SparseMatrix_delete(), SparseMatrix_get_real_adjacency_matrix_symmetrized(), SparseMatrix_transpose(), stress_model(), and Verbose.
Referenced by makeMap().
int make_map_from_rectangle_groups | ( | bool | include_OK_points, |
int | n, | ||
int | dim, | ||
double * | x, | ||
double * | sizes, | ||
int * | grouping, | ||
SparseMatrix | graph, | ||
double | bounding_box_margin, | ||
int | nrandom, | ||
int * | nart, | ||
int | nedgep, | ||
double | shore_depth_tol, | ||
int * | nverts, | ||
double ** | x_poly, | ||
SparseMatrix * | poly_lines, | ||
SparseMatrix * | polys, | ||
int ** | polys_groups, | ||
SparseMatrix * | poly_point_map, | ||
SparseMatrix * | country_graph, | ||
int | highlight_cluster | ||
) |
Definition at line 1231 of file make_map.c.
References add_point(), bbox(), delta, dim, drand(), free(), get_boundingbox(), graph(), gv_calloc(), make_map_internal(), MAX, MIN, N, Verbose, and X.
Referenced by makeMap().
void map_optimal_coloring | ( | int | seed, |
SparseMatrix | A, | ||
float * | rgb_r, | ||
float * | rgb_g, | ||
float * | rgb_b | ||
) |
Definition at line 93 of file make_map.c.
References A, country_graph_coloring(), free(), NULL, seed, and vector_float_take().
Referenced by makeMap().
void map_palette_optimal_coloring | ( | char * | color_scheme, |
SparseMatrix | A, | ||
float ** | rgb_r, | ||
float ** | rgb_g, | ||
float ** | rgb_b | ||
) |
Definition at line 34 of file make_map.c.
References A, dist(), free(), gv_calloc(), SparseMatrix_struct::m, node_distinct_coloring(), NULL, seed, SparseMatrix_delete(), SparseMatrix_distance_matrix(), SparseMatrix_export(), SparseMatrix_from_dense(), SparseMatrix_remove_diagonal(), and SparseMatrix_symmetrize().
Referenced by makeMap().
void plot_dot_map | ( | Agraph_t * | gr, |
int | n, | ||
int | dim, | ||
double * | x, | ||
SparseMatrix | polys, | ||
SparseMatrix | poly_lines, | ||
double | line_width, | ||
const char * | line_color, | ||
double * | x_poly, | ||
int * | polys_groups, | ||
char ** | labels, | ||
float * | fsz, | ||
float * | r, | ||
float * | g, | ||
float * | b, | ||
const char * | opacity, | ||
SparseMatrix | A, | ||
FILE * | f | ||
) |
Definition at line 326 of file make_map.c.
References A, agattr(), AGEDGE, AGNODE, AGRAPH, agwrite(), agxbfree(), agxbuse(), dim, NULL, plot_dot_edges(), plot_dot_labels(), and plot_dot_polygons().
Referenced by makeMap().