Graph implemented. Needs testing