NetworkX
2.1
Install
Tutorial
Reference
Introduction
Graph types
Algorithms
Functions
Graph generators
Linear algebra
Converting to and from other data formats
Relabeling nodes
Reading and writing graphs
Adjacency List
Multiline Adjacency List
Edge List
GEXF
GML
networkx.readwrite.gml.read_gml
networkx.readwrite.gml.write_gml
networkx.readwrite.gml.parse_gml
networkx.readwrite.gml.generate_gml
networkx.readwrite.gml.literal_destringizer
networkx.readwrite.gml.literal_stringizer
Pickle
GraphML
JSON
LEDA
YAML
SparseGraph6
Pajek
GIS Shapefile
Drawing
Exceptions
Utilities
Glossary
Developer Guide
Release Log
License
Credits
Citing
Bibliography
Examples
NetworkX
Docs
»
Reference
»
Reading and writing graphs
»
GML
»
networkx.readwrite.gml.literal_destringizer
networkx.readwrite.gml.literal_destringizer
¶
literal_destringizer
(
rep
)
[source]
¶
Convert a Python literal to the value it represents.
Parameters:
rep
(
string
) – A Python literal.
Returns:
value
– The value of the Python literal.
Return type:
object
Raises:
ValueError
– If
rep
is not a Python literal.