Serialization improvements in graph

Signed-off-by: Nathan T Freeman <nathan.freeman@redpilldevelopment.com>