One idea
A graph is just nodes plus edges. Most interview graph problems ask one of three things: can I reach it, what is the shortest unweighted path, or what order is valid.
When it is a graph
Use a graph when items connect to other items in no fixed parent-child shape. Think friends in a college app, cities connected by trains, courses with prerequisites, or UPI transactions between accounts.
If each item has at most one parent, it may be a tree. If each item can connect to many others both ways or one way, think graph.