Added to_string() method to graph objects.

This allows users to get a customizable, formatted string representation
for any object.

Useful for both users when inspecting objects. Moreover, very useful for
generating examples in the Plotly docs.