如何用JavaScript说明多图? [英] How to illustrate multigraphs in Javascript?

查看:43
本文介绍了如何用JavaScript说明多图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题正在寻找一种使用Javascript绘制多图的实用且简便的方法.

首先查看并使用其图像,例如,但具有绘制多图的功能.

解决方案

Cytoscape.JS支持多图,是纯Javascript,并使用新的HTML 5 Canvas来提高性能.其设计意图是通用图形可视化/操纵.

http://cytoscape.github.com/cytoscape.js/

This question is looking for a practical and easy way for drawing multigraphs using Javascript.

First of all look at this question. None of those libraries support Multigraphs (or Pseudographs ). I mean I can't generate graphs like this:

Is there any jQuery plugin (or javascript library) out there for this purpose ?

I thought i can use WolframAlpha's API and use its images, something like this:

but it have lots of problem:

  1. I can't move nodes or add remove edges interactively.

  2. Only 2000 API calls per month. Not enough.

  3. I can't produce large or intermediate graphs.

  4. They are really ugly!

Please help me if you know some javascript library in order to draw Multigraphs, or anyway to produce such graphs (something like Dracula Graph Library but with ability to draw Multigraphs).

解决方案

Cytoscape.JS supports multigraphs, is pure Javascript, and uses the new HTML 5 Canvas for performance. Its design intent is general purpose graph visualization/manipulation.

http://cytoscape.github.com/cytoscape.js/

这篇关于如何用JavaScript说明多图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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