View source: R/orca_interface.R
simplify_graph | R Documentation |
Takes a igraph graph object and makes the requested subset of the following simplifications in the following order: 1. Makes the graph undirected 2. Removes loops (where both endpoints of an edge are the same vertex) 3. Removes multiple edges (i.e. ensuring only one edge exists for each pair of endpoints) 4. Removes isolated vertices (i.e. vertices with no edges after the previous alterations)
simplify_graph( graph, as_undirected = TRUE, remove_loops = TRUE, remove_multiple = TRUE, remove_isolates = TRUE )
graph |
An graph or list of graphs in igraph format |
as_undirected |
If TRUE make graph edges undirected |
remove_loops |
If TRUE, remove edgeds that connect a vertex to itself |
remove_multiple |
If TRUE remove multiple edges connencting the same pair of vertices |
remove_isolates |
If TRUE, remove vertices with no edges after the previous alterations have been made |
A simplified igraph graph object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.