Try jgrapht 。 网页:
JGraphT is a free Java graph library that provides mathematical graph-theory objects and algorithms. JGraphT supports various types of graphs including:
- directed and undirected graphs.
- graphs with weighted / unweighted / labeled or any user-defined edges.
- various edge multiplicity options, including: simple-graphs, multigraphs, pseudographs.
- unmodifiable graphs - allow modules to provide "read-only" access to internal graphs.
- listenable graphs - allow external listeners to track modification events.
- subgraphs graphs that are auto-updating subgraph views on other graphs.
- all compositions of above graphs.
JGraphT虽然强大,但设计是简单和类型的安全(通过 Java学)。 例如,图表的vert可能属于任何物体。 您可以依据:Stings、URLs、XML文件等编制图表。
其他 用户报告 成功。 我仔细地第二次审查了他们的APIC,建议你开始HERE。