Interface MutableGraph<N,​E,​NP,​EP>

    • Method Detail

      • addNode

        default N addNode()
        Adds a new node with default properties to the graph. This method behaves equivalently to the below addNode(Object) with a null parameter.
        Returns:
        the newly inserted node
      • addNode

        N addNode​(@Nullable NP property)
        Adds a new node to the graph.
        Parameters:
        property - the property for the new node
        Returns:
        the newly inserted node
      • connect

        default E connect​(N source,
                          N target)
        Inserts an edge in the graph, with the default property. Calling this method should be equivalent to invoking connect(Object, Object, Object) with a null property value.
        Parameters:
        source - the source node
        target - the target node
        Returns:
        the edge connecting the given nodes
      • connect

        E connect​(N source,
                  N target,
                  @Nullable EP property)
        Inserts an edge in the graph.
        Parameters:
        source - the source node of the edge
        target - the target node of the edge
        property - the property of the edge
        Returns:
        the newly inserted edge
      • setNodeProperty

        void setNodeProperty​(N node,
                             NP property)
        Sets the node property of the given node.
        Parameters:
        node - the node
        property - the property to set
      • setEdgeProperty

        void setEdgeProperty​(E edge,
                             EP property)
        Sets the edge property of the given edge.
        Parameters:
        edge - the edge
        property - the property to set