A QUICK METHOD FOR COMPUTING WAGNER TREES