And fmt
This commit is contained in:
parent
debc7996ee
commit
bbae5ef63f
34 changed files with 956 additions and 886 deletions
projects/datalog
|
|
@ -9,17 +9,17 @@ from uuid import uuid4 as uuid
|
|||
|
||||
|
||||
with open("graph.dtl", "w") as f:
|
||||
nodes = []
|
||||
nodes = []
|
||||
|
||||
# Generate 10k edges
|
||||
for i in range(10000):
|
||||
if nodes:
|
||||
from_node = choice(nodes)
|
||||
else:
|
||||
from_node = uuid()
|
||||
# Generate 10k edges
|
||||
for i in range(10000):
|
||||
if nodes:
|
||||
from_node = choice(nodes)
|
||||
else:
|
||||
from_node = uuid()
|
||||
|
||||
to_node = uuid()
|
||||
to_node = uuid()
|
||||
|
||||
nodes.append(to_node)
|
||||
nodes.append(to_node)
|
||||
|
||||
f.write(f"edge({str(from_node)!r}, {str(to_node)!r}).\n")
|
||||
f.write(f"edge({str(from_node)!r}, {str(to_node)!r}).\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue