A simple network class for representing and traversing networks