如何在C中可视化使用igraph制作的图形? [英] How to visualize a graph made with igraph in C?

查看:242
本文介绍了如何在C中可视化使用igraph制作的图形?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始学习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屋!

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