# Create a random, directed graph with 50 nodes
# and 75 edges
random_graph_directed <-
create_random_graph(
n = 50,
m = 75,
directed = TRUE)
# Create a random, undirected graph that's
# fully connected
random_graph_undirected <-
create_random_graph(
n = 30,
m = 30,
fully_connected = TRUE)
# Create a directed graph with a seed set so that
# it's reproducible
directed_graph <-
create_random_graph(
n = 15,
m = 34,
set_seed = 50)
# Create a directed, random graph with a supplied
# set of node IDs
random_directed_graph_letters <-
create_random_graph(
n = 10,
m = 20,
directed = TRUE,
node_id = LETTERS)
Run the code above in your browser using DataLab