Using stochastic methods for graph layout