applyGraphFilters: Filter out graph vertices and edges from graph object that...

Description Usage Arguments Value Note

View source: R/networkGraphs.R

Description

This function removes isolate vertices, multiple edges between vertices and or vertex edge loops from a graph.

Usage

1
applyGraphFilters(g, isolates = TRUE, multi_edge = TRUE, loops_edge = TRUE)

Arguments

g

igraph graph object.

isolates

Logical. Include isolate vertices in graph. Default is TRUE.

multi_edge

Logical. Include multiple edges between vertices in graph. Default is TRUE.

loops_edge

Logical. Include vertex edge loops in graph. Default is TRUE.

Value

An igraph graph object.

Note

Removing multiple edges or edge loops from a graph will simplify it and remove other edge attributes.


Manmit1Singh/visnetwork documentation built on Dec. 17, 2021, 2:18 a.m.