Disclaim.
This is part of the material used in the "Introductory Course to Network Ecology" which is available to be offered to postgraduation courses in Biology and Ecology - please contact me if you have interest. In this course, the students are guided to the first steps to apply network science to answer ecological questions, from theory to practice.
You may use this material freely but be aware it may be constantly updated. I am not responsabile for any possible code issues or misleadind interpretations. Yet I am happy to discuss any question regarding to it.
I am in debt with Prof. Marco Mello and Renata Muylaert for the great inspiration on the organization of this material. You may also check https://github.com/marmello77 for more on network ecology. If this is useful for you, please acknowledge the authors and use proper references.
Have fun.