def compute_node_degrees(ugraph):
    """
    Returns a dictionary of degree number for 
    all nodes in the undirected graph
    """
    
    node_deg = {}
    
    # iterate over all dictionary keys to find size of 
    # adjacency list for each node
    for node in ugraph:
        node_deg[node] = len(ugraph[node])
        
    return node_deg