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)

Arguments

graph

A metabolic network.

Value

A reaction network.

Author

Ahmed Mohamed

Examples

  ## 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...