The hippocampus as a cognitive graph