I can use Graph[] to manually draw the shape of a very simple set of interconnected layers (for instance, a small neural network):
Graph[{1 -> 3, 2 -> 3, 1 -> 5, 2 -> 5, 1 -> 4, 2 -> 4, 3 -> 6, 4 -> 6, 5 -> 6}]
produces:
How can I programmatically generate the list of connections from a list of layer sizes? For instance, the above would be: layerCounts = { 2, 3, 1} and I'm hoping for a function Dense that might be invoked like Graph[Dense[layerCounts]]




