Construct a network from edge_list dataframe

c_net_from_edgelist(
  edgelist,
  vertex_df = NULL,
  direct = FALSE,
  e_type = NULL,
  e_class = NULL
)

Arguments

edgelist

first is source, second is target, others are annotation

vertex_df

vertex metadata data.frame

direct

logical

e_type

set e_type

e_class

set e_class

Value

metanet

See also

Examples

data(edgelist)
edge_net <- c_net_from_edgelist(arc_count, vertex_df = arc_taxonomy)
#> No 'from' and 'to' in the colnames(edgelist), use the first two columns as the 'from' and 'to'.
edge_net <- c_net_set(edge_net, vertex_class = "Phylum", edge_width = "n")
c_net_plot(edge_net)