My final aim would be an undirected edgelist of this kind:
Per a network of 3 components, full connected, one with 1 node, one with 2 nodes, one with 3 nodes:
There would be 6 nodes, but since the first component is made only of 1 node, node1 has no edges.
tibble(from = c(2,4,4,5),
to = (3,5,6,6)
)
But the number of components may higher then 3, let's say 30. The average number of edges within component would be ruled after rpois(30,1)+1.
In tidygraph, the function to create a complete graph would be create_complete, and in theory I could just keep generating complete graph and binding their edgelist. But in that case I would have a problem of naming the edges, and I could miss the unconnected nodes.