R/graph.R
ensure_igraph.Rd
Converts a network to igraph object unless it is already one
ensure_igraph(network)
Either an OmniPath interaction data frame, or an igraph graph object.
An igraph graph object.