set_num_vertices Interface

interface
private module subroutine set_num_vertices(this, num_vertices, num_vertex_features)

Arguments

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

Parent. Instance of the graph structure.

integer, intent(in) :: num_vertices

Number of vertices in the graph.

integer, intent(in), optional :: num_vertex_features

Number of features for the vertices. Default is 0.

Description

Interface for setting the number of vertices of the graph.

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