| 1 |
/************************************************************************* |
| 2 |
* Copyright (c) 2011 AT&T Intellectual Property |
| 3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
| 6 |
* https://www.eclipse.org/legal/epl-v10.html |
| 7 |
* |
| 8 |
* Contributors: Details at https://graphviz.org |
| 9 |
*************************************************************************/ |
| 10 |
|
| 11 |
#pragma once |
| 12 |
|
| 13 |
#include <sparse/SparseMatrix.h> |
| 14 |
#include <cgraph/cgraph.h> |
| 15 |
#include <stdbool.h> |
| 16 |
|
| 17 |
int make_map_from_rectangle_groups(bool include_OK_points, int n, int dim, |
| 18 |
double *x, double *sizes, int *grouping, |
| 19 |
SparseMatrix graph, |
| 20 |
double bounding_box_margin, int nrandom, |
| 21 |
int *nart, int nedgep, |
| 22 |
double shore_depth_tol, int *nverts, |
| 23 |
double **x_poly, SparseMatrix *poly_lines, |
| 24 |
SparseMatrix *polys, int **polys_groups, |
| 25 |
SparseMatrix *poly_point_map, |
| 26 |
SparseMatrix *country_graph, |
| 27 |
int highlight_cluster); |
| 28 |
|
| 29 |
void improve_contiguity(int n, int dim, int *grouping, SparseMatrix poly_point_map, double *x, SparseMatrix graph); |
| 30 |
|
| 31 |
void plot_dot_map(Agraph_t* gr, int n, int dim, double *x, SparseMatrix polys, |
| 32 |
SparseMatrix poly_lines, double line_width, |
| 33 |
const char *line_color, double *x_poly, int *polys_groups, |
| 34 |
char **labels, float *fsz, float *r, float *g, float *b, |
| 35 |
const char* opacity, SparseMatrix A, FILE*); |
| 36 |
|
| 37 |
void map_optimal_coloring(int seed, SparseMatrix A, float *rgb_r, float *rgb_g, float *rgb_b); |
| 38 |
void map_palette_optimal_coloring(char *color_scheme, SparseMatrix A, |
| 39 |
float **rgb_r, float **rgb_g, float **rgb_b); |
| 40 |
|
| 41 |
#define neighbor(t, i, edim, elist) elist[(edim)*(t)+i] |
| 42 |
#define edge_head(e) edge_table[2*(e)] |
| 43 |
#define edge_tail(e) edge_table[2*(e)+1] |
| 44 |
#define cycle_prev(e) cycle[2*(e)] |
| 45 |
#define cycle_next(e) cycle[2*(e)+1] |