rgraphvisualizationsocial-networkinggephi

Is it possible to separate a bi-directional edge in gephi?


I have imported a GraphML file I built in R into Gephi. The file contains a list of edges from 1 node to another. Nodes that point to each other are combined into 1 bi-directional edge. Is it possible to separate the edges? (Gephi forum seems to be 404)

Example:

Gephi is turning this into 1 edge of weight 3.

I would like to show 2 edges:

If Gephi can't do this, do you know of another program (Or R package?) that can?


Solution

  • Using igraph for example:

    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)
    

    enter image description here