Module: Neo4j::Core::Relationship
- Included in:
- Relationship
- Defined in:
- lib/neo4j-core/relationship/relationship.rb,
lib/neo4j-core/relationship/class_methods.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary (collapse)
-
- (Object) _end_node
Same as Java::OrgNeo4jGraphdb::Relationship#getEndNode.
-
- (Object) _java_entity
same as #_java_rel Used so that we have same method for both relationship and nodes.
-
- (Object) _java_rel
Self.
-
- (Object) _nodes
Same as Java::OrgNeo4jGraphdb::Relationship#getNodes.
-
- (Object) _other_node(node)
Same as Java::OrgNeo4jGraphdb::Relationship#getOtherNode.
-
- (Object) _start_node
Same as Java::OrgNeo4jGraphdb::Relationship#getStartNode.
- - (Object) class
-
- (nil) del
Deletes the relationship between the start and end node May raise an exception if delete was unsuccessful.
-
- (true, false) exist?
If the relationship exists.
-
- (Neo4j::Node) other_node(node)
A convenience operation that, given a node that is attached to this relationship, returns the other node.
-
- (Symbol) rel_type
Returns the relationship name.
Instance Method Details
- (Object) _end_node
Same as Java::OrgNeo4jGraphdb::Relationship#getEndNode
7 8 9 |
# File 'lib/neo4j-core/relationship/relationship.rb', line 7 def _end_node get_end_node end |
- (Object) _java_entity
same as #_java_rel Used so that we have same method for both relationship and nodes
79 80 81 |
# File 'lib/neo4j-core/relationship/relationship.rb', line 79 def _java_entity self end |
- (Object) _java_rel
Self
84 85 86 |
# File 'lib/neo4j-core/relationship/relationship.rb', line 84 def _java_rel self end |
- (Object) _nodes
Same as Java::OrgNeo4jGraphdb::Relationship#getNodes
19 20 21 |
# File 'lib/neo4j-core/relationship/relationship.rb', line 19 def _nodes get_nodes end |
- (Object) _other_node(node)
Same as Java::OrgNeo4jGraphdb::Relationship#getOtherNode
25 26 27 |
# File 'lib/neo4j-core/relationship/relationship.rb', line 25 def _other_node(node) get_other_node(node) end |
- (Object) _start_node
Same as Java::OrgNeo4jGraphdb::Relationship#getStartNode
13 14 15 |
# File 'lib/neo4j-core/relationship/relationship.rb', line 13 def _start_node get_start_node end |
- (Object) class
104 105 106 |
# File 'lib/neo4j-core/relationship/relationship.rb', line 104 def class Neo4j::Relationship end |
- (nil) del
Deletes the relationship between the start and end node May raise an exception if delete was unsuccessful.
33 34 35 |
# File 'lib/neo4j-core/relationship/relationship.rb', line 33 def del delete end |
- (true, false) exist?
If the relationship exists
89 90 91 |
# File 'lib/neo4j-core/relationship/relationship.rb', line 89 def exist? Neo4j::Relationship.exist?(self) end |
- (Neo4j::Node) other_node(node)
A convenience operation that, given a node that is attached to this relationship, returns the other node. For example if node is a start node, the end node will be returned, and vice versa. This is a very convenient operation when you're manually traversing the node space by invoking one of the #rels method on a node. For example, to get the node “at the other end” of a relationship, use the following:
72 73 74 |
# File 'lib/neo4j-core/relationship/relationship.rb', line 72 def other_node(node) _other_node(node._java_node).wrapper end |
- (Symbol) rel_type
Returns the relationship name
100 101 102 |
# File 'lib/neo4j-core/relationship/relationship.rb', line 100 def rel_type getType().name().to_sym end |