Hi there,

I am using igraph in order to read, process and write graphml files of graphml version 1.1 (http://graphml.graphdrawing.org/xmlns/1.1/graphml.xsd). I get the graphml files from a java generator and postpress them with the igraph python interface. The problem is, that the java graphml generator creates specific namespaces in the files, e.g. "xmlns:ns2="http://www.w3.org/1999/xlink"; " such that it results in a file that looks like follows:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<graphml xmlns:ns2="http://www.w3.org/1999/xlink";
    xmlns:ns3="http://graphml.graphdrawing.org/xmlns";>
    <ns3:graph id="Barabasi-Albert-73751112" edgedefault="undirected">
        <ns3:node id="0"/>
        <ns3:node id="1"/>
        <ns3:node id="2"/>
        <ns3:edge id="0" source="1" target="0"/>
        <ns3:edge id="1" source="2" target="1"/>
    </ns3:graph>
</graphml>

which is not readable by igraph anymore ("igraph._igraph.InternalError: Error at foreign-graphml.c:1139: Graph index was too large, Invalid value").

I am currently using Debian Jessie with igraph 0.7.0 and Python 2.7.8.

You have any ideas on how to fix that without processing the file through awk/sed?

Regards,

Robin


_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to