Graphviz  2.41.20171026.1811
Data Structures | Macros | Functions
DotIO.c File Reference
#include "general.h"
#include "DotIO.h"
#include "clustering.h"
#include "mq.h"
#include "color_palette.h"
#include "colorutil.h"
Include dependency graph for DotIO.c:

Go to the source code of this file.

Data Structures

struct  Agnodeinfo_t
 

Macros

#define STANDALONE
 
#define ND_id(n)   (((Agnodeinfo_t*)((n)->base.data))->id)
 

Functions

void attach_edge_colors (Agraph_t *g, int dim, real *colors)
 
Agraph_tSparseMatrix_read_dot (FILE *f)
 
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)
 
int Import_dot_splines (Agraph_t *g, int *ne, char ***xsplines)
 
void edgelist_export (FILE *f, SparseMatrix A, int dim, real *x)
 
void dump_coordinates (char *name, int n, int dim, real *x)
 
Agraph_tmakeDotGraph (SparseMatrix A, char *name, int dim, real *x, int with_color, int with_label, int use_matrix_value)
 
char * cat_string (char *s1, char *s2)
 
char * cat_string3 (char *s1, char *s2, char *s3, int id)
 
Agraph_tconvert_edge_labels_to_nodes (Agraph_t *g)
 
Agraph_tassign_random_edge_color (Agraph_t *g)
 
void Dot_SetClusterColor (Agraph_t *g, float *rgb_r, float *rgb_g, float *rgb_b, int *clusters)
 
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 attached_clustering (Agraph_t *g, int maxcluster, int clustering_scheme)
 
void initDotIO (Agraph_t *g)
 
void setDotNodeID (Agnode_t *n, int v)
 
int getDotNodeID (Agnode_t *n)
 

Macro Definition Documentation

#define ND_id (   n)    (((Agnodeinfo_t*)((n)->base.data))->id)
#define STANDALONE

Definition at line 14 of file DotIO.c.

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 attached_clustering ( Agraph_t g,
int  maxcluster,
int  clustering_scheme 
)
char* cat_string ( char *  s1,
char *  s2 
)

Definition at line 653 of file DotIO.c.

char* cat_string3 ( char *  s1,
char *  s2,
char *  s3,
int  id 
)

Definition at line 662 of file DotIO.c.

Referenced by convert_edge_labels_to_nodes().

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

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,
real x 
)
int getDotNodeID ( Agnode_t n)

Definition at line 1192 of file DotIO.c.

References ND_id.

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  A,
char *  name,
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 *  f)

Definition at line 122 of file DotIO.c.

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