Graphviz  2.41.20171026.1811
DotIO.h
Go to the documentation of this file.
1 /* $Id$Revision: */
2 /* vim:set shiftwidth=4 ts=8: */
3 
4 /*************************************************************************
5  * Copyright (c) 2011 AT&T Intellectual Property
6  * All rights reserved. This program and the accompanying materials
7  * are made available under the terms of the Eclipse Public License v1.0
8  * which accompanies this distribution, and is available at
9  * http://www.eclipse.org/legal/epl-v10.html
10  *
11  * Contributors: See CVS logs. Details at http://www.graphviz.org/
12  *************************************************************************/
13 
14 #ifndef DOTIO_H
15 #define DOTIO_H
16 
17 #include <cgraph.h>
18 #include "SparseMatrix.h"
19 
21 extern void initDotIO (Agraph_t *g);
22 extern Agraph_t* SparseMatrix_read_dot(FILE*);
23 
24 extern void setDotNodeID (Agnode_t* n, int v);
25 extern int getDotNodeID (Agnode_t* n);
26 
27 extern void attach_edge_colors(Agraph_t* g, int dim, real *colors);
28 
29 extern void attach_embedding(Agraph_t *g, int dim, double sc, real *x);
30 
31 extern SparseMatrix SparseMatrix_import_dot(Agraph_t* g, int dim, real **label_sizes, real **x, int *n_edge_label_nodes,
32  int **edge_label_nodes, int format, SparseMatrix *D);
33 extern Agraph_t* makeDotGraph (SparseMatrix, char *title, int dim, real *x, int with_color, int with_label, int use_matrix_value);
36 void dump_coordinates(char *name, int n, int dim, real *x);
37 void edgelist_export(FILE* f, SparseMatrix A, int dim, double *x);
38 char * hue2rgb(real hue, char *color);
39 
40 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);
41 
42 void Dot_SetClusterColor(Agraph_t* g, float *rgb_r, float *rgb_g, float *rgb_b, int *clustering);
43 void attached_clustering(Agraph_t* g, int maxcluster, int clustering_scheme);
44 
45 int Import_dot_splines(Agraph_t* g, int *ne, char ***xsplines);
46 #endif
int getDotNodeID(Agnode_t *n)
Definition: DotIO.c:1192
void attach_embedding(Agraph_t *g, int dim, double sc, real *x)
void edgelist_export(FILE *f, SparseMatrix A, int dim, real *x)
Definition: DotIO.c:387
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: DotIO.c:135
char * hue2rgb(real hue, char *color)
Definition: colorutil.c:53
void initDotIO(Agraph_t *g)
Definition: DotIO.c:1182
void attach_edge_colors(Agraph_t *g, int dim, real *colors)
Definition: DotIO.c:91
int Import_dot_splines(Agraph_t *g, int *ne, char ***xsplines)
Definition: DotIO.c:342
void attached_clustering(Agraph_t *g, int maxcluster, int clustering_scheme)
Definition: DotIO.c:1088
Agraph_t * SparseMatrix_read_dot(FILE *f)
Definition: DotIO.c:122
Agraph_t * makeDotGraph(SparseMatrix A, char *name, int dim, real *x, int with_color, int with_label, int use_matrix_value)
Definition: DotIO.c:466
void Dot_SetClusterColor(Agraph_t *g, float *rgb_r, float *rgb_g, float *rgb_b, int *clusters)
Definition: DotIO.c:781
Agraph_t * convert_edge_labels_to_nodes(Agraph_t *g)
Definition: DotIO.c:678
void setDotNodeID(Agnode_t *n, int v)
Definition: DotIO.c:1187
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: DotIO.c:799
void dump_coordinates(char *name, int n, int dim, real *x)
Definition: DotIO.c:432
Agraph_t * assign_random_edge_color(Agraph_t *g)
Definition: DotIO.c:752
#define real
Definition: general.h:34