Is there a limit to the number of traces?

I’ve got a network graph (scatter plot) where I can select to plot the whole graph or subgraphs where nodes can be nested inside other nodes. I accomplish this by adding a trace that includes the particular nodes of the subgraph and a second trace for the particular edges of the subgraph. I then toggle the visibility of the traces using buttons to select the subgraph.

I’ve now realized that plotly does not accept lists of line widths or colors when constructing my edge trace. Is it necessary to now create a separate custom trace for every single edge in my network graph so that I am able to account for the various edge width, color, and subgraph visibility combinations? This seems egregious but I don’t see a better solution.

If that’s the case, is there a theoretical limit to the number of traces I an add to my graph? Currently I’d have 1 trace per subgraph with the nodes included in it, and then 1 trace for every single edge.