Package com.github.moaxcp.graphs
Class AbstractPropertyGraph<ID>
java.lang.Object
com.github.moaxcp.graphs.AbstractPropertyGraph<ID>
- Type Parameters:
ID
- type of all identifiers in graph
- All Implemented Interfaces:
PropertyGraph<ID>
- Direct Known Subclasses:
DirectedPropertyGraph
,UndirectedPropertyGraph
This class provides a partial implementation of the
PropertyGraph
interface.
Vertices and edges are stored in insertion order.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
class
Nested classes/interfaces inherited from interface com.github.moaxcp.graphs.PropertyGraph
PropertyGraph.Edge<ID>, PropertyGraph.Vertex<ID>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
-
Method Summary
Modifier and TypeMethodDescriptionprotected PropertyGraph.Edge<ID>
protected PropertyGraph.Vertex<ID>
Ensures an edge exists between source and target vertices.edge
(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3) edge
(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4) edge
(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5) edge
(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6) edge
(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7) edge
(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8) edge
(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8, String name9, Object value9) edge
(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8, String name9, Object value9, String name10, Object value10) edgeProperty
(String name, Object value) Sets edge property returning this graphedgeProperty
(Map<String, Object> properties) final boolean
finds edge with given id.Finds edge connecting source and target vertex.<T> Optional<T>
findEdgeProperty
(String name) ReturnsOptional
of an edge property.<T> Optional<T>
findProperty
(String name) ReturnsOptional
of a property.findVertex
(ID id) Finds vertex with given id.<T> Optional<T>
findVertexProperty
(String name) ReturnsOptional
of a vertex property.getEdge
(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3) getEdge
(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4) getEdge
(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5) getEdge
(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6) getEdge
(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7) getEdge
(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8) getEdge
(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8, String name9, Object value9) getEdge
(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8, String name9, Object value9, String name10, Object value10) Returns a map of edge ids to edges.Returns an unmodifiable map of edge properties.<T> T
getEdgeProperty
(String name) Returns an edge property.getEdges()
Returns an ordered collection of all edges in this graph.getId()
Returns the id of this graph.Returns an unmodifiable map of properties for this graph.<T> T
getProperty
(String name) Returns a property.getVertex
(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3) getVertex
(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4) getVertex
(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5) getVertex
(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6) getVertex
(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7) getVertex
(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8) getVertex
(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8, String name9, Object value9) getVertex
(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8, String name9, Object value9, String name10, Object value10) Retruns an unmodifiable map of vertex properties.<T> T
getVertexProperty
(String name) Returns a vertex property.Returns an ordered map of all vertices in this graph.final int
hashCode()
Sets the id of this graphprotected PropertyGraph.Edge<ID>
newEdgeKey
(ID from, ID to) protected PropertyGraph.Vertex<ID>
Sets property on this graph returning this graphvoid
removeEdge
(ID id) Removes edge with given idvoid
removeEdge
(ID source, ID target) Removes edge with given from and to.removeEdgeProperty
(String name) Removes edge property returning this graphremoveProperty
(String name) Removes property on this graph returning this graphvoid
removeVertex
(ID id) Removes vertex with given id.removeVertexProperty
(String name) Removes vertex property returning this graphvoid
setEdgeProperty
(String name, Object value) Sets edge property.void
Sets the id of this graph.void
setProperty
(String name, Object value) Sets property on this graphvoid
setVertexProperty
(String name, Object value) Sets vertex property.Ensure a vertex exists with id and returns the vertex.vertex
(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3) vertex
(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4) vertex
(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5) vertex
(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6) vertex
(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7) vertex
(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8) vertex
(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8, String name9, Object value9) vertex
(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8, String name9, Object value9, String name10, Object value10) vertexProperty
(String name, Object value) Sets vertex property returning this graphvertexProperty
(Map<String, Object> properties) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.github.moaxcp.graphs.PropertyGraph
breadthFirstIterator, breadthFirstStream, connected, isDirected, isEmpty, postOrderIterator, postOrderStream, preOrderIterator, preOrderStream
-
Constructor Details
-
AbstractPropertyGraph
protected AbstractPropertyGraph() -
AbstractPropertyGraph
-
-
Method Details
-
getVertices
Description copied from interface:PropertyGraph
Returns an ordered map of all vertices in this graph. The key is the vertex id. Ordering is determined by implementing class.- Specified by:
getVertices
in interfacePropertyGraph<ID>
- Returns:
- ordered map of all vertices in this graph
-
getEdges
Description copied from interface:PropertyGraph
Returns an ordered collection of all edges in this graph.- Specified by:
getEdges
in interfacePropertyGraph<ID>
- Returns:
- ordered collection of all edges
-
getEdgeIds
Description copied from interface:PropertyGraph
Returns a map of edge ids to edges.- Specified by:
getEdgeIds
in interfacePropertyGraph<ID>
- Returns:
- map of edge ids to edges
-
findVertex
Description copied from interface:PropertyGraph
Finds vertex with given id. If vertex is not in this graph the optional is empty.- Specified by:
findVertex
in interfacePropertyGraph<ID>
- Parameters:
id
- of vertex- Returns:
- optional of vertex
-
vertex
Description copied from interface:PropertyGraph
Ensure a vertex exists with id and returns the vertex. If the vertex does not exist it is created.- Specified by:
vertex
in interfacePropertyGraph<ID>
- Parameters:
id
- of vertex- Returns:
- created or existing vertex
-
vertex
- Specified by:
vertex
in interfacePropertyGraph<ID>
-
vertex
- Specified by:
vertex
in interfacePropertyGraph<ID>
-
vertex
public PropertyGraph<ID> vertex(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3) - Specified by:
vertex
in interfacePropertyGraph<ID>
-
vertex
public PropertyGraph<ID> vertex(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4) - Specified by:
vertex
in interfacePropertyGraph<ID>
-
vertex
public PropertyGraph<ID> vertex(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5) - Specified by:
vertex
in interfacePropertyGraph<ID>
-
vertex
public PropertyGraph<ID> vertex(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6) - Specified by:
vertex
in interfacePropertyGraph<ID>
-
vertex
public PropertyGraph<ID> vertex(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7) - Specified by:
vertex
in interfacePropertyGraph<ID>
-
vertex
public PropertyGraph<ID> vertex(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8) - Specified by:
vertex
in interfacePropertyGraph<ID>
-
vertex
public PropertyGraph<ID> vertex(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8, String name9, Object value9) - Specified by:
vertex
in interfacePropertyGraph<ID>
-
vertex
public PropertyGraph<ID> vertex(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8, String name9, Object value9, String name10, Object value10) - Specified by:
vertex
in interfacePropertyGraph<ID>
-
vertex
- Specified by:
vertex
in interfacePropertyGraph<ID>
-
getVertex
- Specified by:
getVertex
in interfacePropertyGraph<ID>
-
getVertex
- Specified by:
getVertex
in interfacePropertyGraph<ID>
-
getVertex
public PropertyGraph.Vertex<ID> getVertex(ID id, String name1, Object value1, String name2, Object value2) - Specified by:
getVertex
in interfacePropertyGraph<ID>
-
getVertex
public PropertyGraph.Vertex<ID> getVertex(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3) - Specified by:
getVertex
in interfacePropertyGraph<ID>
-
getVertex
public PropertyGraph.Vertex<ID> getVertex(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4) - Specified by:
getVertex
in interfacePropertyGraph<ID>
-
getVertex
public PropertyGraph.Vertex<ID> getVertex(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5) - Specified by:
getVertex
in interfacePropertyGraph<ID>
-
getVertex
public PropertyGraph.Vertex<ID> getVertex(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6) - Specified by:
getVertex
in interfacePropertyGraph<ID>
-
getVertex
public PropertyGraph.Vertex<ID> getVertex(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7) - Specified by:
getVertex
in interfacePropertyGraph<ID>
-
getVertex
public PropertyGraph.Vertex<ID> getVertex(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8) - Specified by:
getVertex
in interfacePropertyGraph<ID>
-
getVertex
public PropertyGraph.Vertex<ID> getVertex(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8, String name9, Object value9) - Specified by:
getVertex
in interfacePropertyGraph<ID>
-
getVertex
public PropertyGraph.Vertex<ID> getVertex(ID id, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8, String name9, Object value9, String name10, Object value10) - Specified by:
getVertex
in interfacePropertyGraph<ID>
-
getVertex
- Specified by:
getVertex
in interfacePropertyGraph<ID>
-
addVertex
-
removeVertex
Description copied from interface:PropertyGraph
Removes vertex with given id. If edges connect to the vertex they are removed first.- Specified by:
removeVertex
in interfacePropertyGraph<ID>
- Parameters:
id
- of vertex
-
findEdge
Description copied from interface:PropertyGraph
Finds edge connecting source and target vertex. If edge is not in this graph the optional is empty. The order of source and target does not matter in undirected implementations. However, if the graph is directed source and target must match source and target of the edge exactly.- Specified by:
findEdge
in interfacePropertyGraph<ID>
- Parameters:
source
- of edgetarget
- of edge- Returns:
- optional of edge
-
findEdge
Description copied from interface:PropertyGraph
finds edge with given id. If edge is not in this graph the optional is empty.- Specified by:
findEdge
in interfacePropertyGraph<ID>
- Parameters:
id
- of edge- Returns:
- optional of edge
-
edge
Description copied from interface:PropertyGraph
Ensures an edge exists between source and target vertices. If an edge does not exist it is created. If any of the vertices do not exist they are created.If this graph is undirected and contains an edge connecting source and target the edge will not be created. Undirected graphs ignore source/target order in edges.
- Specified by:
edge
in interfacePropertyGraph<ID>
- Parameters:
source
- of edgetarget
- of edge- Returns:
- created or existing edge
-
edge
- Specified by:
edge
in interfacePropertyGraph<ID>
-
edge
public PropertyGraph<ID> edge(ID source, ID target, String name1, Object value1, String name2, Object value2) - Specified by:
edge
in interfacePropertyGraph<ID>
-
edge
public PropertyGraph<ID> edge(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3) - Specified by:
edge
in interfacePropertyGraph<ID>
-
edge
public PropertyGraph<ID> edge(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4) - Specified by:
edge
in interfacePropertyGraph<ID>
-
edge
public PropertyGraph<ID> edge(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5) - Specified by:
edge
in interfacePropertyGraph<ID>
-
edge
public PropertyGraph<ID> edge(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6) - Specified by:
edge
in interfacePropertyGraph<ID>
-
edge
public PropertyGraph<ID> edge(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7) - Specified by:
edge
in interfacePropertyGraph<ID>
-
edge
public PropertyGraph<ID> edge(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8) - Specified by:
edge
in interfacePropertyGraph<ID>
-
edge
public PropertyGraph<ID> edge(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8, String name9, Object value9) - Specified by:
edge
in interfacePropertyGraph<ID>
-
edge
public PropertyGraph<ID> edge(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8, String name9, Object value9, String name10, Object value10) - Specified by:
edge
in interfacePropertyGraph<ID>
-
edge
- Specified by:
edge
in interfacePropertyGraph<ID>
-
getEdge
- Specified by:
getEdge
in interfacePropertyGraph<ID>
-
getEdge
- Specified by:
getEdge
in interfacePropertyGraph<ID>
-
getEdge
public PropertyGraph.Edge<ID> getEdge(ID source, ID target, String name1, Object value1, String name2, Object value2) - Specified by:
getEdge
in interfacePropertyGraph<ID>
-
getEdge
public PropertyGraph.Edge<ID> getEdge(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3) - Specified by:
getEdge
in interfacePropertyGraph<ID>
-
getEdge
public PropertyGraph.Edge<ID> getEdge(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4) - Specified by:
getEdge
in interfacePropertyGraph<ID>
-
getEdge
public PropertyGraph.Edge<ID> getEdge(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5) - Specified by:
getEdge
in interfacePropertyGraph<ID>
-
getEdge
public PropertyGraph.Edge<ID> getEdge(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6) - Specified by:
getEdge
in interfacePropertyGraph<ID>
-
getEdge
public PropertyGraph.Edge<ID> getEdge(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7) - Specified by:
getEdge
in interfacePropertyGraph<ID>
-
getEdge
public PropertyGraph.Edge<ID> getEdge(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8) - Specified by:
getEdge
in interfacePropertyGraph<ID>
-
getEdge
public PropertyGraph.Edge<ID> getEdge(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8, String name9, Object value9) - Specified by:
getEdge
in interfacePropertyGraph<ID>
-
getEdge
public PropertyGraph.Edge<ID> getEdge(ID source, ID target, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8, String name9, Object value9, String name10, Object value10) - Specified by:
getEdge
in interfacePropertyGraph<ID>
-
getEdge
- Specified by:
getEdge
in interfacePropertyGraph<ID>
-
newEdge
-
newEdgeKey
-
newVertex
-
addEdge
-
removeEdge
Description copied from interface:PropertyGraph
Removes edge with given from and to.- Specified by:
removeEdge
in interfacePropertyGraph<ID>
- Parameters:
source
- of edgetarget
- of edge
-
removeEdge
Description copied from interface:PropertyGraph
Removes edge with given id- Specified by:
removeEdge
in interfacePropertyGraph<ID>
- Parameters:
id
- of edge
-
getId
Description copied from interface:PropertyGraph
Returns the id of this graph. If the id is not set and empty optional is returned.- Specified by:
getId
in interfacePropertyGraph<ID>
- Returns:
- optional of id
-
setId
Description copied from interface:PropertyGraph
Sets the id of this graph.- Specified by:
setId
in interfacePropertyGraph<ID>
- Parameters:
id
- of graph
-
id
Description copied from interface:PropertyGraph
Sets the id of this graph- Specified by:
id
in interfacePropertyGraph<ID>
- Parameters:
id
- of graph- Returns:
- this graph
-
getProperties
Description copied from interface:PropertyGraph
Returns an unmodifiable map of properties for this graph.- Specified by:
getProperties
in interfacePropertyGraph<ID>
- Returns:
- an unmodifiable map of properties for this graph
-
findProperty
Description copied from interface:PropertyGraph
- Specified by:
findProperty
in interfacePropertyGraph<ID>
- Parameters:
name
- of property- Returns:
- optional of named proeprty
-
getProperty
Description copied from interface:PropertyGraph
Returns a property. If the property does not exist null is returned.- Specified by:
getProperty
in interfacePropertyGraph<ID>
- Type Parameters:
T
- return type of property- Parameters:
name
- of property- Returns:
- value of named property
-
setProperty
Description copied from interface:PropertyGraph
Sets property on this graph- Specified by:
setProperty
in interfacePropertyGraph<ID>
- Parameters:
name
- of propertyvalue
- of property
-
property
Description copied from interface:PropertyGraph
Sets property on this graph returning this graph- Specified by:
property
in interfacePropertyGraph<ID>
- Parameters:
name
- of propertyvalue
- of property- Returns:
- this graph
-
property
- Specified by:
property
in interfacePropertyGraph<ID>
-
removeProperty
Description copied from interface:PropertyGraph
Removes property on this graph returning this graph- Specified by:
removeProperty
in interfacePropertyGraph<ID>
- Parameters:
name
- of property- Returns:
- this graph
-
getEdgeProperties
Description copied from interface:PropertyGraph
Returns an unmodifiable map of edge properties.- Specified by:
getEdgeProperties
in interfacePropertyGraph<ID>
- Returns:
- an unmodifiable map of edge properties
-
findEdgeProperty
Description copied from interface:PropertyGraph
ReturnsOptional
of an edge property. If the property does not exist the returnedOptional
is empty.- Specified by:
findEdgeProperty
in interfacePropertyGraph<ID>
- Parameters:
name
- of property- Returns:
- optional of property
-
getEdgeProperty
Description copied from interface:PropertyGraph
Returns an edge property. If the property does not exist null is returned.- Specified by:
getEdgeProperty
in interfacePropertyGraph<ID>
- Parameters:
name
- of property- Returns:
- property value
-
setEdgeProperty
Description copied from interface:PropertyGraph
Sets edge property.- Specified by:
setEdgeProperty
in interfacePropertyGraph<ID>
- Parameters:
name
- of propertyvalue
- of property
-
edgeProperty
Description copied from interface:PropertyGraph
Sets edge property returning this graph- Specified by:
edgeProperty
in interfacePropertyGraph<ID>
- Parameters:
name
- of edge propertyvalue
- of edge property- Returns:
- this graph
-
edgeProperty
- Specified by:
edgeProperty
in interfacePropertyGraph<ID>
-
removeEdgeProperty
Description copied from interface:PropertyGraph
Removes edge property returning this graph- Specified by:
removeEdgeProperty
in interfacePropertyGraph<ID>
- Parameters:
name
- of property- Returns:
- this graph
-
getVertexProperties
Description copied from interface:PropertyGraph
Retruns an unmodifiable map of vertex properties.- Specified by:
getVertexProperties
in interfacePropertyGraph<ID>
- Returns:
- an unmodifiable map of vertex properties
-
findVertexProperty
Description copied from interface:PropertyGraph
ReturnsOptional
of a vertex property. If the property does not exist the returnedOptional
is empty.- Specified by:
findVertexProperty
in interfacePropertyGraph<ID>
- Parameters:
name
- of property- Returns:
- optional of property
-
getVertexProperty
Description copied from interface:PropertyGraph
Returns a vertex property. If the property does not exist null is returned.- Specified by:
getVertexProperty
in interfacePropertyGraph<ID>
- Parameters:
name
- of property- Returns:
- property value
-
setVertexProperty
Description copied from interface:PropertyGraph
Sets vertex property.- Specified by:
setVertexProperty
in interfacePropertyGraph<ID>
- Parameters:
name
- of propertyvalue
- of property
-
vertexProperty
Description copied from interface:PropertyGraph
Sets vertex property returning this graph- Specified by:
vertexProperty
in interfacePropertyGraph<ID>
- Parameters:
name
- of propertyvalue
- of property- Returns:
- created or existing edge
-
vertexProperty
- Specified by:
vertexProperty
in interfacePropertyGraph<ID>
-
removeVertexProperty
Description copied from interface:PropertyGraph
Removes vertex property returning this graph- Specified by:
removeVertexProperty
in interfacePropertyGraph<ID>
- Parameters:
name
- of property- Returns:
- this graph
-
equals
-
hashCode
public final int hashCode()
-