Skip to content

ReadOnly Implementation

okram edited this page May 14, 2012 · 4 revisions


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()
Something went wrong with that request. Please try again.