add_vertex Interface

interface
private module subroutine add_vertex(this, vertex, feature, id, update_adjacency)

Arguments

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

Parent. Instance of the graph structure.

type(vertex_type), intent(in), optional :: vertex

Vertex to be added.

real(kind=real32), intent(in), optional, dimension(:) :: feature

Feature vector of the vertex.

integer, intent(in), optional :: id

Identifier of the vertex.

logical, intent(in), optional :: update_adjacency

Boolean whether to update the adjacency matrix. Default is True.

Description

Interface for adding a vertex to the graph.