Generate a graph with no edges

create_empty_graph(n_vertices, directed = TRUE, graph = c("igraph", "network"))

Arguments

n_vertices

numeric, number of vertices

directed

logical, whether to create a directed graph

graph

character, the type of graph to be generated: igraph or network

Value

a graph of class network or igraph

Details

Generate a graph with no edges, either as a igraph or network object.