simplify_topology: Remove all 2-degree nodes from a graph

Description Usage Arguments Value

View source: R/topology.R

Description

New edges will inherit the attributes of whatever edge originated from the head node that remains.

Usage

1
simplify_topology(graph, protected_nodes = NULL)

Arguments

graph

An undirected igraph object

protected_nodes

Indices of nodes that should NOT be removed

Value

An undirected igraph object with no 2-degree nodes


cmu-lib/simplygraph documentation built on Nov. 4, 2019, 9:09 a.m.