Coerce graph input.
as.edge_list(graph)
graph
A matrix, data.frame or graph object.
Edge list matrix.