network Interface

public interface network

Interface for the constructor of the network type.


Module Procedures

private function network_new(num_nodes, num_edges) result(net)

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.

Arguments

Type IntentOptional Attributes Name
integer(kind=i4), intent(in) :: num_nodes
integer(kind=i4), intent(in) :: num_edges

Return Value type(network_t)