Networks are sets of nodes connected by edges. Whole networks include all nodes within a boundary, while ego networks focus on a single node and its neighbors. Networks can be directed or undirected, weighted or unweighted. Network analysis characterizes structure, connectivity, communities and how structure influences processes like information diffusion. Tools like NetworkX (Python) and Gephi analyze network measures and structure at both the node and network level to understand real-world networks.