Add names to graphs