如何在C中可视化使用igraph制作的图形? [英] How to visualize a graph made with igraph in C?
问题描述
我开始学习C语言中的igraph,我想知道如何可视化使用此库制作的图形.我已经看到,使用igraph R时,只需使用plot函数并绘制图形即可,但是如果使用C,我应该将图形打印到文件中,然后使用其他程序将其可视化吗?或者这是通常的方法? >
谢谢!
这类图形.
要绘制有向图,请尝试GraphViz( https://www.graphviz.org ).
或者,如果愿意的话,可以使用Gephi之类的工具( https://gephi.org )数据以符合其受支持格式之一的方式( https://gephi .org/users/supported-graph-formats/). GML看起来很简单.
I started to learn igraph in C and I was wondering how can I visualize a graph made with this library. I've seen that with igraph R one just use the plot function and the graph is plotted but if I use C, should I print the graph in a file and then use another program to visualize it or which is the usual way?
Thanks!
edit: This kind of graph.
To plot directed graphs try GraphViz (https://www.graphviz.org).
Alternatively you could use a tool like Gephi (https://gephi.org) if you are willing to write the data into a file in a manner compliant with one of their supported formats (https://gephi.org/users/supported-graph-formats/). GML looks pretty straight forward.
这篇关于如何在C中可视化使用igraph制作的图形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!