corneto.io.sbml_model_to_graph#
- corneto.io.sbml_model_to_graph(model)#
Convert parsed SBML records to a CORNETO metabolic hypergraph.
Raw SBML species and reaction identifiers are preserved. Boundary and constant species are kept in the graph’s
sbml_excluded_speciesmetadata and excluded from mass-balance vertices. The active FBC objective, when present, is stored asfba_objectivein the graph metadata. Pass that mapping explicitly asobjectiveswhen buildingcorneto.methods.fba.MultiSampleFBA.- Parameters:
model (MetabolicModel) – Parsed records returned by
read_sbml.- Returns:
A graph with one hyperedge per SBML reaction.
- Return type: