graph - 有没有办法将 jung 连接到数据库的保存/写入?

标签 graph graph-theory jung

我正在处理图形,到目前为止,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/

相关文章:

r - 从没有 actionButton 的 visNetwork 图中获取选定的节点数据

java - Jung FXLayout 未定位顶点

python - 获得最小移动以避免方形重叠的算法

python - 有关如何将正则表达式转换为状态机图的任何指针

prolog - 如何从序言中的列表变量的所有统一选项中获得最短列表?

python - Graphviz:如何插入两个新的链接节点并最小化边交叉?

xslt - 使用 XSLT/XPath 查找有向无环图 (DAG) 最小元素(顶点)?

java - JUNG 不能显示大图?

java - 在 Jung 中修改图形后禁用重新绘制

c++ - 测试图是否是树