Uses of Interface
org.neo4j.graphdb.Node
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 Node in org.neo4j.graphalgo
Modifier and TypeMethodDescriptionPathFinder.findAllPaths
(Node start, Node end) Tries to find all paths betweenstart
andend
nodes.PathFinder.findSinglePath
(Node start, Node end) Tries to find a single path betweenstart
andend
nodes.Estimate the weight of the remaining path from one node to another. -
Uses of Node in org.neo4j.graphdb
Modifier and TypeMethodDescriptionTransaction.createNode()
Creates a new node.Transaction.createNode
(Label... labels) Creates a new node and adds the provided labels to it.Path.endNode()
Returns the end node of this path.Equivalent toTransaction.findNodes(Label, String, Object)
, however it must find no more than onenode
or it will throw an exception.Relationship.getEndNode()
Returns the end node of this relationship.Transaction.getNodeByElementId
(String elementId) Looks up a node by element id.Transaction.getNodeById
(long id) Deprecated, for removal: This API element is subject to removal in a future version.Node[]
Relationship.getNodes()
Returns the two nodes that are attached to this relationship.Relationship.getOtherNode
(Node node) A convenience operation that, given a node that is attached to this relationship, returns the other node.Relationship.getStartNode()
Returns the start node of this relationship.Path.startNode()
Returns the start node of this path.Modifier and TypeMethodDescriptionReturns all nodes having the label, and the wanted property value.Returns all nodes having the label, and the wanted property values.Transaction.findNodes
(Label label, String key1, Object value1, String key2, Object value2, String key3, Object value3) Returns all nodes having the label, and the wanted property values.Transaction.findNodes
(Label label, String key, String template, StringSearchMode searchMode) Returns all nodes having a given label, and a property value of type String or Character matching the given value template and search mode.Returns all nodes having the label, and the wanted property values.Transaction.getAllNodes()
Returns all nodes in the graph.Path.nodes()
Returns all the nodes in this path starting from the start node going forward towards the end node.Path.reverseNodes()
Returns all the nodes in this path in reversed order, i.e.Modifier and TypeMethodDescriptionNode.createRelationshipTo
(Node otherNode, RelationshipType type) Creates a relationship between this node and another node.Relationship.getOtherNode
(Node node) A convenience operation that, given a node that is attached to this relationship, returns the other node.Modifier and TypeMethodDescriptionPathExpanderBuilder.addNodeFilter
(Predicate<? super Node> filter) Adds aNode
filter. -
Uses of Node in org.neo4j.graphdb.event
Modifier and TypeMethodDescriptionLabelEntry.node()
This is the node which has had the label added or removed.Modifier and TypeMethodDescriptionTransactionData.assignedNodeProperties()
Get the properties that had a value assigned or overwritten on a node during the transaction.TransactionData.createdNodes()
Get the nodes that were created during the transaction.TransactionData.deletedNodes()
Get the nodes that were deleted during the transaction.TransactionData.removedNodeProperties()
Get the properties that had a value removed from a node during the transaction. -
Uses of Node in org.neo4j.graphdb.traversal
Modifier and TypeMethodDescriptionTraverser.nodes()
Represents the traversal in the form ofNode
s.Modifier and TypeMethodDescriptionstatic <STATE> PathEvaluator<STATE>
Evaluators.endNodeIs
(Evaluation evaluationIfMatch, Evaluation evaluationIfNoMatch, Node... possibleEndNodes) AnEvaluator
which will returnevaluationIfMatch
ifPath.endNode()
for a given path is any ofnodes
, elseevaluationIfNoMatch
.static <STATE> PathEvaluator<STATE>
Evaluators.endNodeIsAtDepth
(int depth, Node... possibleEndNodes) ReturnsEvaluator
s for paths with the specified depth and with an end node from the list of possibleEndNodes.static <STATE> PathEvaluator<STATE>
Evaluators.includeIfContainsAll
(Node... nodes) Evaluator which decides to include aPath
if all thenodes
exist in it.static <STATE> PathEvaluator<STATE>
Evaluators.includeWhereEndNodeIs
(Node... nodes) Include paths with the specified end nodes.Paths.DefaultPathDescriptor.nodeRepresentation
(Path path, Node node) Paths.PathDescriptor.nodeRepresentation
(T path, Node node) Returns a string representation of aNode
.static <STATE> PathEvaluator<STATE>
Evaluators.pruneWhereEndNodeIs
(Node... nodes) Paths.DefaultPathDescriptor.relationshipRepresentation
(Path path, Node from, Relationship relationship) Paths.PathDescriptor.relationshipRepresentation
(T path, Node from, Relationship relationship) Returns a string representation of aRelationship
.static Path
Paths.singleNodePath
(Node node) Traverse between a givenstart
andend
node with all applied rules and behavior in this traversal description.Traverse from a single start node based on all the rules and behavior in this description.Traverse from a set of start nodes based on all the rules and behavior in this description.Modifier and TypeMethodDescriptionTraverse between a set ofstart
andend
nodes with all applied rules and behavior in this traversal description.Traverse from a iterable of start nodes based on all the rules and behavior in this description.
Transaction.getNodeByElementId(String)
.