set_num_edges Interface

interface
private module subroutine set_num_edges(this, num_edges, num_edge_features)

Arguments

Type IntentOptional Attributes Name
class(graph_type), intent(inout) :: this

Parent. Instance of the graph structure.

integer, intent(in) :: num_edges

Number of edges in the graph.

integer, intent(in), optional :: num_edge_features

Number of features for the edges. Default is 0.

Description

Interface for setting the number of edges of the graph.

This will deallocate the existing edges and set the number of edges. New edges will be allocated but not initialised.