The term ‘graph’ can refer to the structure of a network, thus graph theory is the mathematical analysis of the way a network is organized, considering the way all the nodes in a graph are connected to each other in order to understand its functions. Cantwell and Forman (1993) Landscape Ecol. 8, 4, 239 take you through the procedure, step by step.