
I just started working with latex last week, and there are some things I would like to improve on this Hasse diagram. I am trying to do two things correctly.
That the image is shifted more to the left side and a little more upward so that it can be seen completely.
That the edges do not touch any other node, but the only two which I intend to connect. It looks very messy the way it appears.
I have not finished the diagram, since when noticing these problems,did not want to continue. I am very grateful for any help I can get.
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{pdflscape}
\begin{document}
\thispagestyle{empty}
\begin{landscape}
\begin{tikzpicture}[every node/.style={circle,draw=black}]
\node(tre1)[circle,draw,scale=0.5]{
\begin{tikzpicture}
\node(tree1){1}
child{node{2}}
child{node{3}}
child{node{4}};
\end{tikzpicture}
};
\node(tre2)[circle,draw,scale=0.5] [right of=tre1,xshift=6.2cm]{
\begin{tikzpicture}
\node(tree2){1}
child{node{2}
child{node{4}}}
child{node{3}};
\end{tikzpicture}
};
\node(tre3)[circle,draw,scale=0.5][right of=tre2,xshift=6.2cm] {
\begin{tikzpicture}
\node(tree3){1}
child{node{3}
child{node{4}}}
child{node{2}};
\end{tikzpicture}
};
\node(tre4)[circle,draw,scale=0.5][right of=tre3,xshift=6.2cm] {
\begin{tikzpicture}
\node(tree4){1}
child{node{2}
child{node{3}}}
child{node{4}};
\end{tikzpicture}
};
\node(tre5)[circle,draw,scale=0.4][right of=tre4,xshift=7.3cm] {
\begin{tikzpicture}
\node(tree5){1}
child{node{2}
child{node{3}
child{node{4}}}};
\end{tikzpicture}
};
\node(tre6)[circle,draw,scale=0.5][right of=tre5,xshift=5.7cm] {
\begin{tikzpicture}
\node(tree6){1}
child{node{2}
child{node{3}}
child{node{4}}};
\end{tikzpicture}
};
\node at ($(tre1) + (-3.5,-4.5)$)[circle,draw,scale=0.65](tr1){
\begin{tikzpicture}
\node{1}
child{node{2}}
child{node{3}};
\node[xshift=1cm]{4};
\end{tikzpicture}
};
\node(tr2)[circle,draw,scale=0.65][right of=tr1,xshift=2.8cm]{
\begin{tikzpicture}
\node(one){1}
child{node{2}}
child{node{4}};
\node[right of=one]{3};
\end{tikzpicture}
};
\node(tr3)[circle,draw,scale=0.75][right of=tr2,xshift=2.25cm]{
\begin{tikzpicture}
\node(one){1}
child{node{2}};
\node[right of=one]{3}
child{node{4}};
\end{tikzpicture}
};
\node(tr4)[circle,draw,scale=0.65][right of=tr3,xshift=2.8cm]{
\begin{tikzpicture}
\node(one){1}
child{node{3}}
child{node{4}};
\node[right of=one]{2};
\end{tikzpicture}
};
\node(tr5)[circle,draw,scale=0.75][right of=tr4,xshift=2.25cm]{
\begin{tikzpicture}
\node(one){1}
child{node{3}};
\node[right of=one]{2}
child{node{4}};
\end{tikzpicture}
};
\node(tr6)[circle,draw,scale=0.75][right of=tr5,xshift=2.25cm]{
\begin{tikzpicture}
\node(one){1}
child{node{4}};
\node[right of=one]{2}
child{node{3}};
\end{tikzpicture}
};
\node(tr7)[circle,draw,scale=0.5][right of=tr6,xshift=3.8cm]{
\begin{tikzpicture}
\node{1}
child{node(two){2}
child{node{3}}};
\node[right of=two]{4};
\end{tikzpicture}
};
\node(tr8)[circle,draw,scale=0.65][right of=tr7,xshift=2.8cm]{
\begin{tikzpicture}
\node(two){2}
child{node(three){3}}
child{node{4}};
\node[right of=two]{4};
\end{tikzpicture}
};
\node(tr9)[circle,draw,scale=0.5][right of=tr8,xshift=3.8cm]{
\begin{tikzpicture}
\node{1}
child{node(two){2}
child{node{4}}};
\node[right of=two]{3};
\end{tikzpicture}
};
\node(tr10)[circle,draw,scale=0.5][right of=tr9,xshift=3.8cm]{
\begin{tikzpicture}
\node{1}
child{node(three){3}
child{node{4}}};
\node[right of=three]{2};
\end{tikzpicture}
};
\node(tr11)[circle,draw,scale=0.5][right of=tr10,xshift=3.8cm]{
\begin{tikzpicture}
\node{2}
child{node(three){3}
child{node{4}}};
\node[left of=three]{1};
\end{tikzpicture}
};
\node at ($(tre1) + (0,-9)$)[circle,draw,scale=0.75](t1){
\begin{tikzpicture}
\node(one){1}
child{node(two){2}};
\node[right of=one]{3};
\node[right of=two]{4};
\end{tikzpicture}
};
\node at ($(tre2) + (0,-9)$)[circle,draw,scale=0.75](t2){
\begin{tikzpicture}
\node(one){1}
child{node(three){3}};
\node[right of=one]{2};
\node[right of=three]{4};
\end{tikzpicture}
};
\node at ($(tre3) + (0,-9)$)[circle,draw,scale=0.75](t3){
\begin{tikzpicture}
\node(one){1}
child{node(four){4}};
\node[right of=one]{2};
\node[right of=four]{3};
\end{tikzpicture}
};
\node at ($(tre4) + (0,-9)$)[circle,draw,scale=0.75](t4){
\begin{tikzpicture}
\node(two){2}
child{node(three){3}};
\node[left of=two]{1};
\node[left of=three]{4};
\end{tikzpicture}
};
\node at ($(tre5) + (0,-9)$)[circle,draw,scale=0.75](t5){
\begin{tikzpicture}
\node(two){2}
child{node(four){4}};
\node[left of=two]{1};
\node[left of=four]{3};
\end{tikzpicture}
};
\node at ($(tre6) + (0,-9)$)[circle,draw,scale=0.75](t6){
\begin{tikzpicture}
\node(three){3}
child{node(four){4}};
\node[left of=three]{1};
\node[left of=four]{2};
\end{tikzpicture}
};
\node at ($(tre3) + (2,-13.5)$)(root)[circle,draw,scale=0.9]{
\begin{tikzpicture}
\node(one){1};
\node[below of=one](two){2};
\node[right of=one]{3};
\node[right of=two]{4};
\end{tikzpicture}
};
\path[thick](tre1)edge(tr1)
edge(tr2)
edge(tr4);
\path[thick](tre2)edge(tr5)
edge(tr9)
edge(tr10);
\path[thick](root)edge(t1)
edge(t2)
edge(t3)
edge(t4)
edge(t5)
edge(t6);
\end{tikzpicture}
\end{landscape}
\end{document}


tikzpictures is not supported and is expected to yield the unexpected and the undesirable. – cfr Jul 23 '18 at 23:55