defs.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #include <neatogen/neato.h>
  15. #include <neatogen/sparsegraph.h>
  16. #ifdef DIGCOLA
  17. #ifdef IPSEPCOLA
  18. typedef struct cluster_data {
  19. int nvars; /* total count of vars in clusters */
  20. int nclusters; /* number of clusters */
  21. int *clustersizes; /* number of vars in each cluster */
  22. int **clusters; /* list of var indices for constituents of each c */
  23. int ntoplevel; /* number of nodes not in any cluster */
  24. int *toplevel; /* array of nodes not in any cluster */
  25. boxf *bb; /* bounding box of each cluster */
  26. } cluster_data;
  27. #endif
  28. #endif
  29. #ifdef __cplusplus
  30. }
  31. #endif