add_self_loops Interface

interface
private module subroutine add_self_loops(this, indices, weight, features)

Arguments

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

Parent. Instance of the graph structure.

integer, intent(in), optional, dimension(:) :: indices

Indices of the vertices to which self-loops are added.

real(kind=real32), intent(in), optional :: weight

Weight of the self-loop. Default is 1.0.

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

Feature vector of the self-loop. Default is empty.

Description

Interface for adding self-loops to the graph.