How graphs gave us Harry Potter