I have simple query to generate graph
CREATE (n1:TNode {id: 1}),
(n2:TNode {id:2})
MERGE (n1)-[:CONNECTED {id: 1}]->(n2)
MERGE (n1)-[:CONNECTED {id: 2}]->(n2)
And then I retrieve using
MATCH (n1:TNode)-[r:CONNECTED {id : 1}]->(n2:TNode)
return n1, ...