rmSelfLoops {BioNet}R Documentation

Remove self-loops in a graph

Description

The function removes self-loops, edges that start and end in the same node, from the network.

Usage

rmSelfLoops(network)

Arguments

network

A graph object, either in graphNEL or igraph format.

Value

The graph with the removed edges.

Author(s)

Marcus Dittrich

Examples

graph <- makeNetwork(c("a","b","c","d","e","a"), c("b","c","d","e","e","e"))
graph2 <- rmSelfLoops(graph)
edges(graph)
edges(graph2)

[Package BioNet version 1.53.0 Index]