Graphviz  2.41.20171026.1811
Macros | Enumerations | Functions
neatoinit.c File Reference
#include "config.h"
#include <time.h>
#include <unistd.h>
#include <ctype.h>
#include "neato.h"
#include "pack.h"
#include "stress.h"
#include "kkutils.h"
#include "pointset.h"
Include dependency graph for neatoinit.c:

Go to the source code of this file.

Macros

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

Enumerations

enum  pos_edge { NoEdges, SomeEdges, AllEdges }
 

Functions

void neato_init_node (node_t *n)
 
int user_pos (attrsym_t *posptr, attrsym_t *pinptr, node_t *np, int nG)
 
void neato_cleanup (graph_t *g)
 
int init_nop (Agraph_t *g, int adjust)
 
int setSeed (graph_t *G, int dflt, long *seedp)
 
int checkStart (graph_t *G, int nG, int dflt)
 
void neato_layout (Agraph_t *g)
 

Macro Definition Documentation

#define BS   "%lf,%lf,%lf,%lf"

Definition at line 425 of file neatoinit.c.

#define exp_name   "stresswt"

Definition at line 1003 of file neatoinit.c.

#define RANDOM   "random"

Definition at line 946 of file neatoinit.c.

Referenced by setSeed().

#define REGULAR   "regular"

Definition at line 945 of file neatoinit.c.

Referenced by setSeed().

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

Definition at line 943 of file neatoinit.c.

Referenced by setSeed().

#define SMART   "self"

Definition at line 944 of file neatoinit.c.

Referenced by setSeed().

#define srand48   srand

Definition at line 33 of file neatoinit.c.

Referenced by checkStart().

Enumeration Type Documentation

enum pos_edge
Enumerator
NoEdges 
SomeEdges 
AllEdges 

Definition at line 366 of file neatoinit.c.

Function Documentation

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

Definition at line 1025 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 
)
void neato_cleanup ( graph_t g)
void neato_init_node ( node_t n)

Definition at line 42 of file neatoinit.c.

References agbindrec(), agraphof(), common_init_node(), GD_flip, GD_ndim, gv_nodesize(), N_NEW, ND_pos, and TRUE.

void neato_layout ( Agraph_t g)
int setSeed ( graph_t G,
int  dflt,
long *  seedp 
)

Definition at line 958 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 
)