Switch to NewAuto

This commit is contained in:
Ivan Daniluk 2018-07-13 17:13:19 +02:00
parent 76160eda21
commit 8384db9092
No known key found for this signature in database
GPG Key ID: 97ED33CE024E1DBF
1 changed files with 1 additions and 4 deletions

View File

@ -26,10 +26,7 @@ func main() {
log.Printf("Loaded propagation data: %d timestamps\n", len(plog.Timestamps))
log.Printf("Initializing layout...")
repelling := layout.NewGravityForce(-100.0, layout.EachOnEach)
springs := layout.NewSpringForce(0.02, 10.0, layout.ForEachLink)
drag := layout.NewDragForce(0.1, layout.ForEachNode)
l := layout.New(data, repelling, springs, drag)
l := layout.NewAuto(data)
ws := NewWSServer(l)
if *iterations == 0 {