![如何绘制此图,而不是使用“\includegraphics”?](https://linux22.com/image/412408/%E5%A6%82%E4%BD%95%E7%BB%98%E5%88%B6%E6%AD%A4%E5%9B%BE%EF%BC%8C%E8%80%8C%E4%B8%8D%E6%98%AF%E4%BD%BF%E7%94%A8%E2%80%9C%5Cincludegraphics%E2%80%9D%EF%BC%9F.png)
答案1
我认为这个问题已经以多种形式被问过。这里还有一个答案。
\documentclass[tikz,border=3mm]{standalone}
\usetikzlibrary{positioning,matrix}
\begin{document}
\begin{tikzpicture}[Dotted/.style={% https://tex.stackexchange.com/a/52856/194703
line width=1.2pt,
dash pattern=on 0.01\pgflinewidth off #1\pgflinewidth,line cap=round,
shorten >=0.3em,shorten <=0.3em},
Dotted/.default=5]
\matrix[matrix of math nodes,nodes={circle,draw,minimum size=1.5em},
column sep=2em,row sep=1ex](mat) {
C_1 & D_1 \\
C_2 & D_2 \\[2em]
C_m & D_n \\
};
\draw[Dotted] (mat-2-1) -- (mat-3-1);
\draw[Dotted] (mat-2-2) -- (mat-3-2);
\foreach \X in {1,2,3}
{\foreach \Y in {1,2,3}
{\draw (mat-\X-1) -- (mat-\Y-2);}}
\matrix[matrix of math nodes,nodes={circle,draw,minimum size=1.5em},
column sep=1em,below=2em of mat,xshift=2em,
column 2/.style={column sep=2.5em}](mat2) {
E_1 & E_2 & E_p\\
};
\draw[Dotted] (mat2-1-2) -- (mat2-1-3);
\end{tikzpicture}
\end{document}