Please refer to the initial post of graph DB for basics Graph Database A Gist - NEO4J
NEO4J uses property model graph. So to associate various nodes in graph DB uses relationships.Relationships connect nodes.
(Note: Relationships are directional in NEO4j , if directions aren't defined Neo4j throws error)
Relationships are typed as
Reposted from Sad'sTechUpate With permission of author Sadagopan Iyengar Profile
NEO4J uses property model graph. So to associate various nodes in graph DB uses relationships.Relationships connect nodes.
(Note: Relationships are directional in NEO4j , if directions aren't defined Neo4j throws error)
Relationships are typed as
- Uni-directional
- Bi-directional
Volkswagen brands PoloRelationships should direction and type. It is very similar to properties with name/value pairs. In the above example the car "BRANDS" relates various type of cars that volkswagen produces. There can be many relationships that connect two nodes.
Volkswagen brands Vento
Volkswagen brands Jetta
The pointing direction shows the traversal path.In general the directions can be incoming or outgoing.
Volkswagen BRANDS Polo RATING 5
Volkswagen BRANDS Vento RATING 4
Skoda BRANDS Rapid RATING 5
0 comments:
Post a Comment