| Did you know ... | Search Documentation: |
| graphical->layout |
network (see graphical<-network)
of connected graphicals (see graphical->connect),
this method tries to give the entire graph of connected graphicals a
sensible layout. Don't expect too much: this algorithm does not know
anything about what your graph is representing.
The algorithm is based on [Eades:84]. It defines a number of springs between connected and non-connected nodes. The algorithm does a Monte-Carlo simulation using these springs.
The parameters are:
<-ideal_length.0 Force
(outwards) between any pair of non-connected graphicals<-visible
is often used to confine the graph to the visible part of a window
object.<-network.
If provided explicitely only the provided graphicals are affected.
Notably providing all nodes in a window and using window<-visible
for the area argument will layout each network and spread the separated
networks over the window.
Connections between objects are found using graphical<-connected,
which may be refined to deal with application specific situations.
Visible annimation can be achieved calling this predicate in a loop
using a low number of iterations each time and force a display update
using
graphical->flush between each iteration.
Defaults: See description
Bugs: # Gets slow if there are many nodes (> 50).
->connect
@see class tree @see graphical<-network
@see topic Connections