Import multigraph into Gephi from GML format

2019-08-02 11:19发布

I use NetworkX to create a set of nodes and edges and export them into GML format so that I can view them on Gephi 0.9.1 version. When I import the following GML:

graph [
  multigraph 1
  directed 0
  node [
    id 0
    label 1
  ]
  node [
    id 1
    label 2
  ]
  edge [
    source 0
    target 1
    key "rel2"
  ]
  edge [
    source 0
    target 1
    key "rel1"
  ]
]

Gephi shows the following popup: Import multigraph into gephi

It said Multi Graph: no while in the GML it is stated multigraph 1. Gephi automatically merges the edges, and sets the weight to 2, as below:

Weight = 2

How can I configure Gephi to read a multigraph? Should I change my GML or any settings in Gephi? Or it is a bug?

1条回答
smile是对你的礼貌
2楼-- · 2019-08-02 11:37

How can I configure gephi to read multigraph?

Parallel edges can not be displayed by Gephi (will be merged unconditionally).

查看更多
登录 后发表回答