Finish implemeting graphs