Input: Number of nodes
In this first we pick a random node form the given input which is the root node then we should pick another node from the given input and connect to the root node whose edge is 1 and pick another node from the input and connect to the root. This process is continued until the edges are equal to the maximum and minimum edges. In this way we pick all the nodes from the network and generate the topology.
Output: network with connected edges