parameters: (self, connections=None, checkJunctions=False)
docstring: true if this edge has no incoming or no outgoing connections (except turnarounds)
             If connections is given, only those connections are considered
docstring_summary: true if this edge has no incoming or no outgoing connections (except turnarounds)
             If connections is given, only those connections are considered
docstring_tokens: true if this edge has no incoming or no outgoing connections ( except turnarounds ) If connections is given only those connections are considered
function: def is_fringe(self, connections=None, checkJunctions=False):
          """true if this edge has no incoming or no outgoing connections (except turnarounds)
             If connections is given, only those connections are considered"""
          if connections is None:
              return (self.is_fringe(self._incoming, checkJunctions) or
                      self.is_fringe(self._outgoing, checkJunctions))
          else:
              if checkJunctions:
                  assert(connections is not None)
                  if connections == self._incoming:
                      return self.getFromNode().getFringe() is not None
                  elif connections == self._outgoing:
                      return self.getToNode().getFringe() is not None
              cons = sum([c for c in connections.values()], [])
              return len([c for c in cons if c._direction != Connection.LINKDIR_TURN]) == 0
function_tokens: def is_fringe ( self , connections = None , checkJunctions = False ) : if connections is None : return ( self . is_fringe ( self . _incoming , checkJunctions ) or self . is_fringe ( self . _outgoing , checkJunctions ) ) else : if checkJunctions : assert ( connections is not None ) if connections == self . _incoming : return self . getFromNode ( ) . getFringe ( ) is not None elif connections == self . _outgoing : return self . getToNode ( ) . getFringe ( ) is not None cons = sum ( [ c for c in connections . values ( ) ] , [ ] ) return len ( [ c for c in cons if c . _direction != Connection . LINKDIR_TURN ] ) == 0