Files
cpp-courseware/2.Course/1.深入浅出程序设计竞赛(基础篇)/书籍:深入浅出程序设计竞赛(基础篇)/images/svg/ec5a11fd0f0368f158c2f1ec3b92ac3c027d436b332ba37770d60295fce3e179.svg
T

53 lines
5.7 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="640" height="520" viewBox="0 0 640 520" role="img" aria-labelledby="title desc">
<title id="title">深度优先遍历:边的检查顺序</title>
<desc id="desc">根据教材扫描图人工重绘的矢量教学示意图。文字与线条可无损缩放。</desc>
<defs><marker id="arrow" markerWidth="9" markerHeight="9" refX="8" refY="4.5" orient="auto" markerUnits="userSpaceOnUse"><path d="M0 0 L9 4.5 L0 9 Z" fill="#417b63"/></marker></defs>
<rect width="640" height="520" fill="white"/>
<g font-family="Microsoft YaHei, Noto Sans CJK SC, Arial, sans-serif" fill="#193b32" stroke-linecap="round" stroke-linejoin="round">
<line x1="253.59983846177906" y1="73.05638629787393" x2="139.4573274722525" y2="169.36412994528695" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<circle cx="177.0" cy="122.5" r="14" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="177.0" y="122.5" text-anchor="middle" dominant-baseline="central" font-size="16" fill="#193b32">1</text>
<line x1="103.77707264744818" y1="215.6524053772613" x2="57.826202688630644" y2="320.68296528312993" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<circle cx="62.0" cy="270.0" r="14" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="62.0" y="270.0" text-anchor="middle" dominant-baseline="central" font-size="16" fill="#193b32">2</text>
<line x1="124.83145636447497" y1="216.21721697193325" x2="163.76404986917146" y2="320.0374663177906" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<circle cx="127.0" cy="270.0" r="14" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="127.0" y="270.0" text-anchor="middle" dominant-baseline="central" font-size="16" fill="#193b32">3</text>
<line x1="275.0" y1="83.0" x2="275.0" y2="158.0" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<circle cx="257.0" cy="122.5" r="14" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="257.0" y="122.5" text-anchor="middle" dominant-baseline="central" font-size="16" fill="#193b32">4</text>
<line x1="286.88414853446017" y1="215.3528502068483" x2="336.418115960617" y2="321.0253140493162" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<circle cx="294.5" cy="270.0" r="14" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="294.5" y="270.0" text-anchor="middle" dominant-baseline="central" font-size="16" fill="#193b32">5</text>
<line x1="378.0" y1="350.0" x2="488.0" y2="350.0" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<circle cx="453.0" cy="350.0" r="14" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="453.0" y="350.0" text-anchor="middle" dominant-baseline="central" font-size="16" fill="#193b32">6</text>
<line x1="296.4001615382209" y1="73.05638629787393" x2="410.54267252774747" y2="169.36412994528695" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<circle cx="337.0" cy="122.5" r="14" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="337.0" y="122.5" text-anchor="middle" dominant-baseline="central" font-size="16" fill="#193b32">7</text>
<line x1="421.86365367307104" y1="214.7272401448075" x2="365.012967230776" y2="321.74029697736285" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<circle cx="410.5" cy="270.0" r="14" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="410.5" y="270.0" text-anchor="middle" dominant-baseline="central" font-size="16" fill="#193b32">8</text>
<line x1="448.13634632692896" y1="214.7272401448075" x2="504.987032769224" y2="321.74029697736285" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<circle cx="495.5" cy="270.0" r="14" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="495.5" y="270.0" text-anchor="middle" dominant-baseline="central" font-size="16" fill="#193b32">9</text>
<circle cx="275" cy="55" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="275" y="55.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">1</text>
<circle cx="115" cy="190" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="115" y="190.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">2</text>
<circle cx="275" cy="190" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="275" y="190.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">3</text>
<circle cx="435" cy="190" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="435" y="190.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">4</text>
<circle cx="45" cy="350" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="45" y="350.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">5</text>
<circle cx="175" cy="350" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="175" y="350.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">6</text>
<circle cx="350" cy="350" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="350" y="350.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">7</text>
<circle cx="520" cy="350" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="520" y="350.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">8</text>
<text x="320" y="418.0" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">小圆数字:检查该边的顺序</text>
<text x="320" y="453.0" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">第8、9步的目标结点已访问</text>
<text x="320" y="491.0" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">访问顺序:1 → 2 → 5 → 6 → 3 → 7 → 8 → 4</text>
</g></svg>