From the sound of it, you are reading Costello's book.
In point particle QFT the stable graphs you are referring to can be thought of as the paths of particles through spacetime the vertices are where the particles interact.
Now in the Deligne-Mumford case you can think of taking the stable graph and "thickening" it and replacing the particles with little loops of string to obtain a Riemann surface. The interactions then can be thought of as corresponding to the joining and splitting of these little loops of string.
It happens to be the case that in bosonic string theory one is in this second "thickened" case and the symmetries of the theory are such that in doing the path integral one ends up integrating over the Deligne-Mumford spaces of such Riemann surfaces. Thus, the Deligne-Mumford stratification is of use there. Furthermore, you can relate Deligne-Mumford spaces of such Riemann surfaces to point particle QFT by simply taking the limit of infinite string tension.