Graph Database A Gist - NEO4J-Part 2

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
  1. Uni-directional
  2. Bi-directional
Volkswagen brands Polo
Volkswagen brands Vento
Volkswagen brands Jetta
Relationships 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 Polo RATING  5
Volkswagen BRANDS Vento RATING 4
Skoda BRANDS Rapid RATING 5
The pointing direction shows the traversal path.In general the directions can be incoming or outgoing .  

No comments:

Post a Comment

 

Contributors

Social Connect


View Sadagopan K V's profile on LinkedIn