def test_directed_degree_sequence():
    # Test a range of valid directed degree sequences
    n, r = 100, 10
    p = r / 1.0
    for i in range(r):
        G = nx.erdos_renyi_graph(n,p*(i+1),None,True)
        din = (d for n, d in G.in_degree())
        dout = (d for n, d in G.out_degree())
        assert_true(nx.is_digraphical(din, dout))
dataset/ETHPy150Open networkx/networkx/networkx/algorithms/tests/test_graphical.py/test_directed_degree_sequence/swapped operands of `/`