{
  "name": "grafo_bfs",
  "savedAt": "2026-07-19T23:30:00.000000",
  "blocks": [
    {"def": {"template": "{0} = {1}", "category": "variables", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
     "values": ["nodos", "{\"A\": (-120, 90), \"B\": (0, 130), \"C\": (120, 90), \"D\": (-90, -90), \"E\": (90, -90), \"F\": (0, -10)}"], "children": []},

    {"def": {"template": "{0} = {1}", "category": "variables", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
     "values": ["vecinos", "{\"A\": [\"B\", \"D\"], \"B\": [\"A\", \"C\", \"F\"], \"C\": [\"B\", \"E\"], \"D\": [\"A\", \"F\"], \"E\": [\"C\", \"F\"], \"F\": [\"B\", \"D\", \"E\"]}"], "children": []},

    {"def": {"template": "{0} = {1}", "category": "variables", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
     "values": ["aristas", "[(\"A\",\"B\"), (\"B\",\"C\"), (\"A\",\"D\"), (\"B\",\"F\"), (\"C\",\"E\"), (\"D\",\"F\"), (\"E\",\"F\")]"], "children": []},

    {"def": {"template": "{0} = Turtle()", "category": "tortuga", "slots": [{"options": []}], "isContainer": false, "isReporter": false},
     "values": ["t1"], "children": []},

    {"def": {"template": "{0}.hideturtle()", "category": "tortuga", "slots": [{"options": []}], "isContainer": false, "isReporter": false},
     "values": ["t1"], "children": []},

    {"def": {"template": "{0}.pensize({1})", "category": "tortuga", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
     "values": ["t1", "2"], "children": []},

    {"def": {"template": "{0}.color({1})", "category": "tortuga", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
     "values": ["t1", "\"gray\""], "children": []},

    {"def": {"template": "for {0} in {1}:", "category": "control", "slots": [{"options": []}, {"options": []}], "isContainer": true, "isReporter": false},
     "values": ["a, b", "aristas"],
     "children": [
        {"def": {"template": "{0} = {1}", "category": "variables", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
         "values": ["pa", "nodos[a]"], "children": []},
        {"def": {"template": "{0} = {1}", "category": "variables", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
         "values": ["pb", "nodos[b]"], "children": []},
        {"def": {"template": "{0}.penup()", "category": "tortuga", "slots": [{"options": []}], "isContainer": false, "isReporter": false},
         "values": ["t1"], "children": []},
        {"def": {"template": "{0}.goto({1}, {2})", "category": "tortuga", "slots": [{"options": []}, {"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
         "values": ["t1", "pa[0]", "pa[1]"], "children": []},
        {"def": {"template": "{0}.pendown()", "category": "tortuga", "slots": [{"options": []}], "isContainer": false, "isReporter": false},
         "values": ["t1"], "children": []},
        {"def": {"template": "{0}.goto({1}, {2})", "category": "tortuga", "slots": [{"options": []}, {"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
         "values": ["t1", "pb[0]", "pb[1]"], "children": []}
     ]},

    {"def": {"template": "{0}.color({1})", "category": "tortuga", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
     "values": ["t1", "\"#3B6FD6\""], "children": []},

    {"def": {"template": "for {0} in {1}:", "category": "control", "slots": [{"options": []}, {"options": []}], "isContainer": true, "isReporter": false},
     "values": ["nombre", "nodos"],
     "children": [
        {"def": {"template": "{0} = {1}", "category": "variables", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
         "values": ["pos", "nodos[nombre]"], "children": []},
        {"def": {"template": "{0}.penup()", "category": "tortuga", "slots": [{"options": []}], "isContainer": false, "isReporter": false},
         "values": ["t1"], "children": []},
        {"def": {"template": "{0}.goto({1}, {2})", "category": "tortuga", "slots": [{"options": []}, {"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
         "values": ["t1", "pos[0]", "pos[1]"], "children": []},
        {"def": {"template": "{0}.dot({1})", "category": "tortuga", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
         "values": ["t1", "16"], "children": []},
        {"def": {"template": "{0}.write({1})", "category": "tortuga", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
         "values": ["t1", "nombre"], "children": []}
     ]},

    {"def": {"template": "{0} = {1}", "category": "variables", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
     "values": ["visitados", "{\"A\": True}"], "children": []},

    {"def": {"template": "{0} = {1}", "category": "variables", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
     "values": ["cola", "[\"A\"]"], "children": []},

    {"def": {"template": "{0} = {1}", "category": "variables", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
     "values": ["orden", "[]"], "children": []},

    {"def": {"template": "while {0}:", "category": "control", "slots": [{"options": []}], "isContainer": true, "isReporter": false},
     "values": ["len(cola) > 0"],
     "children": [
        {"def": {"template": "{0} = {1}", "category": "variables", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
         "values": ["actual", "cola[0]"], "children": []},
        {"def": {"template": "{0} = {1}", "category": "variables", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
         "values": ["cola", "cola[1:]"], "children": []},
        {"def": {"template": "{0}.append({1})", "category": "variables", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
         "values": ["orden", "actual"], "children": []},
        {"def": {"template": "for {0} in {1}:", "category": "control", "slots": [{"options": []}, {"options": []}], "isContainer": true, "isReporter": false},
         "values": ["vecino", "vecinos[actual]"],
         "children": [
            {"def": {"template": "if {0}:", "category": "control", "slots": [{"options": []}], "isContainer": true, "isReporter": false},
             "values": ["vecino not in visitados"],
             "children": [
                {"def": {"template": "{0}[{1}] = {2}", "category": "variables", "slots": [{"options": []}, {"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
                 "values": ["visitados", "vecino", "True"], "children": []},
                {"def": {"template": "{0}.append({1})", "category": "variables", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
                 "values": ["cola", "vecino"], "children": []}
             ]}
         ]}
     ]},

    {"def": {"template": "{0}.color({1})", "category": "tortuga", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
     "values": ["t1", "\"red\""], "children": []},

    {"def": {"template": "{0} = {1}", "category": "variables", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
     "values": ["paso", "0"], "children": []},

    {"def": {"template": "for {0} in {1}:", "category": "control", "slots": [{"options": []}, {"options": []}], "isContainer": true, "isReporter": false},
     "values": ["nombre", "orden"],
     "children": [
        {"def": {"template": "{0} = {1}", "category": "variables", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
         "values": ["paso", "paso + 1"], "children": []},
        {"def": {"template": "{0} = {1}", "category": "variables", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
         "values": ["pos", "nodos[nombre]"], "children": []},
        {"def": {"template": "{0}.penup()", "category": "tortuga", "slots": [{"options": []}], "isContainer": false, "isReporter": false},
         "values": ["t1"], "children": []},
        {"def": {"template": "{0}.goto({1}, {2})", "category": "tortuga", "slots": [{"options": []}, {"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
         "values": ["t1", "pos[0]", "pos[1]"], "children": []},
        {"def": {"template": "{0}.dot({1})", "category": "tortuga", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
         "values": ["t1", "18"], "children": []},
        {"def": {"template": "{0}.write({1})", "category": "tortuga", "slots": [{"options": []}, {"options": []}], "isContainer": false, "isReporter": false},
         "values": ["t1", "str(paso)"], "children": []},
        {"def": {"template": "print({0})", "category": "salida", "slots": [{"options": []}], "isContainer": false, "isReporter": false},
         "values": ["nombre"], "children": []}
     ]}
  ]
}
