Graphviz  2.41.20170921.2350
Enumerations | Functions
DotIO.h File Reference
#include <cgraph.h>
#include "SparseMatrix.h"
Include dependency graph for DotIO.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  {
  COLOR_SCHEME_NONE, COLOR_SCHEME_PASTEL = 1, COLOR_SCHEME_BLUE_YELLOW, COLOR_SCHEME_WHITE_RED,
  COLOR_SCHEME_GREY_RED, COLOR_SCHEME_PRIMARY, COLOR_SCHEME_SEQUENTIAL_SINGLEHUE_RED, COLOR_SCHEME_ADAM,
  COLOR_SCHEME_ADAM_BLEND, COLOR_SCHEME_SEQUENTIAL_SINGLEHUE_RED_LIGHTER, COLOR_SCHEME_GREY
}
 

Functions

void initDotIO (Agraph_t *g)
 
Agraph_tSparseMatrix_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_tmakeDotGraph (SparseMatrix, char *title, int dim, real *x, int with_color, int with_label, int use_matrix_value)
 
Agraph_tconvert_edge_labels_to_nodes (Agraph_t *g)
 
Agraph_tassign_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)
 

Enumeration Type Documentation

anonymous enum
Enumerator
COLOR_SCHEME_NONE 
COLOR_SCHEME_PASTEL 
COLOR_SCHEME_BLUE_YELLOW 
COLOR_SCHEME_WHITE_RED 
COLOR_SCHEME_GREY_RED 
COLOR_SCHEME_PRIMARY 
COLOR_SCHEME_SEQUENTIAL_SINGLEHUE_RED 
COLOR_SCHEME_ADAM 
COLOR_SCHEME_ADAM_BLEND 
COLOR_SCHEME_SEQUENTIAL_SINGLEHUE_RED_LIGHTER 
COLOR_SCHEME_GREY 

Definition at line 20 of file DotIO.h.

Function Documentation

Agraph_t* assign_random_edge_color ( Agraph_t g)

Definition at line 752 of file DotIO.c.

References agattr(), AGEDGE, agfstedge(), agfstnode(), agnxtedge(), agnxtnode(), agxset(), drand(), and hue2rgb().

void attach_edge_colors ( Agraph_t g,
int  dim,
real colors 
)

Definition at line 91 of file DotIO.c.

References agattr(), AGEDGE, agfstnode(), agfstout(), aghead(), agnxtnode(), agnxtout(), agxset(), and ND_id.

void attach_embedding ( Agraph_t g,
int  dim,
double  sc,
real x 
)
void attached_clustering ( Agraph_t g,
int  maxcluster,
int  clustering_scheme 
)
Agraph_t* convert_edge_labels_to_nodes ( Agraph_t g)
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().

void dump_coordinates ( char *  name,
int  n,
int  dim,
real x 
)

Definition at line 432 of file DotIO.c.

References strip_dir().

void edgelist_export ( FILE *  f,
SparseMatrix  A,
int  dim,
double *  x 
)
int getDotNodeID ( Agnode_t n)

Definition at line 1192 of file DotIO.c.

References ND_id.

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 
)
int Import_dot_splines ( Agraph_t g,
int ne,
char ***  xsplines 
)

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)

Definition at line 1182 of file DotIO.c.

References aginit(), AGNODE, and TRUE.

Agraph_t* makeDotGraph ( SparseMatrix  ,
char *  title,
int  dim,
real x,
int  with_color,
int  with_label,
int  use_matrix_value 
)
void setDotNodeID ( Agnode_t n,
int  v 
)

Definition at line 1187 of file DotIO.c.

References ND_id.

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* SparseMatrix_read_dot ( FILE *  )

Definition at line 122 of file DotIO.c.

References aginit(), AGNODE, agread(), and TRUE.