Last chance! 50% off unlimited learning
Sale ends in
# NOT RUN {
# Do not run, takes a couple of seconds
# }
# NOT RUN {
# A quite dense graph
set.seed(42)
g <- sample_gnp(100, 0.9)
ivs_size(g)
ivs(g, min=ivs_size(g))
largest_ivs(g)
# Empty graph
induced_subgraph(g, largest_ivs(g)[[1]])
length(maximal_ivs(g))
# }
Run the code above in your browser using DataLab