For an object of class regmed, create edges for a graph object that can be used for plots, or for creating models input to lavaan function sem