Graphpass  0.0.2
A helper library for network filtering, analysis and visualization
Functions | Variables
gexf.h File Reference

Gexf writer for graphpass. More...

Go to the source code of this file.

Functions

int igraph_i_xml_escape (char *src, char **dest)
 
int igraph_write_graph_gexf (const igraph_t *graph, FILE *outstream, igraph_bool_t prefixattr)
 

Variables

int errno
 

Detailed Description

Gexf writer for graphpass.

Because igraph does not have a gexf writer, we produced one based on the grapml writer. This writer has been submitted to igraph with the hopes that it will be added to the original library, in which case, this file will likely be deprecated.

Function Documentation

◆ igraph_i_xml_escape()

int igraph_i_xml_escape ( char *  src,
char **  dest 
)

Escapes invalid xml character (&, <, >, ") in attributes

◆ igraph_write_graph_gexf()

int igraph_write_graph_gexf ( const igraph_t *  graph,
FILE *  outstream,
igraph_bool_t  prefixattr 
)

Writes a GEXF file

GEXF provides great support for visualizations and is therefore used by a number of light-weight visualization tools like SigmaJS and Gephi.

Parameters
graph- the graph to write to gexf
outstream- a file object
prefixattr- if "true" will add prefixes to the gexf output.