From ddbb38aaef2c6e710dfc2c10b4a1311edf1ecd06 Mon Sep 17 00:00:00 2001 From: Ryan Deschamps Date: Thu, 21 Feb 2019 22:19:02 -0500 Subject: [PATCH] Remove graph attributes from gexf output (not supported by networkx). (#69) --- src/main/gexf.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/main/gexf.c b/src/main/gexf.c index 5bcd835..87422d1 100644 --- a/src/main/gexf.c +++ b/src/main/gexf.c @@ -127,28 +127,6 @@ extern int igraph_write_graph_gexf(const igraph_t *graph, FILE *outstream, ret=fprintf(outstream, " \x0A", (igraph_is_directed(graph)?"directed":"undirected")); if (ret<0) IGRAPH_ERROR("Write failed", IGRAPH_EFILE); - /* graph attributes */ - ret=fprintf(outstream, " \x0A"); - if (ret<0) IGRAPH_ERROR("Write failed", IGRAPH_EFILE); - for (i=0; i\x0A", gprefix, name_escaped, name_escaped); - if (ret<0) IGRAPH_ERROR("Write failed", IGRAPH_EFILE); - } else if (VECTOR(gtypes)[i] == IGRAPH_ATTRIBUTE_NUMERIC) { - ret=fprintf(outstream, " \x0A", gprefix, name_escaped, name_escaped); - if (ret<0) IGRAPH_ERROR("Write failed", IGRAPH_EFILE); - } else if (VECTOR(gtypes)[i] == IGRAPH_ATTRIBUTE_BOOLEAN) { - ret=fprintf(outstream, " \x0A", gprefix, name_escaped, name_escaped); - if (ret<0) IGRAPH_ERROR("Write failed", IGRAPH_EFILE); - } - igraph_Free(name_escaped); - } - ret=fprintf(outstream, " \x0A"); - if (ret<0) IGRAPH_ERROR("Write failed", IGRAPH_EFILE); - /* vertex attributes */ ret=fprintf(outstream, " \x0A"); if (ret<0) IGRAPH_ERROR("Write failed", IGRAPH_EFILE);