Desire behaviour for dot graph import #7709
Replies: 2 comments 1 reply
-
I think a good interface to follow would be the output of The I'm not sure if that description answers your questions. It seems like all the data attributes should be loaded onto the nodes, edges and the |
Beta Was this translation helpful? Give feedback.
-
It looks like pydot and pygraphviz both give very close to the same dot file. So I'm not sure that anything is needed at the moment. Intuitive or not, that is how GraphViz expects dot-files to encode the information. |
Beta Was this translation helpful? Give feedback.
-
This is a reference to #7698
When importing the following graph:
The result graph attribute will be as follows:
However, I think the following makes more sense:
or even the
node
andedge
should not be in thegraph
attribute, and the value is automatically copied as the node and edge data.The current behaviour is the following:
To output:
and currently only accept the
test=test;
syntax when importing the graph.I am adding support to the
graph[key=value];
syntax, but should we keep theG.graph ["graph"]
to get the graph data or useG.graph
to see all the graph data? Similarly, should we copy theG.graph ["node"]
andG.graph ["edge"]
data to all the nodes and edges?Beta Was this translation helpful? Give feedback.
All reactions