Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • graph-tool graph-tool
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 48
    • Issues 48
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Please use the issue tracker only to report bugs (i.e. errors in the library that need to be fixed) or feature requests.

For questions about how to compile, install or use the library, please use instead the web forum at https://forum.skewed.de/c/graph-tool.


(If unsure, use the forum first.)


IMPORTANT: When opening new issues, please choose the BUG template from the drop-down menu, and fill out the required information.

  • Tiago Peixoto
  • graph-toolgraph-tool
  • Issues
  • #186
Closed
Open
Issue created Sep 17, 2014 by Nick@fobdy

GraphML parsing of boolean fields problem

I've got a problem with parsing boolean fields in .graphml files.

I have the following:

...
<key attr.name="direct" attr.type="boolean" for="edge" id="d14" />
...
<data key="d14">true</data>
...

According to http://www.w3.org/TR/xmlschema-2/#boolean correct values are:

  • true | True | 1
  • false | False | 0

But graph-tool raises following:

IOError: error reading from file 'graph.graphml':parse error: on line 117, column 26: invalid value "true" for key direct of type boolean

Code is

g = gt.load_graph('graph.graphml', fmt='xml')

graph-tool is of version 2.2.31

Assignee
Assign to
Time tracking