set the number of vertices in the dag
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(dag), | intent(inout) | :: | me | |||
| integer, | intent(in) | :: | nvertices |
number of vertices |
subroutine dag_set_vertices(me,nvertices) class(dag),intent(inout) :: me integer,intent(in) :: nvertices !! number of vertices integer :: i me%n = nvertices allocate(me%vertices(nvertices)) me%vertices%ivertex = [(i,i=1,nvertices)] end subroutine dag_set_vertices