fix bug in area calculation for fruchterman_reingold function