type: string
webweb will by default display the first network we add to it, but if we’d like to show a particular one we can do so by setting the display.networkName
property to name of the network we’d like to show.
showing:
from webweb import Web
# Instantiate webweb object
web = Web(title='web1', adjacency=[[0, 1]])
web.networks.web2(adjacency=[[0, 1], [1, 2]])
web.display.networkName = "web2"
# show the visualization
web.show()
{
"display": {
"networkName": "web2"
},
"networks": {
"web1": {
"layers": [
{
"edgeList": [
[
0,
1
]
],
"metadata": null,
"nodes": {}
}
]
},
"web2": {
"layers": [
{
"edgeList": [
[
0,
1
],
[
1,
2
]
],
"metadata": null,
"nodes": {}
}
]
}
},
"title": "web1"
}