Detection of wires on electrical diagrams