Graphs now include a reference count, and are made immutable if there is more than one reference to each graph.