开发者

Importing GraphML files in JUNG

开发者 https://www.devze.com 2022-12-20 16:10 出处:网络
I am new to JUNG, can any one show me 开发者_运维问答how to import a GraphML to JUNG.I\'m not sure if you\'re working with a database, but if you are this is very easy with Neo4J. Neo4J supports impor

I am new to JUNG, can any one show me 开发者_运维问答how to import a GraphML to JUNG.


I'm not sure if you're working with a database, but if you are this is very easy with Neo4J. Neo4J supports import/export from .graphml files. Once you have everything done, you can hook up your Neo4J database to JUNG using blueprints. It takes no more than 2 lines of code:

com.tinkerpop.blueprints.Graph g = new Neo4JGraph(gds);
GraphJung gj = new GraphJung(g);

In which gds is the GraphDatabaseService object from Neo4J. Like I said, very easy, and you can imagine the possibilities with a powerful graph database behind your application.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号