Graphviz  2.41.20171026.1811
Data Structures | Macros | Typedefs | Enumerations | Functions
pack.h File Reference
#include "types.h"
Include dependency graph for pack.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pack_info
 

Macros

#define PK_COL_MAJOR   (1 << 0)
 
#define PK_USER_VALS   (1 << 1)
 
#define PK_LEFT_ALIGN   (1 << 2)
 
#define PK_RIGHT_ALIGN   (1 << 3)
 
#define PK_TOP_ALIGN   (1 << 4)
 
#define PK_BOT_ALIGN   (1 << 5)
 
#define PK_INPUT_ORDER   (1 << 6)
 

Typedefs

typedef unsigned int packval_t
 

Enumerations

enum  pack_mode {
  l_undef, l_clust, l_node, l_graph,
  l_array, l_aspect
}
 

Functions

pointputRects (int ng, boxf *bbs, pack_info *pinfo)
 
int packRects (int ng, boxf *bbs, pack_info *pinfo)
 
pointputGraphs (int, Agraph_t **, Agraph_t *, pack_info *)
 
int packGraphs (int, Agraph_t **, Agraph_t *, pack_info *)
 
int packSubgraphs (int, Agraph_t **, Agraph_t *, pack_info *)
 
int pack_graph (int ng, Agraph_t **gs, Agraph_t *root, boolean *fixed)
 
int shiftGraphs (int, Agraph_t **, point *, Agraph_t *, int)
 
pack_mode getPackMode (Agraph_t *g, pack_mode dflt)
 
int getPack (Agraph_t *, int not_def, int dflt)
 
pack_mode getPackInfo (Agraph_t *g, pack_mode dflt, int dfltMargin, pack_info *)
 
pack_mode getPackModeInfo (Agraph_t *g, pack_mode dflt, pack_info *)
 
pack_mode parsePackModeInfo (char *p, pack_mode dflt, pack_info *pinfo)
 
int isConnected (Agraph_t *)
 
Agraph_t ** ccomps (Agraph_t *, int *, char *)
 
Agraph_t ** cccomps (Agraph_t *, int *, char *)
 
Agraph_t ** pccomps (Agraph_t *, int *, char *, boolean *)
 
int nodeInduce (Agraph_t *)
 
Agraph_tmapClust (Agraph_t *)
 

Macro Definition Documentation

#define PK_BOT_ALIGN   (1 << 5)

Definition at line 44 of file pack.h.

#define PK_COL_MAJOR   (1 << 0)

Definition at line 39 of file pack.h.

#define PK_INPUT_ORDER   (1 << 6)

Definition at line 45 of file pack.h.

#define PK_LEFT_ALIGN   (1 << 2)

Definition at line 41 of file pack.h.

#define PK_RIGHT_ALIGN   (1 << 3)

Definition at line 42 of file pack.h.

#define PK_TOP_ALIGN   (1 << 4)

Definition at line 43 of file pack.h.

#define PK_USER_VALS   (1 << 1)

Definition at line 40 of file pack.h.

Referenced by putGraphs().

Typedef Documentation

typedef unsigned int packval_t

Definition at line 47 of file pack.h.

Enumeration Type Documentation

enum pack_mode
Enumerator
l_undef 
l_clust 
l_node 
l_graph 
l_array 
l_aspect 

Definition at line 37 of file pack.h.

Function Documentation

Agraph_t** cccomps ( Agraph_t ,
int ,
char *   
)
Agraph_t** ccomps ( Agraph_t ,
int ,
char *   
)
int getPack ( Agraph_t ,
int  not_def,
int  dflt 
)

Definition at line 1381 of file pack.c.

References agget().

Referenced by compoundEdges(), getPackInfo(), and neato_layout().

pack_mode getPackInfo ( Agraph_t g,
pack_mode  dflt,
int  dfltMargin,
pack_info  
)
pack_mode getPackMode ( Agraph_t g,
pack_mode  dflt 
)

Definition at line 1370 of file pack.c.

References getPackModeInfo().

pack_mode getPackModeInfo ( Agraph_t g,
pack_mode  dflt,
pack_info  
)

Definition at line 1364 of file pack.c.

References agget(), and parsePackModeInfo().

Referenced by getPackInfo(), getPackMode(), and neato_layout().

int isConnected ( Agraph_t )

Definition at line 682 of file ccomps.c.

References agfstnode(), agnnodes(), agnxtnode(), INITBUF, NULL, and UNMARK.

Referenced by main().

Agraph_t* mapClust ( Agraph_t )

Definition at line 526 of file ccomps.c.

References aggetrec(), assert, orig_t::orig, and ORIG_REC.

int nodeInduce ( Agraph_t )

Definition at line 718 of file ccomps.c.

References node_induce(), and Agraph_s::root.

Referenced by cccomps(), findCComp(), neato_layout(), sfdp_layout(), and twopi_layout().

int pack_graph ( int  ng,
Agraph_t **  gs,
Agraph_t root,
boolean fixed 
)
int packGraphs ( int  ,
Agraph_t **  ,
Agraph_t ,
pack_info  
)

Definition at line 1145 of file pack.c.

References pack_info::doSplines, putGraphs(), and shiftGraphs().

Referenced by main(), neato_layout(), and packSubgraphs().

int packRects ( int  ng,
boxf bbs,
pack_info pinfo 
)

Definition at line 982 of file pack.c.

References boxf::LL, putRects(), boxf::UR, point::x, pointf_s::x, point::y, and pointf_s::y.

int packSubgraphs ( int  ,
Agraph_t **  ,
Agraph_t ,
pack_info  
)

Definition at line 1163 of file pack.c.

References compute_bb(), EXPANDBB, GD_bb, GD_clust, GD_n_cluster, and packGraphs().

Referenced by circoLayout(), pack_graph(), sfdp_layout(), and twopi_layout().

pack_mode parsePackModeInfo ( char *  p,
pack_mode  dflt,
pack_info pinfo 
)
Agraph_t** pccomps ( Agraph_t ,
int ,
char *  ,
boolean  
)
point* putGraphs ( int  ,
Agraph_t **  ,
Agraph_t ,
pack_info  
)
point* putRects ( int  ng,
boxf bbs,
pack_info pinfo 
)

Definition at line 959 of file pack.c.

References l_array, l_clust, l_graph, l_node, pack_info::mode, and NULL.

Referenced by packRects().

int shiftGraphs ( int  ,
Agraph_t **  ,
point ,
Agraph_t ,
int   
)

Definition at line 1088 of file pack.c.

References agfstnode(), agfstout(), agnxtnode(), agnxtout(), MOVEPT, ND_coord, ND_pos, ND_xlabel, PS2INCH, point::x, and point::y.

Referenced by packGraphs().