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.