# Initialize network with 25 female and 75 male
nw <- network.initialize(100, bipartite=25)
# Set persistent IDs using the default F/M prefix
nw <- init.pids(nw)
nw %v% 'vertex.names'
# Use another prefix combination
nw <- init.pids(nw, c('A', 'B'))
nw %v% 'vertex.names'
Run the code above in your browser using DataLab