<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%% 
%%  The LaTeX Graphics Companion, 2ed (first printing May 2007)
%% 
%%  Example 7-4-16 on page 489.
%% 
%%  Copyright (C) 2007 Michel Goossens, Frank Mittelbach, Denis Roegel, Sebastian Rahtz, Herbert Vo\ss 
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 

\documentclass{ttctexa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{207.83385pt}
\StartShownPreambleCommands
\usepackage[all,dvips]{xy}
\newcommand\Neuron[1]{\POS*+=&lt;1em&gt;[o]+[F]{#1}}
\newcommand\Link[1]{\ar @{-} "#1"}
\newcommand\Out{\ar +/r8mm/}
\newcommand\In{\save +/l9mm/*{}\ar +/r5mm/\restore}
\newgraphescape{O}[1]{!{\Neuron{#1}="#1"\Out}}
\newgraphescape{H}[1]{!{\Neuron{#1}="#1"\Link{A}\Link{B}}}
\newgraphescape{I}[1]{!{\Neuron{#1}\In\Link{a}\Link{b}\Link{c}}}
\StopShownPreambleCommands
\begin{document}
\[\xygraph{!{0;&lt;18mm,0mm&gt;:&lt;0mm,10mm&gt;::}
 [] !O{A}       [d]!O{B}
 [dd]*[left]!U[F]\txt&lt;12mm&gt;{output\\layer}="T"
"A" [u(.5)l]!H{a}
    [d]!H{b}    [d]!H{c}
"T" [l] *[left]!U[F]\txt&lt;12mm&gt;{hidden\\layer}
"a" [ul]!I{t_1}    [d] !I{t_2}    [d] !I{t_3}
    [d] !I{t_4}    [d] !I{t_5}
"T"[ll] *[left]!U[F]\txt&lt;12mm&gt;{input\\layer}
}\]
\end{document}
</pre></body></html>