1

使用Gephi,我想要想象一下不同组织的成员是如何相关的。
我的源材料基本上由组织及其成员的列表的:使用Gephi可视化组织和个人的数据结构?

Organization 1 
Individual 1 
Individual 2 
Individual 3 
Individual 4 

Organization 2 
Individual 5 
Individual 1 
Individual 6 
Individual 7 

有时个体在不同的组织显示出来(即个人1在这个例子中)。

问题:
1)我应该如何转换这些信息为边缘,以便之间和组织内部的关系变得明显?

2)我也有一些关于组织(类型)和个人(性别)的元信息,我想在可视化中使用(影响布局,颜色等)。我如何安排这些相关的边缘?

ps。我是而不是 CIA的代理人。

回答

2

1)这是一个GML文件,具有上述设置。

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 
    ] 
] 

如果你认为这是比较容易,你可以做一个excelfile有两列,“源”和“目标”,并导出为CSV格式,然后将其导入到gephi:

Org1;Person1; 
Org1;Person2; 
Org1;Person3; 
Org1;Person4; 
Org2;Person1; 
Org2;Person5; 
Org2;Person6; 
Org2;Person7; 

然后应用布局算法进行布局。开始尝试与一帆胡或武力图集。

2)如果你想添加元数据信息,使用上面提到的GML格式,并包括数据你想要的:

node 
    [ 
    id "1" 
    label "Person1" 
    sex "Male" 
    ] 

然后,您可以使用排序和分区设置应用于某些颜色/尺寸取决于所提供的属性。