]> granicus.if.org Git - graphviz/commitdiff
Add new .h file for aspect ratio processing
authorerg <devnull@localhost>
Fri, 17 Oct 2008 20:31:49 +0000 (20:31 +0000)
committererg <devnull@localhost>
Fri, 17 Oct 2008 20:31:49 +0000 (20:31 +0000)
lib/dotgen/aspect.h [new file with mode: 0644]

diff --git a/lib/dotgen/aspect.h b/lib/dotgen/aspect.h
new file mode 100644 (file)
index 0000000..93e7a9c
--- /dev/null
@@ -0,0 +1,37 @@
+/* $Id$Revision: */
+/* vim:set shiftwidth=4 ts=8: */
+
+/**********************************************************
+*      This software is part of the graphviz package      *
+*                http://www.graphviz.org/                 *
+*                                                         *
+*            Copyright (c) 1994-2004 AT&T Corp.           *
+*                and is licensed under the                *
+*            Common Public License, Version 1.0           *
+*                      by AT&T Corp.                      *
+*                                                         *
+*        Information and Software Systems Research        *
+*              AT&T Research, Florham Park NJ             *
+**********************************************************/
+
+#ifndef                ASPECT_H
+#define                ASPECT_H
+
+typedef struct aspect_t {
+    double targetAR;      /* target aspect ratio */
+    double combiAR;
+    int prevIterations;   /* no. of iterations in previous pass */
+    int curIterations;    /* no. of iterations in current pass */
+    int nextIter;         /* dynamically adjusted no. of iterations */
+    int nPasses;          /* bound on no. of top-level passes */
+    int badGraph;         /* hack: set if graph is disconnected or has
+                           * clusters. If so, turn off aspect */
+} aspect_t;
+
+extern void rank3(graph_t * g, aspect_t * asp);
+extern void initEdgeTypes(graph_t * g);
+extern void init_UF_size(graph_t * g);
+extern int countDummyNodes(graph_t * g);
+
+#endif                         /* ASPECT_H */
+