Force directed algorithm updated