type: boolean
default: false
we can show all node names by setting the showNodeNames
parameter.
showing:
from webweb import Web
web = Web(
adjacency=[[0, 1], [1, 2]],
display={
'nodes' : {
0 : {
'name' : 'Huberg',
},
1 : {
'name' : 'Pierot',
},
2 : {
'name' : 'Slartibertfast',
},
},
},
)
web.display.showNodeNames = True
# show the visualization
web.show()
{
"display": {
"nodes": {
"0": {
"name": "Huberg"
},
"1": {
"name": "Pierot"
},
"2": {
"name": "Slartibertfast"
}
},
"showNodeNames": true
},
"networks": {
"webweb": {
"layers": [
{
"edgeList": [
[
0,
1
],
[
1,
2
]
],
"metadata": null,
"nodes": {}
}
]
}
},
"title": "webweb"
}