if the edge list we pass has multiple edges between two nodes, the weight of the edge webweb creates between those two nodes will be the sum of those edges’ weights.

showing:

from webweb import Web

# edge weights are the third element in the edge
edge_list = [[0, 1, .1], [1, 2, .5], [2, 3, 1], [3, 4, 2]]

# create the web
web = Web(edge_list)

# we'll scale edge widths by weight to create a visual difference
web.display.scaleLinkWidth = True

# show the visualization
web.show()
from webweb import Web
import networkx as nx

G = nx.Graph()
G.add_edges_from([[0, 1, {'weight' : .1}], [1, 2, {'weight' : .5}], [2, 3, {'weight' : 1}], [3, 4, {'weight' : 2}]])

# create the web
web = Web(nx_G=G)

# scale edge widths by weight so we can see a visual difference
web.display.scaleLinkWidth = True

# show the visualization
web.show()
% make a matrix of weighted edges
% edge weights are the third element in the edge
edge_list = [...
    1, 2, .1;... 
    2, 3, .5;... 
    3, 4, 1;... 
    4, 5, 2;...
];

% call webweb
webweb(edge_list);

%% [OPTIONAL] Set default: show weighted edges.
% To set a default parameter, we need to creat a webweb struct
% and place our parameter setting in it.
% Place this edgeList into a network within the webweb struct
ww.networks.network.edgeList = edge_list;
% Set scaleLinkWidth to True. 
ww.display.scaleLinkWidth = 'True';
% call webweb
webweb(ww);
{
    "display": {
        "scaleLinkWidth": true
    },
    "networks": {
        "webweb": {
            "layers": [
                {
                    "edgeList": [
                        [
                            0,
                            1,
                            0.1
                        ],
                        [
                            1,
                            2,
                            0.5
                        ],
                        [
                            2,
                            3,
                            1
                        ],
                        [
                            3,
                            4,
                            2
                        ]
                    ],
                    "metadata": null,
                    "nodes": {}
                }
            ]
        }
    },
    "title": "webweb"
}