NetworkX

Create Undirected Grahp

Examining Elements

Removing Elements

Accessing Edges and Neighbors

Add Attributes

Directed Graph

Multigraphs

Analyzing Graphs

Drawing Graphs

Reference