Graphviz  2.29.20120524.0446
Functions | Variables
lib/graph/graph.c File Reference
#include <limits.h>
#include "libgraph.h"
Include dependency graph for graph.c:

Go to the source code of this file.

Functions

int agcmpid (Dt_t *dict, int *id0, int *id1, Dtdisc_t *disc)
int agcmpin (Dict_t *d, Agedge_t *e0, Agedge_t *e1, Dtdisc_t *disc)
int agcmpout (Dict_t *d, Agedge_t *e0, Agedge_t *e1, Dtdisc_t *disc)
void agpushproto (Agraph_t *g)
void agpopproto (Agraph_t *g)
Agraph_tagusergraph (Agnode_t *n)
Agraph_tagopen (char *name, int kind)
Agraph_tagsubg (Agraph_t *g, char *name)
Agraph_tagfindsubg (Agraph_t *g, char *name)
void agINSgraph (Agraph_t *g, Agraph_t *subg)
void agclose (Agraph_t *g)
int agcontains (Agraph_t *g, void *obj)
void aginsert (Agraph_t *g, void *obj)
void agdelete (Agraph_t *g, void *obj)
int agnnodes (Agraph_t *g)
int agnedges (Agraph_t *g)

Variables

Dtdisc_t agNamedisc
Dtdisc_t agNodedisc
Dtdisc_t agIndisc
Dtdisc_t agOutdisc

Function Documentation

void agclose ( Agraph_t g)
int agcmpid ( Dt_t dict,
int *  id0,
int *  id1,
Dtdisc_t disc 
)

Definition at line 70 of file graph.c.

int agcmpin ( Dict_t d,
Agedge_t e0,
Agedge_t e1,
Dtdisc_t disc 
)

Definition at line 104 of file graph.c.

References Agedge_t::tail, Agnode_t::id, and Agedge_t::head.

int agcmpout ( Dict_t d,
Agedge_t e0,
Agedge_t e1,
Dtdisc_t disc 
)

Definition at line 120 of file graph.c.

References Agedge_t::tail, Agnode_t::id, and Agedge_t::head.

int agcontains ( Agraph_t g,
void *  obj 
)
void agdelete ( Agraph_t g,
void *  obj 
)
Agraph_t* agfindsubg ( Agraph_t g,
char *  name 
)

Definition at line 322 of file graph.c.

References Agraph_t::meta_node, agfindnode(), Agnode_t::graph, agusergraph(), and NULL.

Referenced by agparse(), and findsubg().

void aginsert ( Agraph_t g,
void *  obj 
)

Definition at line 411 of file graph.c.

References TAG_OF, TAG_NODE, agINSnode(), TAG_EDGE, agINSedge(), TAG_GRAPH, and agINSgraph().

Referenced by circomps(), agparse(), and nodeInduce().

void agINSgraph ( Agraph_t g,
Agraph_t subg 
)

Definition at line 334 of file graph.c.

References Agraph_t::meta_node, FALSE, agedge(), and Agnode_t::graph.

Referenced by agsubg(), and aginsert().

int agnedges ( Agraph_t g)

Definition at line 446 of file graph.c.

References dtsize(), and Agraph_t::outedges.

Referenced by makeMatrix(), scan_graph_mode(), and main().

int agnnodes ( Agraph_t g)
Agraph_t* agopen ( char *  name,
int  kind 
)
void agpopproto ( Agraph_t g)
void agpushproto ( Agraph_t g)

Definition at line 178 of file graph.c.

References Agraph_t::proto.

Agraph_t* agsubg ( Agraph_t g,
char *  name 
)
Agraph_t* agusergraph ( Agnode_t n)

Variable Documentation

Initial value:
 {
    0,                          
    0,
    -1,                         
    NIL(Dtmake_f),
    NIL(Dtfree_f),
    (Dtcompar_f) agcmpin,
    NIL(Dthash_f),
    NIL(Dtmemory_f),

}

Definition at line 46 of file graph.c.

Initial value:
 {
    offsetof(Agnode_t, name),
    -1,
    -1,                         
    NIL(Dtmake_f),
    NIL(Dtfree_f),
    NIL(Dtcompar_f),            
    NIL(Dthash_f),
    NIL(Dtmemory_f),

}

Definition at line 22 of file graph.c.

Initial value:
 {
    offsetof(Agnode_t, id),
    sizeof(int),
    -1,                         
    NIL(Dtmake_f),
    NIL(Dtfree_f),
    (Dtcompar_f) agcmpid,
    NIL(Dthash_f),
    NIL(Dtmemory_f),

}

Definition at line 34 of file graph.c.

Initial value:
 {
    0,                          
    0,
    -1,                         
    (Dtmake_f) 0,
    (Dtfree_f) 0,
    (Dtcompar_f) agcmpout,
    (Dthash_f) 0,
    (Dtmemory_f) 0,
    (Dtevent_f) 0
}

Definition at line 58 of file graph.c.