def generate_traffic_directions(nodes):
    """
    This function returns all possible traffic directions on the network topology.
    
    If the network is made up of only three nodes (e.g. A, B and C), the possible traffic directions are: AB, AC, BA, BC, CA, CB.
    If the number of nodes is N, the number of traffic directions is N*(N-1).

    Arguments:
        nodes {List} -- List of topology node names.
    
    Returns:
        [List] -- List of possible traffic directions.
    """

    # init traffic_directions
    traffic_directions = []
    
    for i in range(len(nodes)):
        for j in range(len(nodes)):
            if i != j:
                direction = nodes[i] + nodes[j]
                traffic_directions.append(direction)
    
    return traffic_directions