powered by
removeSelfLoops(g)
graph
removeSelfLoops
con <- file(system.file("XML/dijkex.gxl",package="RBGL")) g1 <- fromGXL(con) close(con) g2 <- ugraph(g1) removeSelfLoops(g2)
Run the code above in your browser using DataLab