JGraphx:如何避免彼此增加边? [英] JGraphx : How to avoid adding edges over each other?

查看:79
本文介绍了JGraphx:如何避免彼此增加边?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jGraphx开发应用程序,我想知道如何避免在彼此之间创建边缘.

I'm working on an application using jGraphx and I want to know how to avoid creating edges over each other.

当我在2个vetexes之间添加2条边缘时,这2条边缘高于其他..

When I add 2 edges between 2 vetexes, the 2 edges are above eatch other..

谢谢.

这就是我得到的,它们是2个边缘,标签之间分别是:"dist = 1"和"dist = 4".

EDIT : That's what I get, those are 2 edges with the labels : "dist = 1" and "dist = 4" above each other.

推荐答案

可以轻松完成:

    new mxCircleLayout(graph).execute(graph.getDefaultParent());
    new mxParallelEdgeLayout(graph).execute(graph.getDefaultParent());

这篇关于JGraphx:如何避免彼此增加边?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆