vec.to.mat function

Creating objects for network models