rmSelfLoops {BioNet} | R Documentation |
The function removes self-loops, edges that start and end in the same node, from the network.
rmSelfLoops(network)
network |
A graph object, either in graphNEL or igraph format. |
The graph with the removed edges.
Marcus Dittrich
graph <- makeNetwork(c("a","b","c","d","e","a"), c("b","c","d","e","e","e")) graph2 <- rmSelfLoops(graph) edges(graph) edges(graph2)