literal_stringizer#
- literal_stringizer(value)[source]#
- Convert a - valueto a Python literal in GML representation.- Parameters:
- valueobject
- The - valueto be converted to GML representation.
 
- Returns:
- repstring
- A double-quoted Python literal representing value. Unprintable characters are replaced by XML character references. 
 
- Raises:
- ValueError
- If - valuecannot be converted to GML.
 
 - Notes - The original value can be recovered using the - networkx.readwrite.gml.literal_destringizer()function.