Description Usage Arguments Value Author(s) See Also Examples
This function removes vertices given as vids
and connects their neighbours as
long as the shortest path beween the neighbours are below the reconnect.threshold
.
1 2 | vertexDeleteReconnect(graph, vids, reconnect.threshold = vcount(graph),
copy.attr = NULL)
|
graph |
A reaction network. |
vids |
Vertex ids to be removed. |
reconnect.threshold |
If the shortest path between vertices is larger than this threshold, they are not reconnected. |
copy.attr |
A function, or a list of functions, combine edge attributes. Edge attributes of new edges (between reconnected neighbours) are obtained by combining original edges attributes along the shortest path between reconnected neighbors. |
A modified graph.
Ahmed Mohamed
Other Network processing methods: expandComplexes
,
makeMetaboliteNetwork
,
makeReactionNetwork
,
reindexNetwork
,
rmSmallCompounds
,
simplifyReactionNetwork
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.