JGraphT的介绍不是说的很清楚了吗?
简单说JGraph主要做呈现。JGraphT侧重数据模型和算法。
JGraphT and JGraph
JGraphT and JGraph are two different libraries which are optimized for different purposes.
JGraphT:
* is optimized for data models and algorithms.
* has a clean and simple API that is designed for safe "auto-complete programming".
* is designed to support high-performance and large-scale applications.
* can handle graphs with a few millions vertices and edges.
* provides visualizations by using JGraph (demo).
JGraph:
* is a swing-style graph component optimized for visualization and GUI-based editing.
* has a more complicated API with non-trivial casting and swing dependency; requires fluency with its documentation.
* is slower and consumes more resources.
The two libraries are complementary and can be used together. You will probably find JGraphT easier to start with and more eligible for your data model. When you need graph visualizations, you can add JGraph to do them for you.