Graphviz 15.1.1~dev.20260630.1303
Loading...
Searching...
No Matches
DotIO.h
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (c) 2011 AT&T Intellectual Property
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v2.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11#pragma once
12
13#include <cgraph.h>
14#include <sparse/SparseMatrix.h>
15#include <stddef.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21enum {
33};
34void initDotIO(Agraph_t *g);
35
36void setDotNodeID(Agnode_t *n, int v);
38
39void attach_edge_colors(Agraph_t *g, size_t dim, double *colors);
40
43 Agraph_t *g, int maxcluster, int dim, int *nn, double **label_sizes,
44 double **x, int **clusters, float **rgb_r, float **rgb_g, float **rgb_b,
45 float **fsz, char ***labels, int default_color_scheme,
46 int clustering_scheme, int useClusters);
47
48void Dot_SetClusterColor(Agraph_t *g, float *rgb_r, float *rgb_g, float *rgb_b,
49 int *clustering);
50void attached_clustering(Agraph_t *g, int maxcluster, int clustering_scheme);
51
52int Import_dot_splines(Agraph_t *g, int *ne, char ***xsplines);
53
54#ifdef __cplusplus
55}
56#endif
int getDotNodeID(Agnode_t *n)
Definition DotIO.c:639
SparseMatrix SparseMatrix_import_dot(Agraph_t *g, double **x, int format)
Definition DotIO.c:91
@ COLOR_SCHEME_ADAM_BLEND
Definition DotIO.h:30
@ COLOR_SCHEME_PASTEL
Definition DotIO.h:23
@ COLOR_SCHEME_ADAM
Definition DotIO.h:29
@ COLOR_SCHEME_GREY_RED
Definition DotIO.h:26
@ COLOR_SCHEME_SEQUENTIAL_SINGLEHUE_RED
Definition DotIO.h:28
@ COLOR_SCHEME_NONE
Definition DotIO.h:22
@ COLOR_SCHEME_SEQUENTIAL_SINGLEHUE_RED_LIGHTER
Definition DotIO.h:31
@ COLOR_SCHEME_GREY
Definition DotIO.h:32
@ COLOR_SCHEME_WHITE_RED
Definition DotIO.h:25
@ COLOR_SCHEME_PRIMARY
Definition DotIO.h:27
@ COLOR_SCHEME_BLUE_YELLOW
Definition DotIO.h:24
void initDotIO(Agraph_t *g)
Definition DotIO.c:633
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)
Definition DotIO.c:265
void Dot_SetClusterColor(Agraph_t *g, float *rgb_r, float *rgb_g, float *rgb_b, int *clustering)
Definition DotIO.c:245
void attach_edge_colors(Agraph_t *g, size_t dim, double *colors)
Definition DotIO.c:60
void setDotNodeID(Agnode_t *n, int v)
Definition DotIO.c:637
void attached_clustering(Agraph_t *g, int maxcluster, int clustering_scheme)
Definition DotIO.c:549
int Import_dot_splines(Agraph_t *g, int *ne, char ***xsplines)
Definition DotIO.c:190
abstract graph C library, Cgraph API
static bool useClusters
Definition ccomps.c:67
GVIO_API const char * format
Definition gvio.h:51
static const int dim
graph or subgraph
Definition cgraph.h:424