如何使用JGrapht在Java中制作图形? [英] How to make a graph in Java using JGrapht?
问题描述
伙计们!我有一篇论文,我将要使用JGrapht(从Internet下载).
我已经有一个图(逻辑上).我的问题是我想以物理方式显示该图(因为用户可以在Form内JScrollPane中存储的JPanel中看到该图.我无法发布代码段,因为我们的程序有点机密(甚至是其代码的一部分) )
Sooo请大家帮我实现该目标(显示图表)..
我曾尝试从互联网上搜索,但不幸的是,我没有找到答案.
要显示至少1个顶点的示例代码... PLSSSSSSSSSSSSSSSSSSSSSS:(((
Guys! I have a thesis and I am about to use JGrapht (downloaded from the internet.)
I have already a graph (logically). My problem is that I want to display that graph physically (as in the users can see the graph within a JPanel stored in a JScrollPane inside my Form. I cant post my code snippet because our program is kinda confidential (even a part of its code)
Sooo pls guys, help me how to achieve that (dispplaying a graph)..
I''ve tried searching from the internet but unfortunately, I failed to locate an answer for this.
A sampple code of at least 1 vertex to be display will do... PLSSSSSSSSSSSSSSSSSSSS :((
推荐答案
检查此链接
JgraphT在GitHub上 [ ^ ]
使用JGraph的JGraphT可视化 [ ^ ]
Check this links
JgraphT On GitHub[^]
JGraphT visualization using JGraph[^]
这篇关于如何使用JGrapht在Java中制作图形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!