def get_initial_node_posn(G):
    """get initial positions for each node based on last update (x) and total capacity (y)"""
    initial_node_pos = dict()
    for _, cap in G.degree(weight='capacity'):
        initial_node_pos[_] = float(G.nodes[_]['last_update']), float(cap)
    return initial_node_pos