File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,10 @@ G.add_edge(5, 4)
59
59
print (cp.mec_size(list (G.edges)))
60
60
61
61
sampler = cp.MecSampler(list (G.edges))
62
- for _i in range (5 ):
62
+ for _ in range (5 ):
63
63
print (nx.DiGraph(sampler.sample_dag()))
64
64
65
- for _i in range (5 ):
65
+ for _ in range (5 ):
66
66
print (sampler.sample_order())
67
67
```
68
68
Original file line number Diff line number Diff line change 25
25
G .add_edge (4 , 5 )
26
26
G .add_edge (5 , 4 )
27
27
print (cp .mec_size (list (G .edges )))
28
- sample_dags = cp .mec_sample_dags (list (G .edges ), 5 )
29
- for dag in sample_dags :
30
- print (nx .DiGraph (dag ))
31
- sample_orders = cp .mec_sample_orders (list (G .edges ), 5 )
32
- for order in sample_orders :
33
- print (order )
28
+
29
+ sampler = cp .MecSampler (list (G .edges ))
30
+ for _ in range (5 ):
31
+ print (nx .DiGraph (sampler .sample_dag ()))
32
+
33
+ for _ in range (5 ):
34
+ print (sampler .sample_order ())
You can’t perform that action at this time.
0 commit comments