% ------------------------------------------------------------------------------
% Copyright (c) 2010, 2025 Contributors to the Eclipse Foundation
%
% See the NOTICE file(s) distributed with this work for additional
% information regarding copyright ownership.
%
% This program and the accompanying materials are made available under the terms
% of the MIT License which is available at https://opensource.org/licenses/MIT
%
% SPDX-License-Identifier: MIT
% ------------------------------------------------------------------------------
\documentclass{article}
\usepackage{tikz}
\usepackage{verbatim}

\usepackage[paperwidth=40in, paperheight=20in]{geometry}

\usetikzlibrary{arrows, automata, positioning, shapes.geometric}
\begin{document}
\pagestyle{empty}

\definecolor{se-blue}{HTML}{D0D5FF}

\newcommand{\state}[2]{\begin{tabular}{@{}c@{}}#1\\#2\end{tabular}}

\begin{tikzpicture}[
  ->,>=stealth',auto,node distance=3.5cm,thick,
  every node/.style={font=\sffamily\small},
  every state/.style={draw=se-blue,thick,top color=white,ellipse,
                      bottom color=se-blue!75,initial text=},
  accepting/.style={accepting by arrow,accepting text=\ldots},
  every edge/.style={draw=black!50}]

  \node[state, initial]   (s01) [            ] {off/0};
  \node[state]            (s02) [right of=s01] {on/1};
  \node[state]            (s03) [right of=s02] {off/1};
  \node[state]            (s04) [right of=s03] {on/2};
  \node[state]            (s05) [right of=s04] {off/2};
  \node[state]            (s06) [right of=s05] {on/3};
  \node[state, accepting] (s07) [right of=s06] {off/3};

  \path[every node/.style={font=\sffamily\normalsize,outer sep=0pt}]
    (s01) edge[] node[] {turn\_on } (s02)
    (s02) edge[] node[] {turn\_off} (s03)
    (s03) edge[] node[] {turn\_on } (s04)
    (s04) edge[] node[] {turn\_off} (s05)
    (s05) edge[] node[] {turn\_on } (s06)
    (s06) edge[] node[] {turn\_off} (s07)
  ;

\end{tikzpicture}
\end{document}
