We are moved to new domain
Click -> www.ehowtonow.com
Tuesday, 19 May 2015

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.  
Reposted from Sad'sTechUpate With permission of author Sadagopan Iyengar Profile View Sadagopan K V's profile on LinkedIn

Shop and help us

Flipkart Offer Snapdeal offer Amazon.in offer Amazon.com offer
  • Blogger Comments
  • Facebook Comments
  • Disqus Comments

0 comments:

Post a Comment

Item Reviewed: Graph Database A Gist - NEO4J-Part 2 Rating: 5 Reviewed By: Unknown