set info about a vertex in a dag.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(dag), | intent(inout) | :: | me | |||
| integer, | intent(in) | :: | ivertex |
vertex number |
||
| character(len=*), | intent(in), | optional | :: | label |
if a label is not set, then the integer vertex number is used. |
|
| character(len=*), | intent(in), | optional | :: | attributes |
other attributes when saving as a diagraph. |
subroutine dag_set_vertex_info(me,ivertex,label,attributes) class(dag),intent(inout) :: me integer,intent(in) :: ivertex !! vertex number character(len=*),intent(in),optional :: label !! if a label is not set, !! then the integer vertex !! number is used. character(len=*),intent(in),optional :: attributes !! other attributes when !! saving as a diagraph. if (present(label)) then me%vertices(ivertex)%label = label else ! just use the vertex number me%vertices(ivertex)%label = integer_to_string(ivertex) end if if (present(attributes)) then me%vertices(ivertex)%attributes = attributes end if end subroutine dag_set_vertex_info