The Mathematics of Finite Networks