Skip to contents

Convert an igraph graph object to interaction data frame. This is the reverse of the operation done by thje interaction_graph function. Networks can be easily converted to igraph objects, then you can make use of all igaph methods, and at the end, get back the interactions in a data frame, along with all new edge and node attributes.

Usage

graph_interaction(graph, implode = FALSE)

Arguments

graph

An igraph graph object created formerly from an OmniPath interactions data frame.

implode

Logical: restore the original state of the list type columns by imploding them to character vectors, subitems separated by semicolons.

Value

An interaction data frame.