- const map<unsigned, Host *> &hosts = netvis.get_hosts();
- float fx = -pos.x*0.1;
- float fy = -pos.y*0.1;
- for(map<unsigned, Host *>::const_iterator i=hosts.begin(); i!=hosts.end(); ++i)
+ const map<Address, Host *> &hosts = netvis.get_hosts();
+ float center_force = (local ? 0.5 : 0.1);
+ float fx = -pos.x*center_force;
+ float fy = -pos.y*center_force;
+ for(map<Address, Host *>::const_iterator i=hosts.begin(); i!=hosts.end(); ++i)