for edgelist_from_sparse6(), a list of the same length as its input of two-column edgelist matrices. The matrix has a gorder attribute storing the number of vertices in the graph.
for igraph_from_sparse6(), a list of 'igraph' objects
for network_from_sparse6(), a list of 'network' objects
Examples
elm <- structure(c(1,1,2,2,4,4,5,6,9,10,7,8,4,8,6,8,8,5,4,6), .Dim = c(10L,2L))s6 <- as_sparse6(elm, n =10)# To edgelist matrix -------------------------------------------------------edgelist_from_sparse6(s6)# To igraph object ---------------------------------------------------------if(requireNamespace("igraph", quietly=TRUE)){ igraph_from_sparse6(s6)}# To network object --------------------------------------------------------if(requireNamespace("network", quietly=TRUE)){ network_from_sparse6(s6)}
See Also
as_sparse6() for encoding network data objects as 'sparse6' symbols.