This allowed him to reformulate the problem in abstract terms ( laying the foundations of graph theory ) , eliminating all features except the list of land masses and the bridges connecting them .
This laid the foundations of graph theory .