edgelist, a data frame from {base} R or tibble from {tibble}
igraph, from the {igraph} package
network, from the {network} package
tbl_graph, from the {tidygraph} package
Returns
All to_ functions return an object of the same class as that provided. So passing it an igraph object will return an igraph object and passing it a network object will return a network object, with certain modifications as outlined for each function.
Details
Not all functions have methods available for all object classes. Below are the currently implemented S3 methods:
data.frame
igraph
matrix
network
tbl_graph
to_acyclic
1
1
1
1
1
to_anti
1
1
1
1
1
to_reciprocated
1
1
1
1
1
to_redirected
1
1
1
1
1
Functions
to_redirected(): Returns an object that has any edge direction transposed, or flipped, so that senders become receivers and receivers become senders. This essentially has no effect on undirected networks or reciprocated ties.
to_reciprocated(): Returns an object where all ties are reciprocated.