webweb’ll guess whether you’ve given it an edge list or adjacency matrix.

showing:

from webweb import Web

# make an unweighted adjacency matrix
adjacency_matrix = [
    [0, 1, 0, 0],
    [1, 0, 1, 0],
    [0, 1, 0, 1],
    [0, 0, 1, 0],
]

# if you give webweb a matrix with fewer than 4 nodes, it'll think it's an edge
# list unless you tell it what's what like so: 
# web = Web(adjacency_matrix, adjacency_type='matrix')
web = Web(adjacency_matrix)

# show the visualization
web.show()
% make an unweighted adjacency matrix
adjacency_matrix = [...
    0, 1, 0, 0;...
    1, 0, 1, 0;...
    0, 1, 0, 1;...
    0, 0, 1, 0;...
];

% call webweb
webweb(adjacency_matrix);
{
    "display": {},
    "networks": {
        "webweb": {
            "layers": [
                {
                    "edgeList": [
                        [
                            1,
                            0,
                            1
                        ],
                        [
                            2,
                            1,
                            1
                        ],
                        [
                            3,
                            2,
                            1
                        ]
                    ],
                    "metadata": null,
                    "nodes": {}
                }
            ]
        }
    },
    "title": "webweb"
}