Updated graph.py and made vector.py even nicer to read!