set_edges Interface

interface
private module subroutine set_edges(this, vertex_index, connected_indices)

Arguments

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

Parent. Instance of the graph structure.

integer, intent(in) :: vertex_index

Index of the vertex.

integer, intent(in), dimension(:) :: connected_indices

Indices of the connected vertices.

Description

Interface for setting the edges of the graph.

Negative indicies in connected_indices define directional edge from vertex_index to -connected_index. Positive indicies in connected_indices define undirected edge between vertex_index and connected_index.