This function removes reaction nodes keeping them as edge attributes. The resulting network contains metabolite nodes only, where edges indicate that reaction conversions.
makeMetaboliteNetwork(graph)
A reaction network.
Other Network processing methods:
expandComplexes()
,
makeReactionNetwork()
,
reindexNetwork()
,
rmSmallCompounds()
,
simplifyReactionNetwork()
,
vertexDeleteReconnect()
## Conver a metabolic network to a metbolite network.
data(ex_sbml) # bipartite metabolic network of Carbohydrate metabolism.
mgraph <- makeMetaboliteNetwork(ex_sbml)
#> This graph was created by an old(er) igraph version.
#> ℹ Call `igraph::upgrade_graph()` on it to use with the current igraph version.
#> For now we convert it on the fly...