Code now creates and searches through graph