Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
make_map.h File Reference
#include <sparse/SparseMatrix.h>
#include <cgraph/cgraph.h>
#include <stdbool.h>
Include dependency graph for make_map.h:
This graph shows which files directly or indirectly include this file:

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

void 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)
 

Macro Definition Documentation

◆ cycle_next

#define cycle_next (   e)    cycle[2*(e)+1]

Definition at line 41 of file make_map.h.

◆ cycle_prev

#define cycle_prev (   e)    cycle[2*(e)]

Definition at line 40 of file make_map.h.

◆ edge_head

#define edge_head (   e)    edge_table[2*(e)]

Definition at line 38 of file make_map.h.

◆ edge_tail

#define edge_tail (   e)    edge_table[2*(e)+1]

Definition at line 39 of file make_map.h.

◆ neighbor

#define neighbor (   t,
  i,
  edim,
  elist 
)    elist[(edim)*(t)+i]

Definition at line 37 of file make_map.h.

Function Documentation

◆ improve_contiguity()

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

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

◆ make_map_from_rectangle_groups()

void 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 1225 of file make_map.c.

References add_point(), bbox(), delta, drand(), free(), get_boundingbox(), graph(), gv_calloc(), make_map_internal(), MAX, MIN, N, Verbose, and X.

Referenced by makeMap().

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

◆ map_optimal_coloring()

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

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

◆ map_palette_optimal_coloring()

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

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

◆ plot_dot_map()

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(), NULL, plot_dot_edges(), plot_dot_labels(), and plot_dot_polygons().

Referenced by makeMap().

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