Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate Cytoscape with JanusGraph 0.2?

JanusGraph official website provides some graph visualization tools. Cytoscape is one of them. I want to visualize my graph data with Cytoscape. I have no clue how to integrate Cytoscape with JanusGraph. Can someone provide some information how to integrate Cytoscape with JanusGraph?

like image 723
jonyroy Avatar asked Jan 27 '18 08:01

jonyroy


1 Answers

GraphML is the IO format of choice when integrating with other graph oriented tools, like visualization packages. Simple export your graph to that format as described in the Apache TinkerPop documentation:

graph.io(graphml()).writeGraph("export.xml")

The import that to Cytoscape 3 via the File | Import option. If I recall correctly, with Cytoscape 2 you needed the the GraphML Reader installed. As with any visualization tool the size of the graph you intend to visualize will be constrained by the amount of memory that you have. So, if you have a large graph, you will like wish to subgraph it for export so that you can visualize just the portion you care about.

like image 186
stephen mallette Avatar answered Oct 10 '22 05:10

stephen mallette