This document discusses network theory and network analysis using NetworkX. It begins with definitions of networks and graphs. Networks can be represented mathematically as graphs consisting of vertices and edges. NetworkX is introduced as a tool for representing networks as graphs and analyzing their properties. Key network measures discussed include degree, mean degree, total degree, and density. Formulas are provided for calculating these network metrics from the adjacency matrix.