将NetLogo数据导出到带有节点和边的图形 [英] Exporting NetLogo data to graph with nodes and edges

查看:531
本文介绍了将NetLogo数据导出到带有节点和边的图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在NetLogo中创建了代理(乌龟)之间的一些链接.此链接将在每个时间步更改.我的目的是将这些数据(即乌龟及其链接b/w)导出到具有顶点(乌龟)边缘(链接)的图形,可以将其作为Gephi的输入.当它与Gephi链接时,是否有可能看到图表中的netlogo中发生的更改.有人可以帮我吗.谢谢.

I have created some links between agents (turtles) in NetLogo. This links will change at each time step. My aim is to export this data (i.e., turtles and links b/w them) to graph with vertices (turtles) edges (links), which can be given as input to Gephi. Is it possible to see the changes which occurs in netlogo in the graph when it is linked with Gephi. Can someone help me out. Thanks.

推荐答案

要以Gephi可用的格式导出网络数据,我建议使用 NW扩展中的-Extension#save-graphml> nw:save-graphml 原语.这将产生一个 GraphML文件格式的文件,Gephi可以读取该文件格式.

To export your network data in a format usable by Gep I would suggest using the nw:save-graphml primitive from NetLogo's NW Extension. This will give produce a file in the GraphML file format, which Gephi can read.

我想您可以在每个时间段重新保存您的网络并覆盖您的文件,但是我不确定Gephi是否可以动态显示您的更改.而且,根据您网络的大小,它可能会很慢.

I guess you could re-save your network at each time step and overwrite your file, but I'm not sure if Gephi can display your changes dynamically. And depending on the size of your network, it might be slow.

这篇关于将NetLogo数据导出到带有节点和边的图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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