Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListIndexOutOfRange #1

Open
peitl opened this issue Nov 4, 2020 · 1 comment
Open

ListIndexOutOfRange #1

peitl opened this issue Nov 4, 2020 · 1 comment

Comments

@peitl
Copy link

peitl commented Nov 4, 2020

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)

@peitl peitl changed the title List ListIndexOutOfRange Nov 4, 2020
@joelotz
Copy link

joelotz commented Feb 10, 2021

This is a neat concept, but this package appears to be an abandoned university project. I can't seem to get it to work with a simple yEd .graphml test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants