使用Gephi可视化组织和个人的数据结构? [英] Data structure for visualizing organizations and individuals using Gephi?
问题描述
使用Gephi,我希望可视化不同组织的成员是如何相关的。
我的资料基本上由组织及其成员组成:
Using Gep I'd like to visualize how members of different organizations are related.
My source material basically consists of a list of organizations and their members:
Organization 1
Individual 1
Individual 2
Individual 3
Individual 4
Organization 2
Individual 5
Individual 1
Individual 6
Individual 7
有时一个人会出现在不同的组织(即本例中的个人1)。
Sometimes an individual shows up in different organizations (i.e. Individual 1 in this example).
问题:
1)我应该如何将这些信息转化为边缘,使组织内部和组织之间的关系成为明确吗?
Questions:
1) How should I convert this information into edges so that the relationship between and within organizations becomes evident?
2)我还有一些关于组织(类型)和个人(性别)的元信息,我想在可视化中使用(影响布局,颜色等)。相对于边缘我该如何安排?
2) I also have some meta-information about organizations (type) and individuals (sex), that I'd like to use in the visualization (to affect the layout, color etc.). How do I arrange this in relation to the edges?
ps。我不是一个CIA代理。
ps. I'm not a CIA agent.
推荐答案
1)这里是一个GML文件,设置上面。
1) here is a GML-file with the setting above.
graph
[
Creator Gephi
directed 0
node
[
id "1955"
label "Org1"
graphics
[
fill "#ff0000"
]
]
node
[
id "1956"
label "Org2"
graphics
[
fill "#ff0000"
]
]
node
[
id "1957"
label "Person1"
]
node
[
id "1958"
label "Person2"
]
node
[
id "1959"
label "Person3"
]
node
[
id "1960"
label "Person4"
]
node
[
id "1961"
label "Person5"
]
node
[
id "1962"
label "Person6"
]
node
[
id "1963"
label "Person7"
]
edge
[
id "54566"
source "1955"
target "1957"
value 1.0
]
edge
[
id "54567"
source "1955"
target "1958"
value 1.0
]
edge
[
id "54568"
source "1955"
target "1959"
value 1.0
]
edge
[
id "54569"
source "1955"
target "1960"
value 1.0
]
edge
[
id "54571"
source "1956"
target "1957"
value 1.0
]
edge
[
id "54570"
source "1956"
target "1961"
value 1.0
]
edge
[
id "54572"
source "1956"
target "1962"
value 1.0
]
edge
[
id "54573"
source "1956"
target "1963"
value 1.0
]
]
如果你认为是更容易,您可以使用两列源和目标创建一个excel文件,并将其导出为csv,然后将其导入gephi:
If you think it is easier, you can make a excelfile with two columns, "source" and "target" and export as a csv, and then import it into gephi:
Org1;Person1;
Org1;Person2;
Org1;Person3;
Org1;Person4;
Org2;Person1;
Org2;Person5;
Org2;Person6;
Org2;Person7;
然后应用布局算法进行布局。开始尝试使用Yifan Hu或Force Atlas。
then apply a layout algoritm to make the layout. Start trying with Yifan Hu or Force Atlas.
2)如果要添加元信息,请使用上述GML格式,并包含所需的数据: p>
2) If you want to add meta information, use the GML-format mentioned above and include the data you want:
node
[
id "1"
label "Person1"
sex "Male"
]
然后您可以使用排名和分区设置来应用某些颜色/大小取决于所提供的属性。
You can then use ranking and partition-settings to apply certain colors/sizes depending on the attributes provided.
这篇关于使用Gephi可视化组织和个人的数据结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!