Graphviz
2.41.20171026.1811
|
Go to the source code of this file.
Functions | |
void | initDotIO (Agraph_t *g) |
Agraph_t * | SparseMatrix_read_dot (FILE *) |
void | setDotNodeID (Agnode_t *n, int v) |
int | getDotNodeID (Agnode_t *n) |
void | attach_edge_colors (Agraph_t *g, int dim, real *colors) |
void | attach_embedding (Agraph_t *g, int dim, double sc, real *x) |
SparseMatrix | SparseMatrix_import_dot (Agraph_t *g, int dim, real **label_sizes, real **x, int *n_edge_label_nodes, int **edge_label_nodes, int format, SparseMatrix *D) |
Agraph_t * | makeDotGraph (SparseMatrix, char *title, int dim, real *x, int with_color, int with_label, int use_matrix_value) |
Agraph_t * | convert_edge_labels_to_nodes (Agraph_t *g) |
Agraph_t * | assign_random_edge_color (Agraph_t *g) |
void | dump_coordinates (char *name, int n, int dim, real *x) |
void | edgelist_export (FILE *f, SparseMatrix A, int dim, double *x) |
char * | hue2rgb (real hue, char *color) |
SparseMatrix | Import_coord_clusters_from_dot (Agraph_t *g, int maxcluster, int dim, int *nn, real **label_sizes, real **x, int **clusters, float **rgb_r, float **rgb_g, float **rgb_b, float **fsz, char ***labels, int default_color_scheme, int clustering_scheme, int useClusters) |
void | Dot_SetClusterColor (Agraph_t *g, float *rgb_r, float *rgb_g, float *rgb_b, int *clustering) |
void | attached_clustering (Agraph_t *g, int maxcluster, int clustering_scheme) |
int | Import_dot_splines (Agraph_t *g, int *ne, char ***xsplines) |
anonymous enum |
Definition at line 752 of file DotIO.c.
References agattr(), AGEDGE, agfstedge(), agfstnode(), agnxtedge(), agnxtnode(), agxset(), drand(), and hue2rgb().
Definition at line 91 of file DotIO.c.
References agattr(), AGEDGE, agfstnode(), agfstout(), aghead(), agnxtnode(), agnxtout(), agxset(), and ND_id.
Definition at line 1088 of file DotIO.c.
References agattr(), AGEDGE, agfstnode(), agfstout(), aghead(), agnedges(), agnnodes(), AGNODE, agnxtnode(), agnxtout(), agxget(), agxset(), assert, CLUSTERING_MODULARITY, CLUSTERING_MQ, FALSE, FREE, MALLOC, MATRIX_TYPE_REAL, modularity_clustering(), mq_clustering(), N_NEW, ND_id, NULL, real, SparseMatrix_delete(), SparseMatrix_from_coordinate_arrays(), TRUE, and Verbose.
Definition at line 678 of file DotIO.c.
References agattr(), AGEDGE, agedge(), agfstedge(), agfstnode(), aghead(), agnameof(), agnedges(), agnnodes(), AGNODE, agnxtedge(), agnxtnode(), agopen(), agset(), agtail(), agxget(), cat_string3(), Agraph_s::desc, ND_id, and NULL.
void Dot_SetClusterColor | ( | Agraph_t * | g, |
float * | rgb_r, | ||
float * | rgb_g, | ||
float * | rgb_b, | ||
int * | clustering | ||
) |
Definition at line 781 of file DotIO.c.
References agattr(), agfstnode(), AGNODE, agnxtnode(), agxset(), ND_id, NULL, and rgb2hex().
Definition at line 432 of file DotIO.c.
References strip_dir().
void edgelist_export | ( | FILE * | f, |
SparseMatrix | A, | ||
int | dim, | ||
double * | x | ||
) |
char* hue2rgb | ( | real | hue, |
char * | color | ||
) |
Definition at line 53 of file colorutil.c.
References Hue2RGB(), int, and real.
Referenced by assign_random_edge_color(), and makeDotGraph().
SparseMatrix Import_coord_clusters_from_dot | ( | Agraph_t * | g, |
int | maxcluster, | ||
int | dim, | ||
int * | nn, | ||
real ** | label_sizes, | ||
real ** | x, | ||
int ** | clusters, | ||
float ** | rgb_r, | ||
float ** | rgb_g, | ||
float ** | rgb_b, | ||
float ** | fsz, | ||
char *** | labels, | ||
int | default_color_scheme, | ||
int | clustering_scheme, | ||
int | useClusters | ||
) |
Definition at line 799 of file DotIO.c.
References agattr(), AGEDGE, agfstnode(), agfstout(), agfstsubg(), agget(), aghead(), agnameof(), agnedges(), agnnodes(), AGNODE, agnxtnode(), agnxtout(), agnxtsubg(), agxget(), agxset(), assert, CLUSTERING_MODULARITY, CLUSTERING_MQ, COLOR_OK, COLOR_SCHEME_ADAM, COLOR_SCHEME_ADAM_BLEND, COLOR_SCHEME_BLUE_YELLOW, COLOR_SCHEME_GREY, COLOR_SCHEME_GREY_RED, COLOR_SCHEME_NONE, COLOR_SCHEME_PASTEL, COLOR_SCHEME_PRIMARY, COLOR_SCHEME_SEQUENTIAL_SINGLEHUE_RED, COLOR_SCHEME_SEQUENTIAL_SINGLEHUE_RED_LIGHTER, COLOR_SCHEME_WHITE_RED, colorxlate(), FALSE, FREE, MALLOC, MATRIX_TYPE_REAL, MAX, MAX_COLOR, MIN, modularity_clustering(), mq_clustering(), N_NEW, ND_id, NULL, palette_adam, palette_adam_blend, palette_blue_to_yellow, palette_grey, palette_grey_to_red, palette_pastel, palette_primary, palette_sequential_singlehue_red, palette_sequential_singlehue_red_lighter, palette_white_to_red, POINTS, real, color_s::RGBA, RGBA_DOUBLE, SparseMatrix_from_coordinate_arrays(), TRUE, color_s::u, and Verbose.
Definition at line 342 of file DotIO.c.
References agattr(), AGEDGE, agfstnode(), agfstout(), agnedges(), agnxtnode(), agnxtout(), agxget(), ND_id, and NULL.
void initDotIO | ( | Agraph_t * | g | ) |
Agraph_t* makeDotGraph | ( | SparseMatrix | , |
char * | title, | ||
int | dim, | ||
real * | x, | ||
int | with_color, | ||
int | with_label, | ||
int | use_matrix_value | ||
) |
Definition at line 466 of file DotIO.c.
References SparseMatrix_struct::a, ABS, agattr(), Agdirected, AGEDGE, agedge(), agfstnode(), AGNODE, agnxtnode(), agopen(), AGRAPH, Agundirected, agxset(), distance(), FALSE, FREE, hue2rgb(), SparseMatrix_struct::ia, SparseMatrix_struct::ja, SparseMatrix_struct::m, MALLOC, MATRIX_TYPE_COMPLEX, MATRIX_TYPE_INTEGER, MATRIX_TYPE_REAL, MAX, MIN, N_NEW, ND_id, NULL, SparseMatrix_struct::nz, real, SparseMatrix_known_undirected, strip_dir(), TRUE, and SparseMatrix_struct::type.
SparseMatrix SparseMatrix_import_dot | ( | Agraph_t * | g, |
int | dim, | ||
real ** | label_sizes, | ||
real ** | x, | ||
int * | n_edge_label_nodes, | ||
int ** | edge_label_nodes, | ||
int | format, | ||
SparseMatrix * | D | ||
) |
Definition at line 135 of file DotIO.c.
References SparseMatrix_struct::a, agattr(), AGEDGE, agerr(), AGERR, agfstnode(), agfstout(), agget(), aghead(), agnameof(), agnedges(), agnnodes(), AGNODE, agnxtnode(), agnxtout(), agxget(), assert, FALSE, FORMAT_COORD, FORMAT_CSR, FREE, SparseMatrix_struct::ia, SparseMatrix_struct::ja, MALLOC, MATRIX_TYPE_REAL, N_NEW, ND_id, NULL, SparseMatrix_struct::nz, POINTS, real, SparseMatrix_from_coordinate_arrays(), SparseMatrix_new(), and TRUE.