(alpha, beta, alpha_dict, beta_dict)
helper function for parsing relationships.
    
    arguments:
        alpha: string, the first item in the relationship
        beta:  string, the second item in the relationship
        alpha_dict: dict, the data structure for storing items of the same type as alpha
        beta_dict:  dict, the data structure for storing items of the same type as beta
helper function for parsing relationships.
    
    arguments:
        alpha: string, the first item in the relationship
        beta:  string, the second item in the relationship
        alpha_dict: dict, the data structure for storing items of the same type as alpha
        beta_dict:  dict, the data structure for storing items of the same type as beta
helper function for parsing relationships . arguments : alpha : string the first item in the relationship beta : string the second item in the relationship alpha_dict : dict the data structure for storing items of the same type as alpha beta_dict : dict the data structure for storing items of the same type as beta
def add_link(alpha, beta, alpha_dict, beta_dict):
    """helper function for parsing relationships.
    
    arguments:
        alpha: string, the first item in the relationship
        beta:  string, the second item in the relationship
        alpha_dict: dict, the data structure for storing items of the same type as alpha
        beta_dict:  dict, the data structure for storing items of the same type as beta
    """
    
    if alpha not in alpha_dict:
        alpha_dict[alpha]=[]
    if beta not in beta_dict:
        beta_dict[beta]=[]
    if alpha not in beta_dict[beta]:
        beta_dict[beta].append(alpha)
    if beta not in alpha_dict[alpha]:
        alpha_dict[alpha].append(beta)
def add_link ( alpha , beta , alpha_dict , beta_dict ) : if alpha not in alpha_dict : alpha_dict [ alpha ] = [ ] if beta not in beta_dict : beta_dict [ beta ] = [ ] if alpha not in beta_dict [ beta ] : beta_dict [ beta ] . append ( alpha ) if beta not in alpha_dict [ alpha ] : alpha_dict [ alpha ] . append ( beta )