'How to find time and space complexity of trees, graph and backtracking related problems?

I always have a hard time finding out the time and space complexity of graph and tree related problems specially if there's recursion involved, what are some tips and points that I can keep in mind while calculating complexities of such problems?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source