高分悬赏! 谁会用用LaTex画二项树,如图
答案:1 悬赏:20 手机版
解决时间 2021-11-27 07:12
- 提问者网友:了了无期
- 2021-11-26 23:42
高分悬赏! 谁会用用LaTex画二项树,如图
最佳答案
- 五星知识达人网友:思契十里
- 2021-11-27 00:31
看看这个效果咋样?
文字标注自己改吧,图看不清
documentclass{article}
usepackage[svgnames]{xcolor}
usepackage{tikz}
usetikzlibrary{arrows,shapes,positioning}
ikzstyle arrowstyle=[scale=1]
egin{document}
egin{tikzpicture}
ode[fill=black,circle,scale=0.5](0) at (0,0){};
ode[fill=black,circle,,scale=0.5](1) at (2,1) {};
ode[fill=black,circle,,scale=0.5](2) at (2,-1) {};
ode [fill=black,circle,,scale=0.5] (3) at (4, -0) {};
ode [fill=black,circle,,scale=0.5] (4) at (4, 2) {};
ode [fill=black,circle,,scale=0.5] (5) at (6, 3) {};
ode [fill=black,circle,,scale=0.5] (6) at (4, -2) {};
ode [fill=black,circle,,scale=0.5] (7) at (6, -3) {};
ode [fill=black,circle,,scale=0.5] (8) at (6, 1) {};
ode [fill=black,circle,,scale=0.5] (9) at (6, -1) {};
ode [fill=black,circle,,scale=0.5] (10) at (8, -2) {};
ode [fill=black,circle,,scale=0.5] (11) at (8, 4) {};
ode [fill=black,circle,,scale=0.5] (12) at (8, 2) {};
ode [fill=black,circle,,scale=0.5] (13) at (8, -0) {};
ode [fill=black,circle,,scale=0.5] (14) at (8, -4) {};
draw[->,thick] (0) to (1);
draw[->,thick] (1) to (4);
draw[->,thick] (4) to (5);
draw[->,thick] (5) to (11);
draw[->,thick] (0) to (2);
draw[->,thick] (2) to (3);
draw[->,thick] (1) to (3);
draw[->,thick] (4) to (8);
draw[->,thick] (3) to (8);
draw[->,thick] (8) to (12);
draw[->,thick] (5) to (12);
draw[->,thick] (2) to (6);
draw[->,thick] (6) to (7);
draw[->,thick] (7) to (14);
draw[->,thick] (3) to (9);
draw[->,thick] (6) to (9);
draw[->,thick] (9) to (10);
draw[->,thick] (7) to (10);
draw[->,thick] (9) to (13);
draw[->,thick] (8) to (13);
ode [above] at (0) {$S_0$};
ode [above] at (1) {$S_1$};
ode [above] at (2) {$S_2$};
ode [above] at (3) {$S_3$};
ode [above] at (4) {$S_4$};
ode [above] at (5) {$S_5$};
ode [above] at (6) {$S_6$};
ode [above] at (7) {$S_7$};
ode [above] at (8) {$S_8$};
ode [above] at (9) {$S_9$};
ode [above] at (10) {$S_{10}$};
ode [above] at (11) {$S_{11}$};
ode [above] at (12) {$S_{12}$};
ode [above] at (13) {$S_{13}$};
ode [above] at (14) {$S_{14}$};
end{tikzpicture}
end{document}
文字标注自己改吧,图看不清
documentclass{article}
usepackage[svgnames]{xcolor}
usepackage{tikz}
usetikzlibrary{arrows,shapes,positioning}
ikzstyle arrowstyle=[scale=1]
egin{document}
egin{tikzpicture}
ode[fill=black,circle,scale=0.5](0) at (0,0){};
ode[fill=black,circle,,scale=0.5](1) at (2,1) {};
ode[fill=black,circle,,scale=0.5](2) at (2,-1) {};
ode [fill=black,circle,,scale=0.5] (3) at (4, -0) {};
ode [fill=black,circle,,scale=0.5] (4) at (4, 2) {};
ode [fill=black,circle,,scale=0.5] (5) at (6, 3) {};
ode [fill=black,circle,,scale=0.5] (6) at (4, -2) {};
ode [fill=black,circle,,scale=0.5] (7) at (6, -3) {};
ode [fill=black,circle,,scale=0.5] (8) at (6, 1) {};
ode [fill=black,circle,,scale=0.5] (9) at (6, -1) {};
ode [fill=black,circle,,scale=0.5] (10) at (8, -2) {};
ode [fill=black,circle,,scale=0.5] (11) at (8, 4) {};
ode [fill=black,circle,,scale=0.5] (12) at (8, 2) {};
ode [fill=black,circle,,scale=0.5] (13) at (8, -0) {};
ode [fill=black,circle,,scale=0.5] (14) at (8, -4) {};
draw[->,thick] (0) to (1);
draw[->,thick] (1) to (4);
draw[->,thick] (4) to (5);
draw[->,thick] (5) to (11);
draw[->,thick] (0) to (2);
draw[->,thick] (2) to (3);
draw[->,thick] (1) to (3);
draw[->,thick] (4) to (8);
draw[->,thick] (3) to (8);
draw[->,thick] (8) to (12);
draw[->,thick] (5) to (12);
draw[->,thick] (2) to (6);
draw[->,thick] (6) to (7);
draw[->,thick] (7) to (14);
draw[->,thick] (3) to (9);
draw[->,thick] (6) to (9);
draw[->,thick] (9) to (10);
draw[->,thick] (7) to (10);
draw[->,thick] (9) to (13);
draw[->,thick] (8) to (13);
ode [above] at (0) {$S_0$};
ode [above] at (1) {$S_1$};
ode [above] at (2) {$S_2$};
ode [above] at (3) {$S_3$};
ode [above] at (4) {$S_4$};
ode [above] at (5) {$S_5$};
ode [above] at (6) {$S_6$};
ode [above] at (7) {$S_7$};
ode [above] at (8) {$S_8$};
ode [above] at (9) {$S_9$};
ode [above] at (10) {$S_{10}$};
ode [above] at (11) {$S_{11}$};
ode [above] at (12) {$S_{12}$};
ode [above] at (13) {$S_{13}$};
ode [above] at (14) {$S_{14}$};
end{tikzpicture}
end{document}
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯