Generative Structural Analysis