import json

with open("net3_arango.json") as f:
    data = json.load(f)

with open("nodes.json", "w") as f:
    json.dump(data["nodes"], f)

with open("edges.json", "w") as f:
    json.dump(data["edges"], f)

print("✔ separati nodes.json e edges.json")
