Important | Queries for edge label connections
Pawan Shriwas
Hi All, I need a solution for these two things, but I tried but was not able to find the solution. 1. I want to list the edgeLabel connection created in janusgraph
mgmt.addConnection("belongsTo", vertexLabel1, vertexLabel3); mgmt.addConnection("belongsTo", vertexLabel3, vertexLabel4); mgmt.addConnection("belongsTo", vertexLabel5, vertexLabel6); Can see only edge labels in printSchema but not how many time it used between Vertex labels. which is created after above steps. 2. I want to update the direction of one connection of edgeLabel. current -> mgmt.addConnection(“belongsTo”, vertexLabel1, vertexLabel2); //outdirection towards the vertexLabel2
I want to update the direction of this created connection. like below Expected Direction --> mgmt.addConnection(“belongsTo”, vertexLabel2 ,vertexLabel1); // I want only one kind of direction to exist between these 2 nodes types. If this option creates another connection then I want the previous direction to be removed. Please review and let me know how I can achieve this. Thanks in advance. Thanks, Pawan
|
|