将带坐标的节点从CSV导入Gephi [英] Importing Nodes with Coordinates to Gephi from CSV

查看:1154
本文介绍了将带坐标的节点从CSV导入Gephi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题似乎很蠢,但我实际上找不到一个简单的解决方案。我有一个csv文件,结构如下:

This question seems pretty stupid but I actually fail to find a simple solution to this. I have a csv file that is structured like this:

0 21 34.00 34.00
1 23 35.00 25.00
2 25 45.00 65.00

第一列是节点的ID,第二列是不重要的属性。第3和第4属性应该是节点的x和y位置。
我可以将文件导入数据实验室没有问题,但我没有解释到Gephi使用x y属性作为相应的属性。所有我想实现的是Gephi将x属性设置为x属性(和y分别)的值。也可查看图片。

The first column is the node's id, the second is an unimportant attribute. The 3rd and 4th attribute are supposed to be the x and y position of the nodes. I can import the file into the Data Laboratory without problems, but I fail to explain to Gephi to use the x y attributes as the corresponding properties. All I want to achieve is that Gephi sets the x Property to the value of the x Attribute (and y respectively). Also see picture.


感谢您的帮助!

Thanks for your help!

推荐答案

OK我自己找到答案。我现在看起来很蠢:-)。在布局窗口中,您可以选择地理布局,并定义哪些列用作纬度和经度。
如果你没有GeoData,投影可能会很奇怪,但对我来说,这是很好的。

OK I have found the answer myself. I look pretty dumb right now :-). In the Layout window, you can select "Geo Layout" and define which columns are used as Latitude and Longitude. The projection might come in weird if you do not actually have GeoData, but for me, this is fine.

这篇关于将带坐标的节点从CSV导入Gephi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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