def getLinkInfo(self, l, key, default): """Attempt to retrieve the information for the given link/key combination. If not found, set to an instance of default and return it""" return get_set(self.linkInfo(l[0], l[1]), key, default)
def getNodeInfo(self, n, key, default): """Attempt to retrieve the information for the given node/key combination. If not found, set to an instance of default and return it""" return get_set(self.nodeInfo(n), key, default)