Use dataframe to annotate edges of an igraph

anno_edge(go, anno_tab, verbose = TRUE)

Arguments

go

metanet an igraph object

anno_tab

a dataframe using to annotate (with rowname or a name column)

verbose

logical

Value

a annotated igraph object

See also

Examples

data("c_net")
anno <- data.frame("from" = "s__Pelomonas_puraquae", "to" = "s__un_g__Rhizobium", new_atr = "new")
anno_edge(co_net, anno) -> anno_net