code: public void setOwner(Graph<DataT, NodeT> ownerGraph) {
          if (this.ownerGraph != null) {
              throw new RuntimeException("Changing owner graph is not allowed");
          }
          this.ownerGraph = ownerGraph;
      }
docs: Sets reference to the graph owning this node.
  
  @param ownerGraph the owning graph