rmSelfLoops: Remove self-loops in a graph

Description Usage Arguments Value Author(s) Examples

View source: R/Graph.R

Description

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

Usage

1
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

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

assaron/BioNet documentation built on Sept. 18, 2020, 12:02 a.m.