What you really want is a SGDIAGRAM procedure that will render many different types of diagrams, such as Trees, Networks,…