通过加权动态创建力导向图
我找不到任何方法来绘制力定向图,其中边缘的权重影响其长度。
尽管 .Dot 格式的 Neato 布局引擎声称可以做到这一点,但它似乎从未真正响应我赋予它的边缘权重。
理想情况下,我想用 Javascript 来完成此操作。我一直在使用 Javascript Infovis Toolkit,但这似乎没有任何设置权重的方法。
如有任何建议,不胜感激!
I can't find any way to draw a force directed graph where the weighting of the edges affects their length.
Although the Neato layout engine for .Dot format claims to do this, it never seems to actually respond to the edge weight that I give to it.
Ideally, I'd like to do this in Javascript. I've been using the Javascript Infovis Toolkit, but this doesn't seem to have any means for setting a weighting.
Any suggestions gratefully received!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所以infovis根本不能很好地解决这个问题,我也看不到gvis是怎么回事。不过,我已经使用 cytoscape 解决了这个问题。
虽然我没有使用过它,但 cytoscape 确实有一个命令行选项,因此您可以使用它来动态创建图像。
So infovis doesn't solve this problem at all well, and I can't see what's going on with gvis either. However, I have solved this problem using cytoscape.
Although I haven't used it, cytoscape does have a command line option, so you could potentially use it to create images dynamically.