33 lines
3.5 KiB
XML
33 lines
3.5 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 395" width="500" height="395"><title>有向图 DFS 中的边</title><defs><marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" fill="#416687"/></marker></defs><rect width="100%" height="100%" fill="white"/><g font-family="Microsoft YaHei,Arial,sans-serif" fill="#263c52" stroke-linecap="round">
|
|
<path d="M195.62036285238597 57.41877753657576L116.6501061709215 125.62036285238597" fill="none" stroke="#416687" stroke-width="2" marker-end="url(#a)"/>
|
|
<path d="M100.0 159.0L100.0 218.0" fill="none" stroke="#416687" stroke-width="2" marker-end="url(#a)"/>
|
|
<path d="M89.99926232229039 256.1550377870694L46.5798015215585 326.294166772867" fill="none" stroke="#416687" stroke-width="2" marker-end="url(#a)"/>
|
|
<path d="M210.0 64.0L210.0 118.0" fill="none" stroke="#416687" stroke-width="2" marker-end="url(#a)"/>
|
|
<path d="M210.0 159.0L210.0 218.0" fill="none" stroke="#416687" stroke-width="2" marker-end="url(#a)"/>
|
|
<path d="M210.0 259.0L210.0 323.0" fill="none" stroke="#416687" stroke-width="2" marker-end="url(#a)"/>
|
|
<path d="M224.59620431235015 152.1635035936251L313.0991318488577 225.91594320738145" fill="none" stroke="#416687" stroke-width="2" marker-end="url(#a)"/>
|
|
<circle cx="210" cy="45" r="19" fill="white" stroke="#416687" stroke-width="2"/>
|
|
<text x="210" y="45" text-anchor="middle" dominant-baseline="central" font-size="19">1</text>
|
|
<circle cx="100" cy="140" r="19" fill="white" stroke="#416687" stroke-width="2"/>
|
|
<text x="100" y="140" text-anchor="middle" dominant-baseline="central" font-size="19">2</text>
|
|
<circle cx="100" cy="240" r="19" fill="white" stroke="#416687" stroke-width="2"/>
|
|
<text x="100" y="240" text-anchor="middle" dominant-baseline="central" font-size="19">3</text>
|
|
<circle cx="35" cy="345" r="19" fill="white" stroke="#416687" stroke-width="2"/>
|
|
<text x="35" y="345" text-anchor="middle" dominant-baseline="central" font-size="19">4</text>
|
|
<circle cx="210" cy="140" r="19" fill="white" stroke="#416687" stroke-width="2"/>
|
|
<text x="210" y="140" text-anchor="middle" dominant-baseline="central" font-size="19">5</text>
|
|
<circle cx="210" cy="240" r="19" fill="white" stroke="#416687" stroke-width="2"/>
|
|
<text x="210" y="240" text-anchor="middle" dominant-baseline="central" font-size="19">6</text>
|
|
<circle cx="210" cy="345" r="19" fill="white" stroke="#416687" stroke-width="2"/>
|
|
<text x="210" y="345" text-anchor="middle" dominant-baseline="central" font-size="19">7</text>
|
|
<circle cx="330" cy="240" r="19" fill="white" stroke="#416687" stroke-width="2"/>
|
|
<text x="330" y="240" text-anchor="middle" dominant-baseline="central" font-size="19">8</text>
|
|
<path d="M41.95160879688039 323.0756953329157L92.74614734238568 162.87753530478363" fill="none" stroke="#67859e" stroke-dasharray="6 5" marker-end="url(#a)"/>
|
|
<path d="M217.79594920675697 67.20862841252618L313.1633702005332 222.18068752741263" fill="none" stroke="#67859e" stroke-dasharray="6 5" marker-end="url(#a)"/>
|
|
<path d="M322.204050793243 217.7913715874738L226.83662979946675 62.819312472587384" fill="none" stroke="#67859e" stroke-dasharray="6 5" marker-end="url(#a)"/>
|
|
<path d="M187.0 238.0L124.0 238.0" fill="none" stroke="#67859e" marker-end="url(#a)"/>
|
|
<path d="M187.0 242.0L124.0 242.0" fill="none" stroke="#67859e" marker-end="url(#a)"/>
|
|
<text x="280" y="300" font-size="17">实线:树边</text>
|
|
<text x="280" y="326" font-size="17">虚线:前向边/返祖边</text>
|
|
<text x="280" y="352" font-size="17">6 → 3:横叉边</text>
|
|
</g></svg> |