从GML格式将多图导入Gephi [英] Import multigraph into Gephi from GML format

查看:863
本文介绍了从GML格式将多图导入Gephi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用NetworkX创建一组节点和边线并将其导出为GML格式,以便可以在Gephi 0.9.1版本上查看它们.当我导入以下GML时:

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显示以下弹出窗口:

Gephi shows the following popup:

表示Multi Graph: no,而在GML中表示为multigraph 1. Gephi自动合并边缘,并将权重设置为2,如下所示:

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:

如何配置Gephi来读取多图?我应该在Gephi中更改我的GML或任何设置吗?还是一个错误?

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

推荐答案

如何配置gephi来读取多图?

How can I configure gephi to read multigraph?

Gephi无法显示平行边缘(

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

这篇关于从GML格式将多图导入Gephi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆