from subclass to graph object within VariantGraph

This pattern is much safer than subclassing the automatically-generated
protobuf C++ class, which could lead to the overloading of virtual methods.