/**
  * Adds the type to the type system for a graph.
  *
  * @param graph The graph to which to add the type system.
  */
 public static void initType(HyperGraph graph) {
   ValueWithUncertaintyElemFactoryType<?, ?> type = new ValueWithUncertaintyElemFactoryType();
   HGPersistentHandle typeHandle = graph.getHandleFactory().makeHandle();
   graph
       .getTypeSystem()
       .addPredefinedType(typeHandle, type, ValueWithUncertaintyElemFactory.class);
 }
 /**
  * Adds the type to the type system for a graph.
  *
  * @param graph The graph to which to add the type system.
  */
 public static void initType(HyperGraph graph) {
   EinsteinTensorElemType<?, ?, ?> type = new EinsteinTensorElemType();
   HGPersistentHandle typeHandle = graph.getHandleFactory().makeHandle();
   graph.getTypeSystem().addPredefinedType(typeHandle, type, EinsteinTensorElem.class);
 }
 /**
  * Adds the type to the type system for a graph.
  *
  * @param graph The graph to which to add the type system.
  */
 public static void initType(HyperGraph graph) {
   ComplexElemFactoryType<?, ?> type = new ComplexElemFactoryType();
   HGPersistentHandle typeHandle = graph.getHandleFactory().makeHandle();
   graph.getTypeSystem().addPredefinedType(typeHandle, type, ComplexElemFactory.class);
 }
 public Object from(Json x) {
   return graph.getHandleFactory().makeHandle(x.asString());
 }