Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

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.