Does an edge attribute exist?

edge_attr_exists(.net, .edge_attr)

Arguments

.net

network of class igraph or network.

.edge_attr

character scalar corresponding to the name of a edge attribute in .net.

Value

logical scalar

Examples

edge_attr_exists(.net = florence_business_ig, .edge_attr = "edge_type")
#> [1] TRUE
florence_business_nw %>% edge_attr_exists(.edge_attr = "fake attr")
#> [1] FALSE