def get_predecessor(self, predecessor, avi_graph, vs):
    '\n        This method gets the predecessor of the object\n        :param predecessor: predecessor list\n        :param avi_graph: avi graph\n        :param vs: VS list\n        :return:\n        '
    if (len(predecessor) > 1):
        for node in predecessor:
            nodelist = [node]
            self.get_predecessor(nodelist, avi_graph, vs)
    elif len(predecessor):
        node_obj = [nod for nod in list(avi_graph.nodes().data()) if (nod[0] == predecessor[0])]
        if (node_obj and ((node_obj[0][1]['type'] == 'VS') or ('VS' in node_obj[0][1]['type']))):
            LOG.debug('Predecessor %s found', predecessor[0])
            vs.extend(predecessor)
        else:
            LOG.debug('Checked predecessor for %s', predecessor[0])
            nodelist = list(avi_graph.predecessors(predecessor[0]))
            self.get_predecessor(nodelist, avi_graph, vs)
    else:
        LOG.debug('No more predecessor')
This method gets the predecessor of the object
:param predecessor: predecessor list
:param avi_graph: avi graph
:param vs: VS list
:return:
def get_predecessor(self, predecessor, avi_graph, vs):
    '\n        This method gets the predecessor of the object\n        :param predecessor: predecessor list\n        :param avi_graph: avi graph\n        :param vs: VS list\n        :return:\n        '
    if (len(predecessor) > 1):
        for node in predecessor:
            nodelist = [node]
            self.get_predecessor(nodelist, avi_graph, vs)
    elif len(predecessor):
        node_obj = [nod for nod in list(avi_graph.nodes().data()) if (nod[0] == predecessor[0])]
        if (node_obj and ((node_obj[0][1]['type'] == 'VS') or ('VS' in node_obj[0][1]['type']))):
            LOG.debug('Predecessor %s found', predecessor[0])
            vs.extend(predecessor)
        else:
            LOG.debug('Checked predecessor for %s', predecessor[0])
            nodelist = list(avi_graph.predecessors(predecessor[0]))
            self.get_predecessor(nodelist, avi_graph, vs)
    else:
        LOG.debug('No more predecessor')