Interface for the constructor of the network type.
Constructor for the network type. It initializes the number of nodes and edges, and allocates memory for the nodes and edges arrays. @param net The network object to be initialized. @param num_nodes The number of nodes in the network. @param num_edges The number of edges in the network.
Note
This subroutine allocates memory for the nodes and edges arrays based on the provided sizes.
Note
The arrays are allocated with the sizes specified by num_nodes and num_edges.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i4), | intent(in) | :: | num_nodes | |||
integer(kind=i4), | intent(in) | :: | num_edges |