2.2. Usage in RGG

To use an ObjectGraph in RGG the ObjectGraphRef element was created, which as most other reference objects (eg. datasets) gets the name of the object as a parameter as follows:

GraphObjectRef gufi = new GraphObjectRef("gufi1.dtd");

This new object can than be used to clone its graph and add it to the main graph, for example directly in stead of the axiom, but also at any position and as often as needed.

Axiom ==> gufi.cloneGraph();

Afterwards, the content of the cloned graph is exactly as if it was imported with objects/import File.

An example can be found in the examples:Graph Explorer/GraphObjectRef

Additionally, the GraphObject can also be linked to the simulation as an instance, similar to the Object Explorer or an instantiation rule.

Axiom ==> gufi;

In this case, the nodes of the GraphObject are not added to the project graph.