def generate_dummy_graph(network):
    """Generate a dummy graph to feed to the FIAS libraries.
    It adds the "pos" attribute and removes the 380 kV duplicate
    buses when the buses have been split, so that all load and generation
    is attached to the 220kV bus."""
    
    graph = pypsa.descriptors.OrderedGraph()
    
    graph.add_nodes_from([bus for bus in network.buses.index if bus not in buses_to_split])
    
    #add positions to graph for voronoi cell computation
    for node in graph.nodes():
        graph.node[node]["pos"] = np.array(network.buses.loc[node,["x","y"]],dtype=float)
    
    return graph
Generate a dummy graph to feed to the FIAS libraries.
    It adds the "pos" attribute and removes the 380 kV duplicate
    buses when the buses have been split, so that all load and generation
    is attached to the 220kV bus.