Interface VertexModifier<VID>

All Superinterfaces:
GraphBuilder<VID>, GraphChangeSet<VID>, VertexBuilder<VID>
All Known Implementing Classes:
VertexModifierImpl

public interface VertexModifier<VID> extends GraphChangeSet<VID>, VertexBuilder<VID>
  • Method Details

    • removeLabel

      VertexModifier<VID> removeLabel(String label)
      Removes the given label from the vertex.
      Parameters:
      label - the label value to remove
      Returns:
      this vertex modifier
    • setProperty

      VertexModifier<VID> setProperty(String key, Object value)
      Description copied from interface: VertexBuilder
      Sets the property value of this vertex with the given key to the given value. The first time this method is called, the type of value defines the type of the property.
      Specified by:
      setProperty in interface VertexBuilder<VID>
      Parameters:
      key - the property key
      value - the value of the vertex property
      Returns:
      this vertex builder
    • addLabel

      VertexModifier<VID> addLabel(String label)
      Description copied from interface: VertexBuilder
      Adds the given label to this vertex
      Specified by:
      addLabel in interface VertexBuilder<VID>
      Parameters:
      label - the label to be added
      Returns:
      this vertex builder
    • getId

      VID getId()
      Description copied from interface: VertexBuilder
      Gets the id of the element (vertex or edge) this builder belongs to
      Specified by:
      getId in interface VertexBuilder<VID>
      Returns:
      the id of the element