1
0

00-二分图-02-奇环.svg 1.2 KB

123456
  1. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 270" role="img" aria-labelledby="title desc">
  2. <title id="title">奇环造成同色冲突</title><desc id="desc">三角形交替染色后 A 和 C 同色,但 A C 相邻,产生矛盾。</desc>
  3. <style>text{font-family:system-ui,sans-serif;fill:#172033}.edge{stroke:#64748b;stroke-width:5}.bad{stroke:#dc2626;stroke-width:7}.blue{fill:#dbeafe;stroke:#2563eb;stroke-width:4}.orange{fill:#ffedd5;stroke:#ea580c;stroke-width:4}.note{font-size:19px}.label{font-size:25px;font-weight:700}</style>
  4. <text x="28" y="32" class="note">A→B→C 交替后 A、C 同色;红边 A-C 无法同时跨两色。</text><line class="edge" x1="200" y1="190" x2="400" y2="70"/><line class="edge" x1="400" y1="70" x2="600" y2="190"/><line class="bad" x1="600" y1="190" x2="200" y2="190"/>
  5. <circle class="blue" cx="200" cy="190" r="30"/><circle class="orange" cx="400" cy="70" r="30"/><circle class="blue" cx="600" cy="190" r="30"/><text class="label" x="191" y="199">A</text><text class="label" x="391" y="79">B</text><text class="label" x="591" y="199">C</text><text x="354" y="245" style="font-family:system-ui,sans-serif;font-size:20px;fill:#dc2626">同色冲突</text>
  6. </svg>