Note

This documents the development version of NetworkX. Documentation for the current release can be found here.

networkx.readwrite.gml.literal_destringizer

literal_destringizer(rep)[source]

Convert a Python literal to the value it represents.

Parameters
repstring

A Python literal.

Returns
valueobject

The value of the Python literal.

Raises
ValueError

If rep is not a Python literal.