| igraph Reference Manual |
|---|
int igraph_read_graph_graphml(igraph_t *graph, FILE *instream, int index);
GraphML is an XML-based file format for representing various types of graphs. Currently only the most basic import functionality is implemented in igraph: it can read GraphML files without nested graphs and hyperedges. Attributes of the graph are loaded only if an attribute interface is attached, ie. if you use igraph from R or Python.
Arguments:
|
Pointer to an uninitialized graph object. |
|
A stream, it should be readable. |
|
If the GraphML file contains more than one graph, the one specified by this index will be loaded. Indices start from zero, so supply zero here if your GraphML file contains only a single graph. |
Returns:
Error code:
|
| << 3. GraphML format | 3.2. igraph_write_graph_graphml — Writes the graph to a file in GraphML format >> |