我正在处理图形,到目前为止,jung 在我的测试环境(它有几千个节点)中似乎工作正常,但实际数据每天会创建数百万个节点(它是一个有向图,所以我们可能能够按天分离节点,这样我们就不必下载整个图表)。我们每个月都会添加十亿多个节点,并计划使用 hbase/hadoop 作为我们的后端,但不确定如何让 jung(或任何图形库)连接到它。
有没有办法让 jung 使用数据库来读/写,这样我就可以拥有某种类型的持久性存储,我可以有选择地从中下载?
最佳答案
您有一个选择是使用 blueprints :
Blueprints is a property graph model interface. It provides implementations, test suites, and supporting extensions. Graph databases and frameworks that implement the Blueprints interfaces automatically support Blueprints-enabled applications. Likewise, Blueprints-enabled applications can plug-and-play different Blueprints-enabled graph backends.
Blueprints 为 Neo4j 等众多数据库后端提供接口(interface),它们有一个 JUNG interface implementation称为 GraphJung。
The benefits of GraphJung is that any application that is written to talk to a JUNG edu.uci.ics.jung.graph.Graph can now, indirectly, talk to a Blueprints com.tinkerpop.blueprints.pgm.Graph. Exciting applications include the use of the JUNG visualization and algorithms packages (see JUNG JavaDoc) over any Blueprints-enabled graph database/framework.
我认为这听起来像是可以帮助您将 JUNG 图连接到支持蓝图的后端(Neo4j、OrientDB 等)的东西。
关于graph - 有没有办法将 jung 连接到数据库的保存/写入?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9492089/