Interface Element

    • Method Detail

      • id

        Object id()
        Gets the unique identifier for the graph Element.
        Returns:
        The id of the element
      • label

        String label()
        Gets the label for the graph Element which helps categorize it.
        Returns:
        The label of the element
      • graph

        Graph graph()
        Get the graph that this element is within.
        Returns:
        the graph of this element
      • keys

        default Set<String> keys()
        Get the keys of the properties associated with this element. The default implementation iterators the properties and stores the keys into a HashSet.
        Returns:
        The property key set
      • property

        <V> Property<V> property​(String key,
                                 V value)
        Add or set a property value for the Element given its key.
      • remove

        void remove()
        Removes the Element from the graph.
      • values

        default <V> Iterator<V> values​(String... propertyKeys)
        Get the values of properties as an Iterator.
      • properties

        <V> Iterator<? extends Property<V>> properties​(String... propertyKeys)
        Get an Iterator of properties where the propertyKeys is meant to be a filter on the available keys. If no keys are provide then return all the properties.
      • propertyMap

        default <V> Map<String,​List<Property<V>>> propertyMap​(String... propertyKeys)
        Groups this element's properties by key, preserving encounter order. A Vertex multi-property key maps to several Property objects; otherwise each key maps to a single-element list. Empty map when there are no matching properties.
        Parameters:
        propertyKeys - the keys to filter on; if none are provided then all properties are grouped
        Returns:
        a map of property key to the list of properties for that key