specify the edge indices for this vertex
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(vertex), | intent(inout) | :: | me | |||
| integer, | intent(in), | dimension(:) | :: | edges |
subroutine set_edge_vector(me,edges) class(vertex),intent(inout) :: me integer,dimension(:),intent(in) :: edges integer :: i !! counter if (allocated(me%edges)) then do i=1,size(edges) call me%add_edge(edges(i)) end do else allocate(me%edges(size(edges))) ! note: not checking for uniqueness here. me%edges = edges end if end subroutine set_edge_vector