adjacent list graph finished