Skip to content

ListIndexOutOfRange #1

@peitl

Description

@peitl

Hello,

Firstly many thanks for the tool!

I tried to convert my graphml file but got the following error:

Converting file : x.graphml
Node/Attribute Error for node element : list index out of range in x.graphml
Conversion for file x.graphml failed.

The file looks as follows:

<?xml version='1.0' encoding='utf-8'?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
  <key id="d2" for="graph" attr.name="name" attr.type="string" />
  <key id="d1" for="graph" attr.name="multiedges" attr.type="boolean" />
  <key id="d0" for="graph" attr.name="selfloops" attr.type="boolean" />
  <graph edgedefault="undirected">
    <node id="1" />
    <node id="-1" />
    <node id="2" />
    <node id="-2" />
    <node id="3" />
    <node id="-3" />
    <node id="4" />
    <node id="-4" />
    <node id="C_1" />
    <node id="C_2" />
    <node id="C_3" />
    <node id="C_4" />
    <node id="C_5" />
    <node id="C_6" />
    <node id="C_7" />
    <node id="C_8" />
    <edge source="1" target="-1" />
    <edge source="1" target="C_1" />
    <edge source="1" target="C_6" />
    <edge source="1" target="C_7" />
    <edge source="-1" target="C_2" />
    <edge source="-1" target="C_4" />
    <edge source="-1" target="C_8" />
    <edge source="2" target="-2" />
    <edge source="2" target="C_1" />
    <edge source="2" target="C_2" />
    <edge source="2" target="C_3" />
    <edge source="-2" target="C_4" />
    <edge source="-2" target="C_5" />
    <edge source="-2" target="C_6" />
    <edge source="3" target="-3" />
    <edge source="3" target="C_1" />
    <edge source="3" target="C_5" />
    <edge source="3" target="C_8" />
    <edge source="-3" target="C_3" />
    <edge source="-3" target="C_4" />
    <edge source="-3" target="C_7" />
    <edge source="4" target="-4" />
    <edge source="4" target="C_2" />
    <edge source="4" target="C_5" />
    <edge source="4" target="C_7" />
    <edge source="-4" target="C_3" />
    <edge source="-4" target="C_6" />
    <edge source="-4" target="C_8" />
    <data key="d0">False</data>
    <data key="d1">False</data>
    <data key="d2" />
  </graph>
</graphml>

It's possible that this is not the right kind of graphml: it was created by Sage, not yED. Any thoughts on why the error is happening? Thanks!

(PS: there's a typo in the README Runnnig)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions