ReadOnly Implementation

jbmusso edited this page Jul 12, 2016 · 5 revisions

Attention: this Wiki hosts an outdated version of the TinkerPop framework and Gremlin language documentation.

Please visit the Apache TinkerPop website and latest documentation.


ReadOnlyGraph and ReadOnlyIndexableGraph wraps any Graph or IndexableGraph, respectively. The purpose of a ReadOnlyGraph is to ensure that the graph is not mutated by a mutating method invocation. The following methods throw an UnsupportedOperationException:

  • Graph: addVertex(), removeVertex(), addEdge(), removeEdge(), shutdown()
  • IndexableGraph: dropIndex(), createIndex()
  • Element: setProperty(), removeProperty()
  • Index: put(), remove()