Learn R Programming

DiagrammeR (version 0.8.1)

create_random_graph: Create a randomized graph

Description

Create a graph of up to n nodes with randomized edge assignments.

Usage

create_random_graph(n, m)

Arguments

n
the number of nodes to use in the random graph.
m
the number of edges to use in the random graph.

Examples

Run this code
# Create a random graph with 50 nodes
graph_random <- create_random_graph(50)

Run the code above in your browser using DataLab