implemented graph and network classes

Also implemented:
- max flow
- min cut
- bfs