libSBNW
 All Classes Namespaces Files Functions Variables Typedefs Macros Modules Pages
autolayoutc_api.h
1 /*== SAGITTARIUS =====================================================================
2  * Copyright (c) 2012, Jesse K Medley
3  * All rights reserved.
4 
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  * Redistributions of source code must retain the above copyright
8  notice, this list of conditions and the following disclaimer.
9  * Redistributions in binary form must reproduce the above copyright
10  notice, this list of conditions and the following disclaimer in the
11  documentation and/or other materials provided with the distribution.
12  * Neither the name of The University of Washington nor the
13  names of its contributors may be used to endorse or promote products
14  derived from this software without specific prior written permission.
15 
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE
20  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  */
27 
28 //== FILEDOC =========================================================================
29 
34 //== BEGINNING OF CODE ===============================================================
35 
36 #ifndef __GRAPHFAB_AUTOLAYOUT_H_
37 #define __GRAPHFAB_AUTOLAYOUT_H_
38 
39 //== INCLUDES ========================================================================
40 
42 #include "graphfab/sbml/autolayoutSBML.h"
43 #include "graphfab/sbml/layout.h"
44 #include "graphfab/layout/fr.h"
45 
46 #endif
47 
48 
50 // *
51 // * \section intro_sec Introduction
52 // *
53 // * libSBNW is a SBML compliant layout generation program.
54 // *
55 //
56 // Example:
57 //
58 // \code
59 //
60 // #include "autolayoutc_api.h"
61 //
62 // //...
63 //
64 // // type to store layout info
65 // gf_layoutInfo* l;
66 //
67 //
68 // // load the model
69 // gf_SBMLModel* mod = gf_loadSBMLbuf(buf);
70 //
71 //
72 // // options for layout algo
73 // fr_options opt;
74 //
75 //
76 // // read layout info from the model
77 // l = gf_processLayout(mod);
78 //
79 //
80 // // randomize node positions
81 // gf_randomizeLayout(l);
82 //
83 // // do layout algo
84 // opt.k = 20.;
85 // opt.boundary = 1;
86 // opt.mag = 0;
87 // opt.grav = 0.;
88 // opt.baryx = opt.baryy = 500.;
89 // opt.autobary = 1;
90 // gf_doLayoutAlgorithm(opt, l);
91 //
92 // // save layout information to new SBML file
93 // gf_writeSBMLwithLayout(outfile, mod, l);
94 //
95 //
96 // // run destructors on the model
97 // gf_freeSBMLModel(mod);
98 //
99 //
100 // // run destructors on the layout
101 // gf_freeLayoutInfo(l);
102 //
103 // \endcode
104 //
105 // * \section install_sec Installation
106 // *
107 // * Installation documentation is provided at https://github.com/0u812/sbnw.
108 
109 
110 // \defgroup C_API All C Methods
111 
112 //
113 //*/
114 //
Fruchterman-Reingold algorithm.
First file included.
SBML layout interface in C.