Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(tree_t), | intent(inout) | :: | self | |||
integer, | intent(in) | :: | parent | |||
integer, | intent(in) | :: | child |
pure subroutine tree_graph__connect_right(self, parent, child) implicit none class(tree_t), intent(inout) :: self integer, intent(in) :: parent, child if (parent /= INVALID_INDEX) self%nodes(parent)%right_i = child if (child /= INVALID_INDEX) self%nodes(child)%parent_i = parent end subroutine tree_graph__connect_right