libSBNW
 All Classes Namespaces Files Functions Variables Typedefs Macros Modules Pages
libSBNW

Introduction

 libSBNW is a SBML compliant layout generation program.

Example:

//
// #include "autolayoutc_api.h"
//
// //...
//
// // type to store layout info
// gf_layoutInfo* l;
//
//
// // load the model
// gf_SBMLModel* mod = gf_loadSBMLbuf(buf);
//
//
// // options for layout algo
// fr_options opt;
//
//
// // read layout info from the model
// l = gf_processLayout(mod);
//
//
// // randomize node positions
// gf_randomizeLayout(l);
//
// // do layout algo
// opt.k = 20.;
// opt.boundary = 1;
// opt.mag = 0;
// opt.grav = 0.;
// opt.baryx = opt.baryy = 500.;
// opt.autobary = 1;
// gf_doLayoutAlgorithm(opt, l);
//
// // save layout information to new SBML file
// gf_writeSBMLwithLayout(outfile, mod, l);
//
//
// // run destructors on the model
// gf_freeSBMLModel(mod);
//
//
// // run destructors on the layout
// gf_freeLayoutInfo(l);
//
//

Installation

 Installation documentation is provided at https://github.com/0u812/sbnw.