Import multigraph into Gephi from GML format

空扰寡人 提交于 2019-12-11 04:32:03

问题


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:

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:

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:


How can I configure gephi to read multigraph?

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



来源:https://stackoverflow.com/questions/45771256/import-multigraph-into-gephi-from-gml-format

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!