我正在尝试使用gephi(http://gephi.org/)生成朋友地图。目前,我的数据存储在一个类似于:
的字典中{id1 : [friend_id, friend_id2 etc],
id2 : [friend_id3],
id3 : ... }
gephi需要的数据结构是什么样的图形 https://gephi.org/wp-content/themes/gephi/images/screenshots/layout2-mini.png
非常感谢!
答案 0 :(得分:0)
您可以选择多个。最简单的方法是使用Excel图表并将其另存为CSV。 在第一列中放入person1id,在column2中放置person2id:
person1id person2id
Adam Maria
Maria Ben
Ben Adam
您还可以使用以下任何格式:https://gephi.org/users/supported-graph-formats/ 从您的数据生成最简单的可能是GML或GraphML。
另请参阅此问题的答案,概述如何使用GML:Data structure for visualizing organizations and individuals using Gephi?