gexf.to.igraph fails when igraph has weights

Issue #13 resolved
George Vega Yon repo owner created an issue

Must conver the edges to numbers before passing them to write.gexf

> gexf.to.igraph(grafo)
IGRAPH UNW- 4 9 -- 
+ attr: name (v/c), label (v/c), att1 (v/c), att2 (v/x), color (v/c), id (e/n),
  weight (e/c), att1 (e/x), edgesLabel (e/n), color (e/c)
> igraph.to.gexf(gexf.to.igraph(grafo))
Error in sprintf("%.1f", edges$x) : 
  invalid format '%.1f'; use format %s for character objects

Comments (1)

  1. Log in to comment