(triangle)
return frozenset(chain(*tuple(triangle)))
Given a triangle, returns the objects included in it.
Given a triangle, returns the objects included in it.
Given a triangle returns the objects included in it .
def _triangle_objects(triangle):
        """
        Given a triangle, returns the objects included in it.
        """
        # A triangle is a frozenset of three two-element frozensets
        # (the edges).  This chains the three edges together and
        # creates a frozenset from the iterator, thus producing a
        # frozenset of objects of the triangle.
        return frozenset(chain(*tuple(triangle)))
def _triangle_objects ( triangle ) : # A triangle is a frozenset of three two-element frozensets # (the edges).  This chains the three edges together and # creates a frozenset from the iterator, thus producing a # frozenset of objects of the triangle. return frozenset ( chain ( * tuple ( triangle ) ) )