DotIO.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 v1.0
  5. * which accompanies this distribution, and is available at
  6. * https://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors: Details at https://graphviz.org
  9. *************************************************************************/
  10. #pragma once
  11. #include <cgraph.h>
  12. #include <sparse/SparseMatrix.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. 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};
  17. extern void initDotIO (Agraph_t *g);
  18. extern void setDotNodeID (Agnode_t* n, int v);
  19. extern int getDotNodeID (Agnode_t* n);
  20. extern void attach_edge_colors(Agraph_t* g, int dim, double *colors);
  21. extern SparseMatrix SparseMatrix_import_dot(Agraph_t *g, int dim, double **x,
  22. int format);
  23. 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);
  24. void Dot_SetClusterColor(Agraph_t* g, float *rgb_r, float *rgb_g, float *rgb_b, int *clustering);
  25. void attached_clustering(Agraph_t* g, int maxcluster, int clustering_scheme);
  26. int Import_dot_splines(Agraph_t* g, int *ne, char ***xsplines);
  27. #ifdef __cplusplus
  28. }
  29. #endif