Graphviz  2.41.20171026.1811
aspect.h
Go to the documentation of this file.
1 /* $Id$Revision: */
2 /* vim:set shiftwidth=4 ts=8: */
3 
4 /*************************************************************************
5  * Copyright (c) 2011 AT&T Intellectual Property
6  * All rights reserved. This program and the accompanying materials
7  * are made available under the terms of the Eclipse Public License v1.0
8  * which accompanies this distribution, and is available at
9  * http://www.eclipse.org/legal/epl-v10.html
10  *
11  * Contributors: See CVS logs. Details at http://www.graphviz.org/
12  *************************************************************************/
13 
14 #ifndef ASPECT_H
15 #define ASPECT_H
16 
17 typedef struct aspect_t {
18  double targetAR; /* target aspect ratio */
19  double combiAR;
20  int prevIterations; /* no. of iterations in previous pass */
21  int curIterations; /* no. of iterations in current pass */
22  int nextIter; /* dynamically adjusted no. of iterations */
23  int nPasses; /* bound on no. of top-level passes */
24  int badGraph; /* hack: set if graph is disconnected or has
25  * clusters. If so, turn off aspect */
26 } aspect_t;
27 
28 extern aspect_t* setAspect (Agraph_t * g, aspect_t* adata);
29 extern void rank3(graph_t * g, aspect_t * asp);
30 extern void initEdgeTypes(graph_t * g);
31 extern void init_UF_size(graph_t * g);
32 extern int countDummyNodes(graph_t * g);
33 
34 #endif /* ASPECT_H */
35 
int curIterations
Definition: aspect.h:21
int nextIter
Definition: aspect.h:22
int nPasses
Definition: aspect.h:23
void initEdgeTypes(graph_t *g)
Definition: aspect.c:1595
double targetAR
Definition: aspect.h:18
int badGraph
Definition: aspect.h:24
int prevIterations
Definition: aspect.h:20
void init_UF_size(graph_t *g)
Definition: aspect.c:1969
int countDummyNodes(graph_t *g)
Definition: aspect.c:129
double combiAR
Definition: aspect.h:19
struct aspect_t aspect_t
void rank3(graph_t *g, aspect_t *asp)
Definition: aspect.c:1786
aspect_t * setAspect(Agraph_t *g, aspect_t *adata)
Definition: aspect.c:1978