create_graph: Create empty graph

View source: R/create_graph.R

create_graphR Documentation

Create empty graph

Description

Create empty graph

Usage

create_graph(directed = TRUE)

Arguments

directed

create directed graph

Details

Internally the graph is always stored as a directed graph. The option to specify that the graph is undirected has mainly effect when adding edges: when the edge A->B is added, the edge B->A is also added automatically.

Value

An object of type chickenwire which is a graph. In this case an empty graph to which edges and vertices can be added using add_edges and add_vertices. See those functions for examples.


djvanderlaan/chickenwire-r documentation built on July 19, 2022, 1:16 a.m.