Searching in Diagrams