Software Search For hierarchy of control diagram