Graph Theory and Theoretical Physics