Sharedsupport / 2015-04-03-103748-d3-serialize.sagewsOpen in CoCalc
Authors: Harald Schilly, ℏal Snyder, William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.
G = Graph(1) G.layout(pos={0:(0,0)},save_pos=True) show(G) #This fails since <sage.rings.integer.Integer> is not serializable by python serializer
{0: (0, 0)}
d3-based renderer not yet implemented
G = Graph(1) G.layout(pos={0:(float(0),float(0))}) show(G) #This succeeds since python floats are serializable
{0: (0.0, 0.0)}
d3-based renderer not yet implemented