Загрузка данных
<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="315" y="250" width="190" height="45" as="geometry" />
</mxCell>
<!-- 5. Тело цикла: P = P * ((m^3 - 8)/(m - 4)) -->
<mxCell id="calc_p" value="P = P · ((m<sup>3</sup> - 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="290" y="340" width="240" 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="440" 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="520" 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>
<!-- Петля возврата: из calc_p обратно наверх перед шестиугольником -->
<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="405" />
<mxPoint x="200" y="405" />
<mxPoint x="200" y="235" />
</Array>
</mxGeometry>
</mxCell>
<!-- Выход из цикла: Нет (вправо и в обход на вывод) -->
<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="600" y="272.5" />
<mxPoint x="600" y="460" />
</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>