Skip to content

GraphML does not support type <class 'type'> as data values. #7439

Answered by dschult
scls19fr asked this question in Q&A
Discussion options

You must be logged in to vote

To keep track of what is going on, keep in miind the picture of the data structure as dict-of-dicts-of.......
For node attributes:

  • G.nodes is basically a dict keyed by node to a dict keyed by attribute names to the attribute value. So it's a dict-of-dicts.
  • G.edges is basically a dict keyed by edge-tuple to a dict keyed by attribute names to the attribute value.

In Graph/DiGraph:

  • G.adj is basically a dict keyed by node to a dict keyed by neighbors to a attr_dict keyed by attribute name to the attribute value.

In MultiGraph/MultiDiGraph:

  • G.adj is basically a dict keyed by node to a dict keyed by neighbors to a dict keyed by edge_keys to a attr_dict keyed by attribute name to the attrib…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@scls19fr
Comment options

@scls19fr
Comment options

@scls19fr
Comment options

@scls19fr
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by rossbar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants