specify the edge indices for this vertex
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vertex), | intent(inout) | :: | me | |||
integer(kind=ip), | intent(in), | dimension(:) | :: | edges | ||
character(len=*), | intent(in), | optional, | dimension(:) | :: | label | |
character(len=*), | intent(in), | optional, | dimension(:) | :: | attributes |
other attributes when saving as a diagraph. |
class(*), | intent(in), | optional | :: | metadata |
optional user-defined metadata |
subroutine set_edge_vector_vector(me,edges,label,attributes,metadata) class(vertex),intent(inout) :: me integer(ip),dimension(:),intent(in) :: edges character(len=*),dimension(:),intent(in),optional :: label character(len=*),dimension(:),intent(in),optional :: attributes !! other attributes when !! saving as a diagraph. class(*),intent(in),optional :: metadata !! optional user-defined metadata ! elemental assignment: me%edges = edge(ivertex=edges,label=label,& attributes=attributes,metadata=metadata) call sort_ascending(me%edges) end subroutine set_edge_vector_vector