Graphical Scanning of Diagrams, a Spatial Relations Analyzer