NetworkX: Network Analysis with Python
networkx : Network Analysis with Python Petko Georgiev (special thanks to Anastasios Noulas and Salvatore Scellato). Computer Laboratory, University of Cambridge February 2014. Outline 1. Introduction to networkx . 2. Getting started with Python and networkx . 3. Basic Network Analysis 4. Writing your own code 5. Ready for your own Analysis ! 2. 1. Introduction to networkx . 3. Introduction: networks are everywhere . Social networks Mobile phone networks Vehicular flows Web pages/citations Internet routing How can we analyse these networks? Python + networkx . 4. Introduction: why Python ? Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasises code readability + - Clear syntax Can be slow Multiple programming paradigms Beware when you are Dynamic typing analysing very large networks Strong on-line community Rich documentation Numerous libraries Expressive features Fast prototyping 5. Introduction: Python 's Holy Trinity Click Python 's primary library NumPy is an extension to Matplotlib is the for mathematical and include multidimensional primary plotting library statistical computing.
•NetworkX takes advantage of Python dictionaries to store node and edge measures. The dict type is a data structure that represents a key-value mapping. # Keys and values can be of any data type >>> fruit_dict = {'apple': 1, 'orange': [0.12, 0.02], 42: True} # Can retrieve the keys and values as Python lists (vector) >>> fruit_dict.keys()
Download NetworkX: Network Analysis with Python
Information
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document: