diagram function

Helper functions for drawing path model diagrams