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

Format incompatible with Boost GraphML loader #34

Open
rancheng opened this issue Oct 16, 2019 · 1 comment
Open

Format incompatible with Boost GraphML loader #34

rancheng opened this issue Oct 16, 2019 · 1 comment

Comments

@rancheng
Copy link

Thanks for your contribution! I'm currently using this lib to dump the graph data into xml and load with boost, but seems like these two formats are inconsistant:

part of xml wrote with pygraphml

<?xml version="1.0" ?>
<graphml>
    <key attr.name="label" attr.type="string" id="label"/>
    <graph edgedefault="directed" id="">
        <node id="v_000000001"/>
        <node id="v_000000040"/>

But when I try with boost, their file looks like this:

<?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="key0" for="edge" attr.name="edge_name" attr.type="string" />
  <key id="key1" for="node" attr.name="vertex_name" attr.type="string" />
  <graph id="G" edgedefault="undirected" parse.nodeids="free" parse.edgeids="canonical" parse.order="nodesfirst">
    <node id="n0">
      <data key="key1">v_000000000</data>
    </node>
    <node id="n1">
      <data key="key1">v_000000001</data>
    </node>

Is there any plan for support boost favorable format?

@rancheng
Copy link
Author

If not, I have wrote a simple loader that read csv files into boost graphML xml:

write_graphml.cpp

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

1 participant