model_directed_graph: Create a directed graph model

model_directed_graphR Documentation

Create a directed graph model

Description

Create a directed graph model

Usage

model_directed_graph(edgelist, is_bipartite, color, aggregate_duplicate = TRUE)

Arguments

edgelist

a 2-column data.table containing named columns 'from' and 'to' in any order.

is_bipartite

boolean specifying if network is bipartite: TRUE or FALSE

color

a character vector of length 1 or 2 specifying the hexacolor

aggregate_duplicate

If duplicated rows are encoutered, define a weight column which counts them

Value

a named list list(nodes,edgelist).


sailuh/kaiaulu documentation built on Dec. 10, 2024, 3:14 a.m.