31 memclosure = memdisc->
open(proto);
50 clos = agclos(arg_disc);
107 for (subg =
agfstsubg(g); subg; subg = next_subg) {
143 void *memclos, *clos;
151 (memdisc->
free) (memclos, g);
152 (memdisc->
free) (memclos, clos);
159 return ++(g->
clos->
seq[objtype]);
223 if (e->
node != n) rv++;
249 return ((v==0)?0:(v<0?-1:1));
259 return ((v==0)?0:(v<0?-1:1));
287 FILE * f = fopen(file,
"w");
288 if (f) {
agwrite(g,f); fclose(f);}
unsigned int(* Dthash_f)(Dt_t *, void *, Dtdisc_t *)
CGRAPH_API Agraph_t * agopen(char *name, Agdesc_t desc, Agdisc_t *disc)
void agraphattr_init(Agraph_t *g)
void *(* Dtmake_f)(Dt_t *, void *, Dtdisc_t *)
CGRAPH_API int agdegree(Agraph_t *g, Agnode_t *n, int in, int out)
int agdtclose(Agraph_t *g, Dict_t *dict)
Dtdisc_t Ag_mainedge_seq_disc
CGRAPH_API Agmemdisc_t AgMemDisc
CGRAPH_API Agiodisc_t AgIoDisc
CGRAPH_API int agdelnode(Agraph_t *g, Agnode_t *arg_n)
void agrecclose(Agobj_t *obj)
Dtdisc_t Ag_subgraph_id_disc
int agmapnametoid(Agraph_t *g, int objtype, char *str, IDTYPE *result, int allocflag)
Dtdisc_t Ag_subedge_id_disc
CDT_API Dtlink_t * dtextract(Dt_t *)
Agraph_t * agopen1(Agraph_t *g)
void agregister(Agraph_t *g, int objtype, void *obj)
CGRAPH_API Agdesc_t Agstrictundirected
CGRAPH_API Agedge_t * agfstin(Agraph_t *g, Agnode_t *n)
CGRAPH_API int agisdirected(Agraph_t *g)
CGRAPH_API long agdelsubg(Agraph_t *g, Agraph_t *sub)
CGRAPH_API int agisundirected(Agraph_t *g)
Dtdisc_t Ag_subnode_seq_disc
int agstrclose(Agraph_t *g)
CGRAPH_API int agwrite(Agraph_t *g, void *chan)
Dtdisc_t Ag_subnode_id_disc
unsigned char callbacks_enabled
CGRAPH_API Agraph_t * agfstsubg(Agraph_t *g)
CGRAPH_API Agraph_t * agroot(void *obj)
int agraphidcmpf(Dict_t *d, void *arg0, void *arg1, Dtdisc_t *disc)
uint64_t agnextseq(Agraph_t *g, int objtype)
Dtdisc_t Ag_mainedge_id_disc
CGRAPH_API Agdesc_t Agundirected
CGRAPH_API Agiddisc_t AgIdDisc
CGRAPH_API void agfree(Agraph_t *g, void *ptr)
void scndump(Agraph_t *g, char *file)
CGRAPH_API Agraph_t * agnxtsubg(Agraph_t *subg)
CGRAPH_API Agdesc_t Agstrictdirected
CGRAPH_API Agdesc_t Agdirected
CGRAPH_API int agcountuniqedges(Agraph_t *g, Agnode_t *n, int in, int out)
CGRAPH_API Agnode_t * agnxtnode(Agraph_t *g, Agnode_t *n)
CGRAPH_API int agisstrict(Agraph_t *g)
const char AgraphVersion[]
CGRAPH_API int agclose(Agraph_t *g)
CGRAPH_API Agraph_t * agparent(Agraph_t *g)
void *(* open)(Agraph_t *g, Agdisc_t *)
int agraphseqcmpf(Dict_t *d, void *arg0, void *arg1, Dtdisc_t *disc)
void(* free)(void *state, void *ptr)
void aginternalmapclose(Agraph_t *g)
void agmethod_delete(Agraph_t *g, void *obj)
void agfreeid(Agraph_t *g, int objtype, IDTYPE id)
CDT_API int dtsize(Dt_t *)
CGRAPH_API Agnode_t * agfstnode(Agraph_t *g)
Dtdisc_t Ag_subedge_seq_disc
void agmethod_init(Agraph_t *g, void *obj)
CGRAPH_API Agsubnode_t * agsubrep(Agraph_t *g, Agnode_t *n)
Dict_t * agdtopen(Agraph_t *g, Dtdisc_t *disc, Dtmethod_t *method)
CDT_API Dtmethod_t * Dttree
void *(* open)(Agdisc_t *)
CGRAPH_API int agpopdisc(Agraph_t *g, Agcbdisc_t *disc)
CGRAPH_API int agnsubg(Agraph_t *g)
CDT_API int dtrestore(Dt_t *, Dtlink_t *)
CGRAPH_API int agnnodes(Agraph_t *g)
void *(* alloc)(void *state, size_t req)
CGRAPH_API int agissimple(Agraph_t *g)
void * agdictobjmem(Dict_t *dict, void *p, size_t size, Dtdisc_t *disc)
int(* Dtevent_f)(Dt_t *, int, void *, Dtdisc_t *)
void(* Dtfree_f)(Dt_t *, void *, Dtdisc_t *)
CGRAPH_API Agedge_t * agnxtin(Agraph_t *g, Agedge_t *e)
CGRAPH_API int agnedges(Agraph_t *g)
CGRAPH_API Agdisc_t AgDefaultDisc
int agraphattr_delete(Agraph_t *g)