Graphviz  2.41.20171026.1811
Macros | Functions | Variables
graph.c File Reference
#include <cghdr.h>
#include <stdio.h>
Include dependency graph for graph.c:

Go to the source code of this file.

Macros

#define EXTERN
 

Functions

Agraph_tagopen (char *name, Agdesc_t desc, Agdisc_t *arg_disc)
 
Agraph_tagopen1 (Agraph_t *g)
 
int agclose (Agraph_t *g)
 
uint64_t agnextseq (Agraph_t *g, int objtype)
 
int agnnodes (Agraph_t *g)
 
int agnedges (Agraph_t *g)
 
int agnsubg (Agraph_t *g)
 
int agisdirected (Agraph_t *g)
 
int agisundirected (Agraph_t *g)
 
int agisstrict (Agraph_t *g)
 
int agissimple (Agraph_t *g)
 
int agcountuniqedges (Agraph_t *g, Agnode_t *n, int want_in, int want_out)
 
int agdegree (Agraph_t *g, Agnode_t *n, int want_in, int want_out)
 
int agraphidcmpf (Dict_t *d, void *arg0, void *arg1, Dtdisc_t *disc)
 
int agraphseqcmpf (Dict_t *d, void *arg0, void *arg1, Dtdisc_t *disc)
 
void scndump (Agraph_t *g, char *file)
 

Variables

const char AgraphVersion [] = PACKAGE_VERSION
 
Dtdisc_t Ag_subgraph_id_disc
 
Agdesc_t Agdirected = { 1, 0, 0, 1 }
 
Agdesc_t Agstrictdirected = { 1, 1, 0, 1 }
 
Agdesc_t Agundirected = { 0, 0, 0, 1 }
 
Agdesc_t Agstrictundirected = { 0, 1, 0, 1 }
 
Agdisc_t AgDefaultDisc = { &AgMemDisc, &AgIdDisc, &AgIoDisc }
 

Macro Definition Documentation

#define EXTERN

Definition at line 14 of file graph.c.

Function Documentation

int agclose ( Agraph_t g)
int agcountuniqedges ( Agraph_t g,
Agnode_t n,
int  want_in,
int  want_out 
)
int agdegree ( Agraph_t g,
Agnode_t n,
int  want_in,
int  want_out 
)

Definition at line 229 of file graph.c.

References agsubrep(), Agraph_s::e_seq, Agsubnode_s::in_seq, and Agsubnode_s::out_seq.

Referenced by agnedges().

int agisdirected ( Agraph_t g)

Definition at line 182 of file graph.c.

References Agraph_s::desc, and Agdesc_s::directed.

Referenced by agisundirected(), arrow_flags(), edgecmd(), gvToolTred(), make_label(), and tcldot_layout().

int agissimple ( Agraph_t g)

Definition at line 197 of file graph.c.

References Agraph_s::desc, Agdesc_s::no_loop, and Agdesc_s::strict.

int agisstrict ( Agraph_t g)

Definition at line 192 of file graph.c.

References Agraph_s::desc, and Agdesc_s::strict.

Referenced by agedge().

int agisundirected ( Agraph_t g)

Definition at line 187 of file graph.c.

References agisdirected(), and NOT.

Referenced by agedge(), and agidedge().

int agnedges ( Agraph_t g)
uint64_t agnextseq ( Agraph_t g,
int  objtype 
)

Definition at line 157 of file graph.c.

References Agraph_s::clos, and Agclos_s::seq.

Referenced by agidnode(), agnode(), and agopen1().

int agnnodes ( Agraph_t g)
int agnsubg ( Agraph_t g)

Definition at line 177 of file graph.c.

References dtsize(), and Agraph_s::g_dict.

Agraph_t* agopen ( char *  name,
Agdesc_t  desc,
Agdisc_t arg_disc 
)
Agraph_t* agopen1 ( Agraph_t g)
int agraphidcmpf ( Dict_t d,
void *  arg0,
void *  arg1,
Dtdisc_t disc 
)

Definition at line 242 of file graph.c.

References AGID.

int agraphseqcmpf ( Dict_t d,
void *  arg0,
void *  arg1,
Dtdisc_t disc 
)

Definition at line 252 of file graph.c.

References AGSEQ.

void scndump ( Agraph_t g,
char *  file 
)

Definition at line 285 of file graph.c.

References agwrite().

Variable Documentation

Dtdisc_t Ag_subgraph_id_disc
Initial value:
= {
0,
0,
offsetof(Agraph_t, link),
}
unsigned int(* Dthash_f)(Dt_t *, void *, Dtdisc_t *)
Definition: cdt.h:41
void *(* Dtmake_f)(Dt_t *, void *, Dtdisc_t *)
Definition: cdt.h:38
int agraphidcmpf(Dict_t *d, void *arg0, void *arg1, Dtdisc_t *disc)
Definition: graph.c:242
#define NIL(t)
Definition: dthdr.h:13
void * agdictobjmem(Dict_t *dict, void *p, size_t size, Dtdisc_t *disc)
Definition: utils.c:19
void(* Dtfree_f)(Dt_t *, void *, Dtdisc_t *)
Definition: cdt.h:39

Definition at line 262 of file graph.c.

Referenced by agopen1().

Agdisc_t AgDefaultDisc = { &AgMemDisc, &AgIdDisc, &AgIoDisc }

Definition at line 281 of file graph.c.

Agdesc_t Agdirected = { 1, 0, 0, 1 }

Definition at line 276 of file graph.c.

const char AgraphVersion[] = PACKAGE_VERSION

Definition at line 17 of file graph.c.

Agdesc_t Agstrictdirected = { 1, 1, 0, 1 }

Definition at line 277 of file graph.c.

Agdesc_t Agstrictundirected = { 0, 1, 0, 1 }

Definition at line 279 of file graph.c.

Agdesc_t Agundirected = { 0, 0, 0, 1 }

Definition at line 278 of file graph.c.