In Microsoft Power Bi there are formulas that can be used in visualizations called measures. These measures can be used within the formulas of other measures.
As a result, a measure can have a complex interdependency on another measure. I am looking for the best search algorithm I can give a measure and then use to search the other measures to identify the dependencies.
I have made a visual of what these dependencies can look like: https://i.imgur.com/cgSNmkx.png
Any suggestions on a algorithm I can use?