From Entity Relationship to XML Schema: a graph-theoretic approach
Introduction to Algorithms