| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(graph_type), | intent(inout) | :: | this |
Parent. Instance of the graph structure. |
||
| type(edge_type), | intent(in), | optional | :: | edge |
Edge to be added. |
|
| integer, | intent(in), | optional, | dimension(2) | :: | index |
Vertex indices of the edge. |
| real(kind=real32), | intent(in), | optional | :: | weight |
Weight of the edge. |
|
| real(kind=real32), | intent(in), | optional, | dimension(:) | :: | feature |
Feature vector of the edge. |
| logical, | intent(in), | optional | :: | directed |
Boolean whether the edge is directed. Default is False. |
|
| 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. |
Interface for adding an edge to the graph.