I tried to draw two graphs with Tikz. How can I align them vertically to each other? I want the knots to form the center, such that all six nodes align vertically. Furthermore I want to align the curly brackets using the nodes. But that does not work either. I want the parentheses to start at the beginning of the first node and end at the end of the last node. How can I do that?
This is what I get:
This is what I would like to have:
This code produces the picture above:
\documentclass[a4paper]{article}
\usepackage{tikz}
\begin{document}
\usetikzlibrary{chains, positioning, decorations.pathreplacing}
\def\ilsize{3}
\def\nodesize{6mm}
\tikzset{>=latex}
\begin{figure}[h]
\centering
\begin{tikzpicture}[shorten >=0pt, ->, draw=black!100]
\tikzstyle{every pin edge}=[<-,shorten <=1pt]
\tikzstyle{node}=[circle, draw, fill=black!100, minimum size=\nodesize,inner sep=0pt]
\tikzstyle{input node}=[node, fill=black!0]
% Nodes
\foreach \name / \y in {1,...,\ilsize}
\node[input node] (In-\name) at (0.0cm,-\y cm) {$w_{\y}$};
% Labels %
\draw[-, decoration={brace,raise=0pt, amplitude=3mm}, decorate, xshift=10mm, yshift=0mm]
(In-1) -- (In-3) node[black,midway,right=3mm] {$g(v)$};
\draw[-, decoration={brace, raise=0pt, amplitude=3mm, mirror}, decorate, xshift=10mm, yshift=0mm]
(In-1) -- (In-3) node[black,midway,left=3mm] {$v$};
\end{tikzpicture}
\begin{tikzpicture}[shorten >=0pt, ->, draw=black!100]
\tikzstyle{every pin edge}=[<-,shorten <=1pt]
\tikzstyle{node}=[circle, draw, fill=black!100, minimum size=\nodesize,inner sep=0pt]
\tikzstyle{input node}=[node, fill=black!0]
% Nodes
\foreach \name / \y in {1,...,\ilsize}
\node[input node] (In-\name) at (0.0cm,-\y cm) {$u_{\y}$};
% Labels %
\draw[-, decoration={brace,raise=0pt, amplitude=3mm}, decorate, xshift=0mm, yshift=0mm]
(In-1) -- (In-3) node[black,midway,right=3mm] {$g(v)$};
%(Out-1) -- (Out-3) node[black,midway,xshift] {$f(x)$};
\draw[-, decoration={brace, raise=0pt, amplitude=3mm, mirror}, decorate, xshift=0mm, yshift=0mm]
(In-1) -- (In-3) node[black,midway,left=3mm] {$\mathcal{K}=U*V*W$};
\end{tikzpicture}
\end{figure}
\end{document}
tikzpicture
?