This defines a basic network and some basic network algorithms like finding shortest paths and cycles.