type: positive non-zero integer
synonyms: c
default: 60
we can change how much nodes repulse each other.
the greater the value for charge
, the more nodes will repel each other.
showing:
from webweb import Web
# Instantiate webweb object
web = Web([[0, 1], [1, 2], [2, 3], [3, 4], [4, 5]])
# could also set web.display.c
web.display.charge = 150
# show the visualization
web.show()
{
"display": {
"charge": 150
},
"networks": {
"webweb": {
"layers": [
{
"edgeList": [
[
0,
1
],
[
1,
2
],
[
2,
3
],
[
3,
4
],
[
4,
5
]
],
"metadata": null,
"nodes": {}
}
]
}
},
"title": "webweb"
}