added graph functionality, now showing nodes but not placed correctly