/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/neatogen/neatoinit.c File Reference

#include <time.h>
#include <unistd.h>
#include "neato.h"
#include "pack.h"
#include "stress.h"
#include "kkutils.h"
#include "pointset.h"
#include <ctype.h>

Include dependency graph for neatoinit.c:

Go to the source code of this file.

Defines

#define srand48   srand
#define BS   "%d,%d,%d,%d"
#define SLEN(s)   (sizeof(s)-1)
#define SMART   "self"
#define REGULAR   "regular"
#define RANDOM   "random"

Enumerations

enum  pos_edge { NoEdges, SomeEdges, AllEdges }

Functions

void neato_nodesize (node_t *n, boolean flip)
void neato_init_node (node_t *n)
void neato_init_edge (edge_t *e)
int user_pos (attrsym_t *posptr, attrsym_t *pinptr, node_t *np, int nG)
void neato_init_node_edge (graph_t *g)
void neato_cleanup_node (node_t *n)
void neato_free_splines (edge_t *e)
void neato_cleanup_edge (edge_t *e)
void neato_cleanup_graph (graph_t *g)
void neato_cleanup (graph_t *g)
int init_nop (Agraph_t *g, int adjust)
void neato_init_graphn (Agraph_t *g, int dfltdim)
void neato_init_graph (Agraph_t *g)
int setSeed (graph_t *G, int dflt, long *seedp)
int checkStart (graph_t *G, int nG, int dflt)
void neatoLayout (Agraph_t *mg, Agraph_t *g, int layoutMode, int layoutModel)
void neato_layout (Agraph_t *g)


Define Documentation

#define BS   "%d,%d,%d,%d"

Definition at line 447 of file neatoinit.c.

#define RANDOM   "random"

Definition at line 1020 of file neatoinit.c.

Referenced by setSeed().

#define REGULAR   "regular"

Definition at line 1019 of file neatoinit.c.

#define SLEN (  )     (sizeof(s)-1)

Definition at line 1017 of file neatoinit.c.

Referenced by setSeed().

#define SMART   "self"

Definition at line 1018 of file neatoinit.c.

Referenced by setSeed().

#define srand48   srand

Definition at line 37 of file neatoinit.c.


Enumeration Type Documentation

enum pos_edge

Enumerator:
NoEdges 
SomeEdges 
AllEdges 

Definition at line 410 of file neatoinit.c.


Function Documentation

int checkStart ( graph_t G,
int  nG,
int  dflt 
)

Definition at line 1083 of file neatoinit.c.

References agerr(), AGWARN, INIT_RANDOM, INIT_REGULAR, setSeed(), and srand48.

Referenced by initial_positions().

int init_nop ( Agraph_t g,
int  adjust 
)

Definition at line 626 of file neatoinit.c.

References adjustNodes(), agerr(), AGERR, agfindattr(), agfstnode(), agnxtnode(), agraphattr(), AllEdges, compute_bb(), GD_bb, GD_neato_nlist, GVSPLINES, hasPos, Agnode_t::name, Agraph_t::name, ND_coord_i, ND_pos, neato_set_aspect(), Nop, scan_graph(), spline_edges0(), and State.

Referenced by neato_layout().

void neato_cleanup ( graph_t g  ) 

Definition at line 183 of file neatoinit.c.

References agfstnode(), agfstout(), agnxtnode(), agnxtout(), neato_cleanup_edge(), neato_cleanup_graph(), and neato_cleanup_node().

void neato_cleanup_edge ( edge_t e  ) 

Definition at line 169 of file neatoinit.c.

References ED_label, free_label(), neato_free_splines(), and Agedge_t::u.

Referenced by neato_cleanup().

void neato_cleanup_graph ( graph_t g  ) 

Definition at line 176 of file neatoinit.c.

References free_scan_graph(), Nop, Agraph_t::root, and Agraph_t::u.

Referenced by neato_cleanup().

void neato_cleanup_node ( node_t n  ) 

Definition at line 147 of file neatoinit.c.

References free(), free_label(), ND_label, ND_pos, ND_shape, and Agnode_t::u.

Referenced by neato_cleanup().

void neato_free_splines ( edge_t e  ) 

Definition at line 157 of file neatoinit.c.

References ED_spl, free(), and NULL.

Referenced by neato_cleanup_edge().

void neato_init_edge ( edge_t e  ) 

Definition at line 62 of file neatoinit.c.

References common_init_edge(), E_weight, ED_factor, and late_double().

Referenced by neato_init_node_edge().

void neato_init_graph ( Agraph_t g  ) 

Definition at line 687 of file neatoinit.c.

References neato_init_graphn().

Referenced by neato_layout().

void neato_init_graphn ( Agraph_t g,
int  dfltdim 
)

Definition at line 679 of file neatoinit.c.

References agfindattr(), ET_LINE, GD_ndim, late_int(), MAXDIM, MIN, Ndim, neato_init_node_edge(), Agraph_t::root, and setEdgeType().

Referenced by neato_init_graph().

void neato_init_node ( node_t n  ) 

Definition at line 55 of file neatoinit.c.

References common_init_node(), GD_flip, GD_ndim, Agnode_t::graph, N_NEW, ND_pos, and neato_nodesize().

Referenced by neato_init_node_edge().

void neato_init_node_edge ( graph_t g  ) 

Definition at line 127 of file neatoinit.c.

References agfindattr(), agfstnode(), agfstout(), agnnodes(), agnxtnode(), agnxtout(), Agproto_t::n, neato_init_edge(), neato_init_node(), Agraph_t::proto, and user_pos().

Referenced by neato_init_graphn().

void neato_layout ( Agraph_t g  ) 

Definition at line 1338 of file neatoinit.c.

References adjustNodes(), agdelete(), agerr(), agfstout(), agnxtout(), AGPREV, agusergraph(), CL_OFFSET, compute_bb(), pack_info::doSplines, dotneato_postprocess(), pack_info::fixed, free(), free_scan_graph(), getPack(), getPackMode(), Agnode_t::graph, Agedge_t::head, init_nop(), l_node, l_undef, pack_info::margin, Agraph_t::meta_node, pack_info::mode, N_NEW, Agraph_t::name, neato_init_graph(), neatoLayout(), nodeInduce(), Nop, packGraphs(), pccomps(), PSinputscale, spline_edges(), and TRUE.

void neato_nodesize ( node_t n,
boolean  flip 
)

Definition at line 46 of file neatoinit.c.

References ND_height, ND_ht_i, ND_lw_i, ND_rw_i, ND_width, ND_xsize, and ND_ysize.

Referenced by neato_init_node().

void neatoLayout ( Agraph_t mg,
Agraph_t g,
int  layoutMode,
int  layoutModel 
)

Definition at line 1297 of file neatoinit.c.

References agget(), agnnodes(), DFLT_ITERATIONS, MaxIter, MODE_MAJOR, and scan_graph_mode().

Referenced by neato_layout().

int setSeed ( graph_t G,
int  dflt,
long *  seedp 
)

Definition at line 1032 of file neatoinit.c.

References agget(), agset(), INIT_RANDOM, INIT_REGULAR, INIT_SELF, NULL, RANDOM, REGULAR, SLEN, and SMART.

Referenced by checkStart(), and fdp_initParams().

int user_pos ( attrsym_t posptr,
attrsym_t pinptr,
node_t np,
int  nG 
)

Definition at line 69 of file neatoinit.c.

References agerr(), AGERR, agxget(), FALSE, Agsym_t::index, jitter3d(), jitter_d(), mapbool(), N_z, Agnode_t::name, ND_pinned, ND_pos, Ndim, NULL, P_PIN, P_SET, PSinputscale, and TRUE.

Referenced by neato_init_node_edge().


Generated on Mon Mar 31 19:07:15 2008 for Graphviz by  doxygen 1.5.1