The GraphML writer doesn't support writing Python lists as node data.
I don't think that type of data is in the base specification of
GraphML.
>
> What I'm actually trying to do is produce output from networkx,
> including node positions and colours, that I can import into Gephi.
> Gephi supports a variety of formats:
>
> http://gephi.org/users/supported-graph-formats/
>
> But the only format also supported by networkx that allows me to
> include these visualisation elements is graphml.
I'm not familiar with the details of Gephi but that page says that
GraphML won't work for that. Is that incorrect?
Does Gephi extend GraphML in some way?
The formats listed for "visualization attributes" are GDF and GEXF.
Those were both invented by the Gephi folks and there are currently no
NetworkX reader/writers. It might not be too hard to write them:
GEXF is XML similar to GraphML and GDF looks like a CSVish format.
If you think we should add them go ahead and open an enhancement ticket.
Aric