/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/graph/graphio.c File Reference

#include "libgraph.h"

Include dependency graph for graphio.c:

Go to the source code of this file.

Data Structures

struct  printdict_t

Functions

Agraph_tagread (FILE *fp)
Agraph_tagmemread (char *cp)
Agraph_tagread_usergets (FILE *fp, gets_f usergets)
int agerrors (void)
char * agstrcanon (char *arg, char *buf)
char * agcanonical (char *str)
void agwrnode (Agraph_t *g, FILE *fp, Agnode_t *n, int full, int indent)
void agwredge (Agraph_t *g, FILE *fp, Agedge_t *e, int list_all)
int agwrite (Agraph_t *g, FILE *fp)

Variables

Dtdisc_t agEdgedisc


Function Documentation

char* agcanonical ( char *  str  ) 

Definition at line 195 of file graphio.c.

References agstrcanon().

Referenced by agwrite(), agwrnode(), and write_plain().

int agerrors ( void   ) 

Definition at line 90 of file graphio.c.

References AG, and AG_s::syntax_errors.

Referenced by gvFreeContext().

Agraph_t* agmemread ( char *  cp  ) 

Definition at line 75 of file graphio.c.

References AG, aglexinit(), agparse(), and AG_s::parsed_g.

Referenced by readstring().

Agraph_t* agread ( FILE *  fp  ) 

Definition at line 68 of file graphio.c.

References AG, aglexinit(), agparse(), and AG_s::parsed_g.

Referenced by gvNextInputGraph(), main(), and read().

Agraph_t* agread_usergets ( FILE *  fp,
gets_f  usergets 
)

Definition at line 83 of file graphio.c.

References AG, aglexinit(), agparse(), and AG_s::parsed_g.

Referenced by gvNextInputGraph().

char* agstrcanon ( char *  arg,
char *  buf 
)

Definition at line 150 of file graphio.c.

References aghtmlstr().

Referenced by agcanonical().

void agwredge ( Agraph_t g,
FILE *  fp,
Agedge_t e,
int  list_all 
)

Definition at line 324 of file graphio.c.

References AGFLAG_DIRECTED, agget(), Agedge_t::attr, Agdict_t::dict, dtsize(), Agproto_t::e, Agdata_t::edgeattr, FALSE, Agnode_t::graph, Agedge_t::head, HEADX, KEYX, Agraph_t::kind, Agdict_t::list, MUSTPRINT, Agnode_t::name, Agsym_t::name, Agsym_t::printed, Agedge_t::printkey, Agraph_t::proto, Agraph_t::root, Agedge_t::tail, TAILX, Agraph_t::univ, and Agsym_t::value.

int agwrite ( Agraph_t g,
FILE *  fp 
)

Definition at line 495 of file graphio.c.

References AG_IS_DIRECTED, AG_IS_STRICT, agcanonical(), Agdata_t::edgeattr, Agdata_t::globattr, Agraph_t::name, Agdata_t::nodeattr, and Agraph_t::univ.

Referenced by main(), and write().

void agwrnode ( Agraph_t g,
FILE *  fp,
Agnode_t n,
int  full,
int  indent 
)

Definition at line 259 of file graphio.c.

References agcanonical(), agfstin(), agfstout(), agget(), Agdict_t::dict, dtsize(), FALSE, Agnode_t::graph, Agdict_t::list, Agproto_t::n, Agsym_t::name, Agnode_t::name, Agdata_t::nodeattr, NULL, Agsym_t::printed, Agraph_t::proto, TRUE, Agraph_t::univ, and Agsym_t::value.


Variable Documentation

Dtdisc_t agEdgedisc

Initial value:

 {
    offsetof(Agedge_t, id),
    sizeof(int),
    -1,
    NIL(Dtmake_f),
    NIL(Dtfree_f),
    (Dtcompar_f) agcmpid,
    NIL(Dthash_f),
    NIL(Dtmemory_f),

}

Definition at line 361 of file graphio.c.


Generated on Mon Mar 31 19:05:51 2008 for Graphviz by  doxygen 1.5.1