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.


graph_interaction(graph, implode = FALSE)



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


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


An interaction data frame.