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

然後,您可以使用排序和分區設置應用於某些顏色/尺寸取決於所提供的屬性。