ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 16 Jan 2016 03:21:55 +0100I keep losing my node labels on graph exporthttps://ask.sagemath.org/question/32221/i-keep-losing-my-node-labels-on-graph-export/Hello! I often export Sage graphs by using networkx. This is a typical example:
import networkx
g = graphs.HerschelGraph()
h = g.networkx_graph()
networkx.write_graphml(h,'HerschelGraph.graphml')
However, when I open the graphml-file in the *YEd Graph Editor* (which is my favorite software for displaying graphs) I find that the node labels (that are clearly existent in the Sage version of the graph) have disappeared forever. Everything else works fine. Assuming that this is Sage's fault rather than the graph editor's fault: What can I do to export the node labels as well?
Thank you very much for your help.
MalteMalteSat, 16 Jan 2016 03:21:55 +0100https://ask.sagemath.org/question/32221/