Automated structural analysis of interactive narratives