type: positive non-zero float
synonyms: g
default: 0.1

we can change the strength of the force pulling nodes to the center.

the greater the value for gravity, the more nodes will be drawn to the center.

showing:

from webweb import Web

# Instantiate webweb object
web = Web([[0, 1], [1, 2], [2, 3], [3, 4], [4, 5]])

web.display.gravity = .01

# show the visualization
web.show()
{
    "display": {
        "gravity": 0.01
    },
    "networks": {
        "webweb": {
            "layers": [
                {
                    "edgeList": [
                        [
                            0,
                            1
                        ],
                        [
                            1,
                            2
                        ],
                        [
                            2,
                            3
                        ],
                        [
                            3,
                            4
                        ],
                        [
                            4,
                            5
                        ]
                    ],
                    "metadata": null,
                    "nodes": {}
                }
            ]
        }
    },
    "title": "webweb"
}