/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/pack/pack.h

Go to the documentation of this file.
00001 /* $Id: pack.h,v 1.6 2006/12/07 22:49:37 erg Exp $ $Revision: 1.6 $ */
00002 /* vim:set shiftwidth=4 ts=8: */
00003 
00004 /**********************************************************
00005 *      This software is part of the graphviz package      *
00006 *                http://www.graphviz.org/                 *
00007 *                                                         *
00008 *            Copyright (c) 1994-2004 AT&T Corp.           *
00009 *                and is licensed under the                *
00010 *            Common Public License, Version 1.0           *
00011 *                      by AT&T Corp.                      *
00012 *                                                         *
00013 *        Information and Software Systems Research        *
00014 *              AT&T Research, Florham Park NJ             *
00015 **********************************************************/
00016 
00017 
00018 
00019 #ifndef _PACK_H
00020 #define _PACK_H 1
00021 
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025 
00026 #include "types.h"
00027 #include "graph.h"
00028 
00029 /* Type indicating granularity and method 
00030  *  l_undef  - unspecified
00031  *  l_node   - polyomino using nodes and edges
00032  *  l_clust  - polyomino using nodes and edges and top-level clusters
00033  *             (assumes ND_clust(n) unused by application)
00034  *  l_graph  - polyomino using graph bounding box
00035  *  l_hull   - polyomino using convex hull (unimplemented)
00036  *  l_tile   - tiling using graph bounding box (unimplemented)
00037  *  l_bisect - alternate bisection using graph bounding box (unimplemented)
00038  */
00039     typedef enum { l_undef, l_clust, l_node, l_graph } pack_mode;
00040 
00041     typedef struct {
00042 #ifdef UNIMPLEMENTED
00043         float aspect;           /* desired aspect ratio */
00044 #endif
00045         unsigned int margin;    /* margin left around objects, in points */
00046         int doSplines;          /* use splines in constructing graph shape */
00047         pack_mode mode;         /* granularity and method */
00048         boolean *fixed;         /* fixed[i] == true implies g[i] should not be moved */
00049     } pack_info;
00050 
00051     extern point *putGraphs(int, Agraph_t **, Agraph_t *, pack_info *);
00052     extern int packGraphs(int, Agraph_t **, Agraph_t *, pack_info *);
00053     extern int packSubgraphs(int, Agraph_t **, Agraph_t *, pack_info *);
00054     extern int pack_graph(int, Agraph_t **, Agraph_t *, boolean*);
00055     extern pack_mode getPackMode(Agraph_t * g, pack_mode dflt);
00056     extern int getPack(Agraph_t *, int not_def, int dflt);
00057 
00058     extern int isConnected(Agraph_t *);
00059     extern Agraph_t **ccomps(Agraph_t *, int *, char *);
00060     extern Agraph_t **pccomps(Agraph_t *, int *, char *, boolean *);
00061     extern int nodeInduce(Agraph_t *);
00062 
00063 #ifdef __cplusplus
00064 }
00065 #endif
00066 #endif

Generated on Mon Mar 31 19:03:28 2008 for Graphviz by  doxygen 1.5.1