Hey,
I’ve got a figure and I’ve added 2 traces: a nodes trace and an edges trace. I have a function that when given a node returns the networkx subgraph view of nodes contained within its scope (as I have a scope parameter that is used to identify nesting of nodes within the graph).
I’ve visualized the network graph as a scatter plot with dictionaries defining the coloration, shape, and scale of the components.
Now I’m trying to figure out how to get my custom buttons I’ve created to select or update my traces or figure data, such that the plot changes to showcase either the entire graph or a given subgraph. I don’t mind dynamically constructing the data for each subgraph ahead of time if necessary. Any help is appreciated.
I’d copy some of my code over but I’m on an air gapped system (it’s a big hassle). Thank you.