remove self loops in a graph
remove self loops in a graph
removeSelfLoops(g)
g |
one instance of the |
If a given graph contains self-loop(s), removeSelfLoops
removes them.
This is for those functions that cannot handle graphs with self-loops.
A new graph without self loops.
Li Long <li.long@isb-sib.ch>
con <- file(system.file("XML/dijkex.gxl",package="RBGL")) g1 <- fromGXL(con) close(con) g2 <- ugraph(g1) removeSelfLoops(g2)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.