There is a large body of literature regarding using network metrics (e.g. degree) for predicting defects. Something I'm running into is that a lot of my code is event-driven, so I have a large number of functions which aren't actually called by any other functions per se (they are instead just attached to UI events).
I'm looking for references on how to handle this. I think I could for example claim that these functions have in-degree one (since they are called by one place in the UI) but I'm not sure how effective that will be.