How to get NetworkX metrics to update with Plotly Dash callbacks

I have a networkx/plotly/dash project I have been working on. My network updates with a dropdown in dash via callbacks that rerun my code. I was wondering if anyone knows how to get networkX metrics to update when the function is called after each dropdown selection (ie. nx.average_clustering() etc.). Thanks!!!