是否可以在 gephi 中分离双向边?
Is it possible to separate a bi-directional edge in gephi?
我已经将我在 R 中构建的 GraphML 文件导入到 Gephi 中。该文件包含从一个节点到另一个节点的边列表。相互指向的节点组合成 1 个双向边。是否可以分离边缘? (Gephi论坛好像是404)
示例:
- 节点 A -> 节点 B
- 节点 A -> 节点 B
- 节点 B -> 节点 A
Gephi 正在将其变成权重为 3 的 1 个边。
我想显示 2 个边:
- 1 来自 A -> B,权重为 2
- 1 来自 B -> A,权重为 1。
如果 Gephi 不能做到这一点,您是否知道另一个可以做到的程序(或 R 包?)?
例如使用igraph
:
library(igraph)
graph_from_literal(A-+B, A-+B, B-+A, simplify=F) %>%
set_edge_attr("width", value = 1) %>%
simplify(edge.attr.comb = list(width="sum", "ignore")) %>%
plot(edge.curved = .5)
我已经将我在 R 中构建的 GraphML 文件导入到 Gephi 中。该文件包含从一个节点到另一个节点的边列表。相互指向的节点组合成 1 个双向边。是否可以分离边缘? (Gephi论坛好像是404)
示例:
- 节点 A -> 节点 B
- 节点 A -> 节点 B
- 节点 B -> 节点 A
Gephi 正在将其变成权重为 3 的 1 个边。
我想显示 2 个边:
- 1 来自 A -> B,权重为 2
- 1 来自 B -> A,权重为 1。
如果 Gephi 不能做到这一点,您是否知道另一个可以做到的程序(或 R 包?)?
例如使用igraph
:
library(igraph)
graph_from_literal(A-+B, A-+B, B-+A, simplify=F) %>%
set_edge_attr("width", value = 1) %>%
simplify(edge.attr.comb = list(width="sum", "ignore")) %>%
plot(edge.curved = .5)