Export a graph to a Simple Interaction Format file
export_to_sif(g, sif_file = "", edge_label = "relates_to")
Returns the path to the exported file, invisibly
library("igraph")
g <- make_full_graph(5) %du% make_full_graph(5) %du% make_full_graph(5)
g <- add_edges(g, c(1, 6, 1, 11, 6, 11))
export_to_sif(g, tempfile())
#> Saving the file to /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T//RtmpJHFQHt/file11b8a74953545
#> Done!