def get_house_conn_gen_load(graph, node):
    """
    Get generation capacity/ peak load of neighboring house connected to main
    branch

    Parameters
    ----------
    graph : :networkx:`NetworkX Graph Obj< >`
        Directed graph
    node : graph node
        Node of the main branch of LV grid

    Returns
    -------
    :any:`list`
        A list containing two items
        
        # peak load of connected house branch
        # generation capacity of connected generators
    """
    generation = 0
    peak_load = 0

    for cus_1 in graph.successors(node):
        for cus_2 in graph.successors(cus_1):
            if not isinstance(cus_2, list):
                cus_2 = [cus_2]
            generation += sum([gen.capacity for gen in cus_2
                          if isinstance(gen, GeneratorDing0)])
            peak_load += sum([load.peak_load for load in cus_2
                          if isinstance(load, LVLoadDing0)])

    return [peak_load, generation]
Get generation capacity/ peak load of neighboring house connected to main
    branch

    Parameters
    ----------
    graph : :networkx:`NetworkX Graph Obj< >`
        Directed graph
    node : graph node
        Node of the main branch of LV grid

    Returns
    -------
    :any:`list`
        A list containing two items
        
        # peak load of connected house branch
        # generation capacity of connected generators