# NOT RUN {
#Generate a test matrix
g<-rgraph(15)
#Make it row stochastic
make.stochastic(g,mode="row")
#Make it column stochastic
make.stochastic(g,mode="col")
#(Try to) make it row-column stochastic
make.stochastic(g,mode="rowcol")
# }
Run the code above in your browser using DataLab