implement graph.toJSON() method so that it serializes the internal cells collection (Backbone does not do that)