Gephi sees multiple edges between nodes as parallel, even though they have different time intervals

Issue #23 new
Gorkem Bostanci created an issue

I am using Gephi version 0.82, R version 3.1.2 and rgexf version 0.14.3.11

I have created a dynamic gexf file using R-package rgexf. Gephi identifies the time format used in the gexf file. However, when I try to open it, I get the warning "Parallel edges are not supported yet..." (even when I make sure the start and end dates of edges do not coincide) and all the edge weights for different time periods are combined into the first period's edge. How can I ensure that Gephi recognizes the output from R? Here's the code I use in R

library(igraph)    
library(XML)
library(Rook)
library(rgexf)

year=2013

nodes_ini <- read.csv("network labels.csv")  
edges_ini <- read.csv("network edges dynamic3.csv")

nodes_ini <- as.matrix(nodes_ini[])
edges_ini <- as.matrix(edges_ini[])

edges <- edges_ini[,1:2]
nodes <- nodes_ini[,1:2]
edges <- data.frame(edges)
nodes <- data.frame(nodes)

edgeweight <- edges_ini[,3]
edgeweight <- as.matrix(edgeweight)
nodesatt <-nodes_ini[,3:9]
nodesatt <- as.matrix(nodesatt)
nodesize <- nodesatt[,(2014-year)]
nodesize <- as.matrix(as.numeric(nodesize))

edgetimes <- as.matrix(edges_ini[,4:5])
edgetimesdate1 <- as.Date(edgetimes[,1], "%Y-%m-%d")
edgetimesdate2 <- as.Date(edgetimes[,2], "%Y-%m-%d")
edgetimesdate11 <- data.frame(edgetimesdate1)
edgetimesdate22 <- data.frame(edgetimesdate2)
edgetimesdate <- cbind(edgetimesdate11, edgetimesdate22)



write.gexf(nodes,edges,edgesWeight = edgeweight,tFormat = "date",edgeDynamic = edgetimesdate,nodesVizAtt = list(size=nodesize),defaultedgetype="directed",output="C:/Users/gorkem/Desktop/exercise/gephi/rgexf/first3.gexf")

Comments (1)

  1. Log in to comment