A ring in graph theory