lib/measures/tbd/resources/model.rb
##
# Validates if directed edges are closed
#
# @return [Bool] Returns true if closed
Validates if directed edges are closed
Validates if directed edges are closed
def closed?
      n = @directed_edges.size
      return false if n < 3
      return @directed_edges[n-1].v1.id == @directed_edges[0].v0.id
    end
def closed? n = @directed_edges . size return false if n < 3 return @directed_edges [ n - 1 ] . v1 . id == @directed_edges [ 0 ] . v0 . id end
Validates if directed edges are closed
Validates if directed edges are closed
Returns true if closed
Returns true if closed
Bool