deleteMultipleEdges: Delete multiple edges of a graph

Description Usage Arguments Value Examples

View source: R/rewiring.R

Description

Delete multiple edges in the graph if any, and print message if wanted. Messages can be useful to monitor an iterative rewiring process for example.

Usage

1
deleteMultipleEdges(g, verbose = FALSE)

Arguments

g

An igraph object

verbose

Wether or not to print a message if multiple edges are deleted. (default: FALSE).

Value

An igraph object without any multiple edges.

Examples

1
2
3
4
5
library(igraph)
g = generateSupplyNet()
vij = sample(V(g), 2)
g = add_edges(g, c(vij, vij))
g = deleteMultipleEdges(g, verbose=TRUE)

MiloMonnier/supplynet documentation built on Feb. 16, 2021, 8:03 p.m.