1
0

00-二分图-01-两侧.svg 1.3 KB

1234567
  1. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 285" role="img" aria-labelledby="title desc">
  2. <title id="title">二分图的左右两侧</title><desc id="desc">蓝色与橙色节点分别在两侧,所有边都跨越两侧。</desc>
  3. <style>text{font-family:system-ui,sans-serif;fill:#172033}.edge{stroke:#94a3b8;stroke-width:4}.left{fill:#dbeafe;stroke:#2563eb;stroke-width:4}.right{fill:#ffedd5;stroke:#ea580c;stroke-width:4}.note{font-size:19px}.label{font-size:23px;font-weight:700}</style>
  4. <text x="28" y="31" class="note">所有边跨越左右两侧;同侧之间没有边。</text><text x="166" y="68" class="note">颜色 0</text><text x="568" y="68" class="note">颜色 1</text>
  5. <line class="edge" x1="190" y1="115" x2="610" y2="115"/><line class="edge" x1="190" y1="115" x2="610" y2="215"/><line class="edge" x1="190" y1="215" x2="610" y2="115"/><line class="edge" x1="190" y1="215" x2="610" y2="215"/>
  6. <circle class="left" cx="190" cy="115" r="28"/><circle class="left" cx="190" cy="215" r="28"/><circle class="right" cx="610" cy="115" r="28"/><circle class="right" cx="610" cy="215" r="28"/><text class="label" x="181" y="124">A</text><text class="label" x="181" y="224">C</text><text class="label" x="601" y="124">B</text><text class="label" x="601" y="224">D</text>
  7. </svg>