Auxiliary function, gives mask for matrix for directed, undirected etc.
mat2vec.ix(mat, directed, selfloops)
matrix
a boolean argument specifying whether object is directed or not.
a boolean argument specifying whether the model should incorporate selfloops.
a boolean matrix that can be used to mask adjacency matrices.
# NOT RUN { data('adj_karate') mat2vec.ix(adj_karate, FALSE, FALSE) # }
Run the code above in your browser using DataLab