You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example demonstrates how to create a random directed acyclic graph (DAG), which is useful in a number of contexts including for Git commit history.
10
+
"""
11
+
importigraphasig
12
+
importmatplotlib.pyplotasplt
13
+
importrandom
14
+
15
+
16
+
# %%
17
+
# First, we set a random seed for reproducibility
18
+
random.seed(0)
19
+
20
+
# %%
21
+
# First, we generate a random undirected graph without loops
0 commit comments