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
net_*() functions always relate to the overall graph or network, usually returning a scalar. net_dims() returns an integer of the number of nodes in a one-mode network, or two integers representing the number of nodes in each nodeset in the case of a two-mode network. net_*_attributes() returns a string vector with the names of all node or tie attributes in the network.