Add an edge to a dag.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(dag), | intent(inout) | :: | me | |||
integer(kind=ip), | intent(in) | :: | ivertex |
vertex number |
||
integer(kind=ip), | intent(in) | :: | iedge |
the vertex to connect to |
||
character(len=*), | intent(in), | optional | :: | label |
edge label |
|
character(len=*), | intent(in), | optional | :: | attributes |
other attributes when saving as a diagraph. |
|
class(*), | intent(in), | optional | :: | metadata |
optional user-defined metadata |
subroutine dag_add_edge(me,ivertex,iedge,label,attributes,metadata) class(dag),intent(inout) :: me integer(ip),intent(in) :: ivertex !! vertex number integer(ip),intent(in) :: iedge !! the vertex to connect to `ivertex` character(len=*),intent(in),optional :: label !! edge label character(len=*),intent(in),optional :: attributes !! other attributes when !! saving as a diagraph. class(*),intent(in),optional :: metadata !! optional user-defined metadata call me%vertices(ivertex)%set_edges(iedge,& label=label,& attributes=attributes,& metadata=metadata) end subroutine dag_add_edge