I wanted to know that am I implementing a Graph DB scanerio correct or not. I am trying with Titan Graph Database
and neo4j
user-1
has asked a question this is question1
to user-2
user-2
replied to that question
user-3
also replied to that question
Here is the picture How i am doing this. Am i doing it correct or there is some space of improvement??
I want following query answer from this picture:
- Question asked by a user
- Question asked to a user
- All reply to a question.
- Who replied to a question (here is my doubt with the above picture because I dont have direct connection to user who replied. One solution that I am thinking will be a edge from user vertex to question vertex but i am not sure is it efficient or not)