Moved reusable graph functions into a library graph.py, started a cyber
attack simulation, fixed a problem with cc_visited that was causing a
long running time.