makeOneWay: Eliminating reversable reaction

Description Usage Arguments Value

Description

Reversable transactions cancel one another out in the incidence matrix. This compares both reactions (forward and backward) associated with the reversable transaction, and removes the one that has the longerst path to the output vertex. If both paths are equal in length, the forward transaction is selected.

Usage

1
makeOneWay(g, v, output)

Arguments

g

A graph object representing a petri-net style reaction network, with vertex attributes: "name", "type" ('reaction' or 'product'), and "reaction_number" (a character, not a numeric).

v

a vertex name.

Value

g modified such that either v1, v2 is removed, or neither is removed.


robertness/pathflow documentation built on May 27, 2019, 10:33 a.m.