Загрузка данных
<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="340" y="110" width="140" 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. Заголовок цикла for (ГОСТ-шестиугольник) -->
<mxCell id="loop_for" 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="250" width="200" height="45" as="geometry" />
</mxCell>
<!-- 5. Условие проверки деления на ноль: m = 4 -->
<mxCell id="cond1" value="m = 4" style="rhombus;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
<mxGeometry x="340" y="330" width="140" height="55" as="geometry" />
</mxCell>
<!-- 6. Ветка Да (Ошибка): Вывод сообщения -->
<mxCell id="out_err" value="вывод "Ошибка"" 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="500" y="337.5" width="150" height="40" as="geometry" />
</mxCell>
<!-- 7. Ветка Нет (Тело цикла): 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="295" y="425" width="230" height="40" as="geometry" />
</mxCell>
<!-- 8. Вывод итогового 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="520" width="140" height="40" as="geometry" />
</mxCell>
<!-- 9. Конец -->
<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="590" width="140" height="40" as="geometry" />
</mxCell>
<!-- Линии ствола -->
<mxCell id="e_start" 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="e_in" 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="e_init_p" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="init_p" target="loop_for">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- Вход в тело цикла: Да -> cond1 -->
<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_for" target="cond1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- cond1 -> Да -> out_err -->
<mxCell id="e_c1_yes" value="Да" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#047857;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="cond1" target="out_err">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- out_err -> Конец (прерывание цикла break) -->
<mxCell id="e_err_end" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#B91C1C;fontStyle=1;" edge="1" parent="1" source="out_err" target="end">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="575" y="610" />
</Array>
</mxGeometry>
</mxCell>
<!-- cond1 -> Нет -> calc_p -->
<mxCell id="e_c1_no" value="Нет" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#B91C1C;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="cond1" target="calc_p">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- Петля цикла: из calc_p обратно наверх перед loop_for -->
<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="200" y="445" />
<mxPoint x="200" 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_for" target="out_p">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="670" y="272.5" />
<mxPoint x="670" y="500" />
<mxPoint x="410" y="500" />
</Array>
</mxGeometry>
</mxCell>
<!-- Вывод P -> Конец -->
<mxCell id="e_out" 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>