Uses of Interface
org.neo4j.graphdb.Relationship
Package
Description
Scalable graph algorithms like shortest path and others for Neo4j which
can be easily accessed via
GraphAlgoFactory
.The core graph database API.
Traversal framework.
-
Uses of Relationship in org.neo4j.graphalgo
Modifier and TypeMethodDescriptionCostEvaluator.getCost
(Relationship relationship, Direction direction) This is the general method for looking up costs for relationships. -
Uses of Relationship in org.neo4j.graphdb
Modifier and TypeMethodDescriptionNode.createRelationshipTo
(Node otherNode, RelationshipType type) Creates a relationship between this node and another node.Transaction.findRelationship
(RelationshipType relationshipType, String key, Object value) Equivalent toTransaction.findRelationships(RelationshipType, String, Object)
, however it must find no more than onerelationship
or it will throw an exception.Result.ResultRow.getRelationship
(String key) Transaction.getRelationshipByElementId
(String elementId) Looks up a relationship by element id.Transaction.getRelationshipById
(long id) Deprecated, for removal: This API element is subject to removal in a future version.Node.getSingleRelationship
(RelationshipType type, Direction dir) Returns the only relationship of a given type and direction that is attached to this node, ornull
.Path.lastRelationship()
Returns the lastRelationship
in this path.Modifier and TypeMethodDescriptionPathExpander.expand
(Path path, BranchState<STATE> state) Returns relationships for aPath
, most commonly from thePath.endNode()
.Transaction.findRelationships
(RelationshipType relationshipType) Returns allrelationships
of a specifictype
.Transaction.findRelationships
(RelationshipType relationshipType, String key, Object value) Returns allrelationships
having thetype
, and the wanted property value.Transaction.findRelationships
(RelationshipType relationshipType, String key1, Object value1, String key2, Object value2) Returns allrelationships
having thetype
, and the wanted property values.Transaction.findRelationships
(RelationshipType relationshipType, String key1, Object value1, String key2, Object value2, String key3, Object value3) Returns allrelationships
having thetype
, and the wanted property values.Transaction.findRelationships
(RelationshipType relationshipType, String key, String template, StringSearchMode searchMode) Returns allrelationships
having thetype
, and a property value of type String or Character matching the given value template and search mode.Transaction.findRelationships
(RelationshipType relationshipType, Map<String, Object> propertyValues) Returns allrelationships
having thetype
, and the wanted property values.Transaction.getAllRelationships()
Returns all relationships in the graph.Node.getRelationships()
Returns all the relationships attached to this node.Node.getRelationships
(Direction dir) Node.getRelationships
(Direction direction, RelationshipType... types) Returns all the relationships of any of the types intypes
that are attached to this node and have the givendirection
.Node.getRelationships
(RelationshipType... types) Returns all the relationships of any of the types intypes
that are attached to this node, regardless of direction.Path.relationships()
Returns all the relationships in between the nodes which this path consists of.Path.reverseRelationships()
Returns all the relationships in between the nodes which this path consists of in reverse order, i.e.Modifier and TypeMethodDescriptionPathExpanderBuilder.addRelationshipFilter
(Predicate<? super Relationship> filter) Adds aRelationship
filter. -
Uses of Relationship in org.neo4j.graphdb.event
Modifier and TypeMethodDescriptionTransactionData.assignedRelationshipProperties()
Get the properties that had a value assigned on a relationship during the transaction.TransactionData.createdRelationships()
Get the relationships that were created during the transaction.TransactionData.deletedRelationships()
Get the relationships that were deleted during the transaction.TransactionData.removedRelationshipProperties()
Get the properties that had a value removed from a relationship during the transaction.Modifier and TypeMethodDescriptionboolean
TransactionData.isDeleted
(Relationship relationship) Returns whether or notrelationship
is deleted in this transaction. -
Uses of Relationship in org.neo4j.graphdb.traversal
Modifier and TypeMethodDescriptionTraverser.relationships()
Represents the traversal in the form ofRelationship
s.Modifier and TypeMethodDescriptionPaths.DefaultPathDescriptor.relationshipRepresentation
(Path path, Node from, Relationship relationship) Paths.PathDescriptor.relationshipRepresentation
(T path, Node from, Relationship relationship) Returns a string representation of aRelationship
.
Transaction.getRelationshipByElementId(String)
.