Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
DotIO.h File Reference
#include <cgraph.h>
#include <sparse/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)
 
void setDotNodeID (Agnode_t *n, int v)
 
int getDotNodeID (Agnode_t *n)
 
void attach_edge_colors (Agraph_t *g, int dim, double *colors)
 
SparseMatrix SparseMatrix_import_dot (Agraph_t *g, int dim, double **x, int format)
 
SparseMatrix Import_coord_clusters_from_dot (Agraph_t *g, int maxcluster, int dim, int *nn, double **label_sizes, double **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

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

◆ attach_edge_colors()

void attach_edge_colors ( Agraph_t g,
int  dim,
double *  colors 
)
extern

Definition at line 50 of file DotIO.c.

References agattr(), AGEDGE, agfstnode(), agfstout(), aghead, agnxtnode(), agnxtout(), agxbfree(), agxbuse(), agxset(), color_string(), ND_id, and row.

Referenced by edge_distinct_coloring().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ attached_clustering()

void attached_clustering ( Agraph_t g,
int  maxcluster,
int  clustering_scheme 
)

Definition at line 568 of file DotIO.c.

References A, agattr(), AGEDGE, agfstnode(), agfstout(), aghead, agnedges(), agnnodes(), AGNODE, agnxtnode(), agnxtout(), agxbfree(), agxbprint(), agxbuse(), agxget(), agxset(), CLUSTERING_MODULARITY, CLUSTERING_MQ, free(), gv_calloc(), I, MATRIX_TYPE_REAL, modularity_clustering(), mq_clustering(), ND_id, nedges, NULL, row, SparseMatrix_delete(), SparseMatrix_from_coordinate_arrays(), type, UNREACHABLE, and Verbose.

Referenced by clusterGraph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Dot_SetClusterColor()

void Dot_SetClusterColor ( Agraph_t g,
float *  rgb_r,
float *  rgb_g,
float *  rgb_b,
int *  clustering 
)

Definition at line 268 of file DotIO.c.

References agattr(), agfstnode(), AGNODE, agnxtnode(), agxbfree(), agxbuse(), agxset(), ND_id, NULL, and rgb2hex().

Referenced by makeMap().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getDotNodeID()

int getDotNodeID ( Agnode_t n)
extern

Definition at line 664 of file DotIO.c.

References ND_id.

Referenced by bundle().

Here is the caller graph for this function:

◆ Import_coord_clusters_from_dot()

SparseMatrix Import_coord_clusters_from_dot ( Agraph_t g,
int  maxcluster,
int  dim,
int *  nn,
double **  label_sizes,
double **  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 
)

◆ Import_dot_splines()

int Import_dot_splines ( Agraph_t g,
int *  ne,
char ***  xsplines 
)

Definition at line 217 of file DotIO.c.

References agattr(), AGEDGE, agfstnode(), agfstout(), agnedges(), agnxtnode(), agnxtout(), agxget(), gv_calloc(), ND_id, and nedges.

Referenced by edge_distinct_coloring().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initDotIO()

void initDotIO ( Agraph_t g)
extern

Definition at line 654 of file DotIO.c.

References aginit(), and AGNODE.

Referenced by bundle(), clarify(), clusterGraph(), and mapFromGraph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDotNodeID()

void setDotNodeID ( Agnode_t n,
int  v 
)
extern

Definition at line 659 of file DotIO.c.

References ND_id.

Referenced by bundle().

Here is the caller graph for this function:

◆ SparseMatrix_import_dot()

SparseMatrix SparseMatrix_import_dot ( Agraph_t g,
int  dim,
double **  x,
int  format 
)
extern

Definition at line 80 of file DotIO.c.

References A, agattr(), AGEDGE, agerrorf(), agfstnode(), agfstout(), aghead, agnameof(), agnedges(), agnnodes(), AGNODE, agnxtnode(), agnxtout(), agxget(), format, FORMAT_COORD, FORMAT_CSR, free(), graphviz_exit(), gv_calloc(), I, MATRIX_TYPE_REAL, ND_id, nedges, NULL, row, SparseMatrix_delete(), SparseMatrix_from_coordinate_arrays(), SparseMatrix_new(), and type.

Referenced by bundle(), and edge_distinct_coloring().

Here is the call graph for this function:
Here is the caller graph for this function: