Kamada kawai spring layout algorithm
Hi,
I am a newbie to Boost and would like some help with implementing a program.
I want to use the Kamada Kawai spring layout algorithm and I do not know what to pass for the final parameter when calling the function. the template of the function is given below.
template
Meththa wrote:
I want to use the Kamada Kawai spring layout algorithm and I do not know what to pass for the final parameter when calling the function. the template of the function is given below.
*template*<*typename* Graph, *typename* PositionMap, *typename* WeightMap, *typename* T, *bool* EdgeOrSideLength> *bool* kamada_kawai_spring_layout(*const* Graph & g, PositionMap position, WeightMap weight, /unspecified/ edge_or_side_length); I do not understand what value needs to be given and what type for /unspecified edge_or_side_length./ // Can someone please point me in the right direction with regards to this. If you want the side of the bounding box to be of length "s", pass boost::side_length(s) If you want the "normal" edge length to be e, pass boost::edge_length(e).
- Doug
participants (2)
-
Douglas Gregor
-
Meththa