'Return links
sort: sort links alphabetically, preserving (src, dst) order
withKeys: return link keys
withInfo: return link info
returns: list of ( src, dst [,key, info ] )'

def links(self, sort=False, withKeys=False, withInfo=False):

    links = list(self.iterLinks(withKeys, withInfo))
    if (not sort):
        return links
    tupleSize = (3 if withKeys else 2)
    return sorted(links, key=(lambda l: naturalSeq(l[:tupleSize])))
