我想用地理信息来想象不同组织的成员是如何联系的。
我的资料来源基本上包括一个组织及其成员的清单:
Organization 1
Individual 1
Individual 2
Individual 3
Individual 4
Organization 2
Individual 5
Individual 1
Individual 6
Individual 7有时,一个人出现在不同的组织中(例如,本例中的个人1)。
问题:
1)我应该如何将这些信息转化为边缘,以使组织之间和组织内部的关系变得明显?
2)我也有一些关于组织(类型)和个人(性别)的元信息,我想在可视化中使用这些信息(以影响布局、颜色等)。我如何安排这与边缘的关系?
ps。我不是中情局特工。
发布于 2012-05-27 09:05:23
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
]
]如果您认为这更容易,您可以使用"source“和"target”两列创建一个excelfile,并将其导出为csv,然后将其导入到gephi中:
Org1;Person1;
Org1;Person2;
Org1;Person3;
Org1;Person4;
Org2;Person1;
Org2;Person5;
Org2;Person6;
Org2;Person7;然后应用布局algoritm进行布局。开始尝试一帆胡或力地图集。
2)如果要添加元信息,请使用上述GML格式,并包括所需的数据:
node
[
id "1"
label "Person1"
sex "Male"
]然后,您可以根据所提供的属性使用排名和分区设置来应用特定的颜色/大小。
https://stackoverflow.com/questions/9592370
复制相似问题