Загрузка данных


<mxGraphModel dx="1000" dy="1200" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
  <root>
    <mxCell id="0" />
    <mxCell id="1" parent="0" />

    <!-- 1. Начало -->
    <mxCell id="start" value="Начало" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;fontStyle=1;" vertex="1" parent="1">
      <mxGeometry x="340" y="40" width="140" height="40" as="geometry" />
    </mxCell>

    <!-- 2. Ввод k -->
    <mxCell id="in_k" value="вв. k" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="330" y="110" width="160" height="40" as="geometry" />
    </mxCell>

    <!-- 3. Инициализация P := 1 -->
    <mxCell id="init_p" value="P := 1" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="340" y="180" width="140" height="35" as="geometry" />
    </mxCell>

    <!-- 4. Шестиугольник цикла -->
    <mxCell id="loop_m" value="m := 1 .. k + 2; 1" style="shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;size=0.15;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="310" y="255" width="200" height="45" as="geometry" />
    </mxCell>

    <!-- 5. Тело цикла: P := P * ((m^3 - 8) / (m - 4)) -->
    <mxCell id="calc_p" value="P := P · ((m&lt;sup&gt;3&lt;/sup&gt; - 8) / (m - 4))" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="285" y="345" width="250" height="45" as="geometry" />
    </mxCell>

    <!-- 6. Вывод P -->
    <mxCell id="out_p" value="выв. P" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="340" y="445" width="140" height="40" as="geometry" />
    </mxCell>

    <!-- 7. Конец -->
    <mxCell id="end" value="Конец" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;fontStyle=1;" vertex="1" parent="1">
      <mxGeometry x="340" y="525" width="140" height="40" as="geometry" />
    </mxCell>

    <!-- Связи (стрелки) -->
    <mxCell id="e1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="start" target="in_k">
      <mxGeometry relative="1" as="geometry" />
    </mxCell>

    <mxCell id="e2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="in_k" target="init_p">
      <mxGeometry relative="1" as="geometry" />
    </mxCell>

    <mxCell id="e3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="init_p" target="loop_m">
      <mxGeometry relative="1" as="geometry" />
    </mxCell>

    <!-- Вход в тело цикла (Да) -->
    <mxCell id="e_loop_yes" value="Да" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#047857;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="loop_m" target="calc_p">
      <mxGeometry relative="1" as="geometry" />
    </mxCell>

    <!-- Единственный выход из тела цикла: петля возврата строго наверх перед шестиугольником -->
    <mxCell id="e_loop_back" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="calc_p">
      <mxGeometry relative="1" as="geometry">
        <mxPoint x="410" y="235" as="targetPoint" />
        <Array as="points">
          <mxPoint x="410" y="410" />
          <mxPoint x="190" y="410" />
          <mxPoint x="190" y="235" />
        </Array>
      </mxGeometry>
    </mxCell>

    <!-- Выход из цикла (Нет): огибает тело цикла справа и идет на вывод P -->
    <mxCell id="e_loop_no" value="Нет" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#B91C1C;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="loop_m" target="out_p">
      <mxGeometry relative="1" as="geometry">
        <Array as="points">
          <mxPoint x="610" y="277.5" />
          <mxPoint x="610" y="465" />
        </Array>
      </mxGeometry>
    </mxCell>

    <!-- Переход от вывода к концу программы -->
    <mxCell id="e_end" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="out_p" target="end">
      <mxGeometry relative="1" as="geometry" />
    </mxCell>
  </root>
</mxGraphModel>