如何使用 tkz-graph 讓某些節點周圍沒有圓圈?

如何使用 tkz-graph 讓某些節點周圍沒有圓圈?

我正在嘗試使用 tkz-graph 繪製一個簡單的層次結構:

\begin{tikzpicture}
\Vertex[Math, L=\pi, x=0, y=4.5]{pi}
\Vertex[Math, L=\pi^{\frac{1}{32}}, x=-4.5, y=0]{pi_32_1}
\Vertex[Math, L=\pi^{\frac{1}{32}}, x=-3.5, y=0]{pi_32_2}
\Vertex[Math, L=\pi^{\frac{1}{32}}, x=-2.5, y=0]{pi_32_3}
\Vertex[Math, L=\pi^{\frac{1}{32}}, x=-1.5, y=0]{pi_32_4}
\Vertex[Math, L=\pi^{\frac{1}{32}}, x=1.5, y=0]{pi_32_5}
\Vertex[Math, L=\pi^{\frac{1}{32}}, x=2.5, y=0]{pi_32_6}
\Vertex[Math, L=\pi^{\frac{1}{32}}, x=3.5, y=0]{pi_32_7}
\Vertex[Math, L=\pi^{\frac{1}{32}}, x=4.5, y=0]{pi_32_8}
\Vertex[Math, L=\cdots, x=-0, y=0]{dots}
\Vertex[Math, L=\pi^{\frac{1}{16}}, x=-4, y=1.25]{pi_16_1}
\Vertex[Math, L=\pi^{\frac{1}{16}}, x=-2, y=1.25]{pi_16_2}
\Vertex[Math, L=\pi^{\frac{1}{16}}, x=2, y=1.25]{pi_16_3}
\Vertex[Math, L=\pi^{\frac{1}{16}}, x=4, y=1.25]{pi_16_4}
\Vertex[Math, L=\cdots, x=-0, y=1.25]{dots}
\Vertex[Math, L=\pi^{\frac{1}{8}}, x=-3, y=2.5]{pi_8_1}
\Vertex[Math, L=\pi^{\frac{1}{8}}, x=3, y=2.5]{pi_8_2}
\Vertex[Math, L=\cdots, x=-0, y=2.5]{dots}
\Vertex[Math, L=\pi^{\frac{1}{2}}, x=-1.25, y=3.75]{pi_2_1}
\Vertex[Math, L=\pi^{\frac{1}{2}}, x=1.25, y=3.75]{pi_2_2}
\SetUpEdge[style={->}]
\Edge(pi_32_1)(pi_16_1)
\Edge(pi_32_2)(pi_16_1)
\Edge(pi_32_3)(pi_16_2)
\Edge(pi_32_4)(pi_16_2)
\Edge(pi_32_5)(pi_16_3)
\Edge(pi_32_6)(pi_16_3)
\Edge(pi_32_7)(pi_16_4)
\Edge(pi_32_8)(pi_16_4)
\Edge(pi_16_1)(pi_8_1)
\Edge(pi_16_2)(pi_8_1)
\Edge(pi_16_3)(pi_8_2)
\Edge(pi_16_4)(pi_8_2)  
\Edge[label=...](pi_8_1)(pi_2_1)
\Edge[label=...](pi_8_2)(pi_2_2)
\Edge(pi_2_1)(pi)
\Edge(pi_2_2)(pi)
\end{tikzpicture}

目前這給了我:

在此輸入影像描述

我只是希望帶點的頂點周圍沒有圓圈。我有辦法做到這一點嗎?或者是否有不同的方法讓點「填充空格」。

在此圖中,在最低層級上有32 個節點,接下來的16 個節點,依此類推,直到1。很簡單看看如何完成該圖。

任何幫助表示讚賞!謝謝

答案1

根據@marmot和@JouleV的建議,代碼如下:

\documentclass{standalone}
\usepackage{tkz-berge}
\begin{document}
\begin{tikzpicture}
\Vertex[Math, L=\pi, x=0, y=4.5]{pi}
\Vertex[Math, L=\pi^{\frac{1}{32}}, x=-4.5, y=0]{pi_32_1}
\Vertex[Math, L=\pi^{\frac{1}{32}}, x=-3.5, y=0]{pi_32_2}
\Vertex[Math, L=\pi^{\frac{1}{32}}, x=-2.5, y=0]{pi_32_3}
\Vertex[Math, L=\pi^{\frac{1}{32}}, x=-1.5, y=0]{pi_32_4}
\Vertex[Math, L=\pi^{\frac{1}{32}}, x=1.5, y=0]{pi_32_5}
\Vertex[Math, L=\pi^{\frac{1}{32}}, x=2.5, y=0]{pi_32_6}
\Vertex[Math, L=\pi^{\frac{1}{32}}, x=3.5, y=0]{pi_32_7}
\Vertex[Math, L=\pi^{\frac{1}{32}}, x=4.5, y=0]{pi_32_8}
\begin{scope}[VertexStyle/.style = {draw=none}]
\Vertex[Math, L=\cdots, x=-0, y=0]{dots}
\end{scope}
\Vertex[Math, L=\pi^{\frac{1}{16}}, x=-4, y=1.25]{pi_16_1}
\Vertex[Math, L=\pi^{\frac{1}{16}}, x=-2, y=1.25]{pi_16_2}
\Vertex[Math, L=\pi^{\frac{1}{16}}, x=2, y=1.25]{pi_16_3}
\Vertex[Math, L=\pi^{\frac{1}{16}}, x=4, y=1.25]{pi_16_4}
\begin{scope}[VertexStyle/.style = {draw=none}]
\Vertex[Math, L=\cdots, x=-0, y=1.25]{dots}
\end{scope}
\Vertex[Math, L=\pi^{\frac{1}{8}}, x=-3, y=2.5]{pi_8_1}
\Vertex[Math, L=\pi^{\frac{1}{8}}, x=3, y=2.5]{pi_8_2}
\begin{scope}[VertexStyle/.style = {draw=none}]
\Vertex[Math, L=\cdots, x=-0, y=2.5]{dots}
\end{scope}
\Vertex[Math, L=\pi^{\frac{1}{2}}, x=-1.25, y=3.75]{pi_2_1}
\Vertex[Math, L=\pi^{\frac{1}{2}}, x=1.25, y=3.75]{pi_2_2}
\SetUpEdge[style={->}]
\Edge(pi_32_1)(pi_16_1)
\Edge(pi_32_2)(pi_16_1)
\Edge(pi_32_3)(pi_16_2)
\Edge(pi_32_4)(pi_16_2)
\Edge(pi_32_5)(pi_16_3)
\Edge(pi_32_6)(pi_16_3)
\Edge(pi_32_7)(pi_16_4)
\Edge(pi_32_8)(pi_16_4)
\Edge(pi_16_1)(pi_8_1)
\Edge(pi_16_2)(pi_8_1)
\Edge(pi_16_3)(pi_8_2)
\Edge(pi_16_4)(pi_8_2)
\Edge[label=...](pi_8_1)(pi_2_1)
\Edge[label=...](pi_8_2)(pi_2_2)
\Edge(pi_2_1)(pi)
\Edge(pi_2_2)(pi)
\end{tikzpicture}
\end{document} 

在此輸入影像描述

相關內容