GTS Library Reference Manual |
---|
#include <gts.h> #define GTS_WGEDGE_CLASS (klass) #define GTS_WGEDGE (obj) #define GTS_IS_WGEDGE (obj) struct GtsWGEdgeClass; struct GtsWGEdge; GtsWGEdgeClass* gts_wgedge_class (void); GtsWGEdge* gts_wgedge_new (GtsWGEdgeClass *klass, GtsGNode *n1, GtsGNode *n2,gfloat weight); #define GTS_WGNODE_CLASS (klass) #define GTS_WGNODE (obj) #define GTS_IS_WGNODE (obj) struct GtsWGNodeClass; struct GtsWGNode; GtsWGNodeClass* gts_wgnode_class (void); GtsWGNode* gts_wgnode_new (GtsWGNodeClass *klass,gfloat weight); #define GTS_WGRAPH_CLASS (klass) #define GTS_WGRAPH (obj) #define GTS_IS_WGRAPH (obj) struct GtsWGraphClass; struct GtsWGraph; GtsWGraphClass* gts_wgraph_class (void);gfloat gts_wgraph_weight_max (GtsWGraph *wg);
GtsWGEdge* gts_wgedge_new (GtsWGEdgeClass *klass, GtsGNode *n1, GtsGNode *n2,gfloat weight);
klass : | |
n1 : | a GtsGNode. |
n2 : | another GtsGNode. |
weight : | the weight of the new edge. |
Returns : | a new GtsWGEdge of weight weight linking n1 and n2. |
GtsWGNode* gts_wgnode_new (GtsWGNodeClass *klass,gfloat weight);
klass : | |
weight : | the weight of the GtsWGNode to create. |
Returns : | a new GtsWGNode of weight weight. |
<<< Graph class | Progressive graph >>> |