本文介绍了库在Google App Engine上呈现定向图形(类似于graphviz)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个Java或Python库,可以将Dot语言中的图形呈现为图像文件。问题是我需要一个可以在Google App Engine上使用的库。基本上,我正在寻找一个库,可以将有向图的文本描述转换为图的图像。



例如:



隐藏这个边界列表:

  [A,B] 
[B,C]
[A,C]
[C,D]





我在这个例子中使用了,但我知道这是不可能的使用Google App Engine。

/rel =noreferrer> Canviz 是您正在寻找的东西:它是一个用于将Graphviz图形绘制到Web浏览器画布的JavaScript库。它适用于。

要查看它在行动中,。


I am looking for a Java or Python library that can render graphs in the Dot language as image file. The problem is that I need a library that I can use on Google App Engine. Basically I am looking for a library that can convert the text description of a directed graph into an image of the graph.

For example:

Covert this edge list:

[A,B]
[B,C]
[A,C]
[C,D]

Into this image:

I used Graphviz for this example, but I know it is not possible for me to use it with Google App Engine.

解决方案

Canviz is what you are looking for: it is a JavaScript library for drawing Graphviz graphs to a web browser canvas. It works with most browsers.

To see it in action, look here.

这篇关于库在Google App Engine上呈现定向图形(类似于graphviz)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 03:40