type: boolean
default: false
we can scale link opacities by their weight by setting the scaleLinkOpacity
parameter.
showing:
from webweb import Web
# Instantiate webweb object
web = Web([[0, 1, 5], [1, 2, 20], [2, 3, .2], [3, 4, 70], [4, 5, 100]])
web.display.scaleLinkOpacity = True
# show the visualization
web.show()
{
"display": {
"scaleLinkOpacity": true
},
"networks": {
"webweb": {
"layers": [
{
"edgeList": [
[
0,
1,
5
],
[
1,
2,
20
],
[
2,
3,
0.2
],
[
3,
4,
70
],
[
4,
5,
100
]
],
"metadata": null,
"nodes": {}
}
]
}
},
"title": "webweb"
}