type: boolean
default: false

If we’re sizing nodes by a binary attribute, by default nodes with a value of True will be big and nodes with a value of False will be small, but if we want to, we can flip that.

showing:

from webweb import Web

# Instantiate webweb object
web = Web([[0, 1], [1, 2], [2, 3], [3, 4], [4, 5]], display={
    'metadata' : {
        'isHappy' : {
            'values' : [True, False, False, True, True, False],
        }

    }
})

# use the 'isHappy' attribute to size nodes
web.display.sizeBy = 'isHappy'

# invert the sizes used for `False` and `True` (make `False` big and `True` small)
web.display.invertBinarySizes = True

# show the visualization
web.show()
{
    "display": {
        "invertBinarySizes": true,
        "metadata": {
            "isHappy": {
                "values": [
                    true,
                    false,
                    false,
                    true,
                    true,
                    false
                ]
            }
        },
        "sizeBy": "isHappy"
    },
    "networks": {
        "webweb": {
            "layers": [
                {
                    "edgeList": [
                        [
                            0,
                            1
                        ],
                        [
                            1,
                            2
                        ],
                        [
                            2,
                            3
                        ],
                        [
                            3,
                            4
                        ],
                        [
                            4,
                            5
                        ]
                    ],
                    "metadata": null,
                    "nodes": {}
                }
            ]
        }
    },
    "title": "webweb"
}