Relational models for visual understanding of graphical documents. Application to architectural drawings