daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Jan 16th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Graph graphMLGraph = TinkerGraph.open();
  2. graphMLGraph.io(IoCore.graphml()).readGraph(file.getAbsolutePath());
  3.    
  4. graphTraversalSource.E().toStream().forEach(edge -> {
  5.       System.out.println(edge.label());
  6.     });
  7.    
  8. <edge id="1" source="1" target="3">
  9. <data key="edgelabel">belongs-to</data>
  10. <data key="weight">1.0</data>
  11. </edge>
  12. <edge id="2" source="1" target="4">
  13. <data key="weight">1.0</data>
  14. <data key="edgelabel">part-of</data>
  15. </edge>
  16.    
  17. <key attr.name="Edge Label" attr.type="string" for="edge" id="edgelabel"/>
RAW Paste Data
Top