[Python] Graphml parse error

Discussão em 'Python' iniciado por Stack, Junho 6, 2025.

  1. Stack

    Stack Membro Participativo

    I tried to create a graphml file using python and igraph library. I can construct igraph's graph object and wrote it to a file using:

    g.write_graphml("mygraph.graphml")


    Everything seems to be successful but when I tried to read the file back to python using:

    g = Graph.Read_GraphML('mygraph.graphml')


    I got this error:

    igraph.core.InternalError: Error at .\src\foreign-graphml.c:1024:
    Input is not proper UTF-8, indicate encoding ! Bytes: 0xA0 0x3C 0x2F 0x64


    How can I solve this, please? Thank you very much.

    Continue reading...

Compartilhe esta Página