\definecolor{figblue}{HTML}{175585} \definecolor{figred}{HTML}{A13C28} \definecolor{figgreen}{HTML}{267151} \tikzset{ fig vertex/.style={circle,draw,inner sep=0pt,minimum size=4.2mm,font=\scriptsize,fill=white}, fig source/.style={fig vertex,draw=figblue,fill=figblue!10}, fig sink/.style={fig vertex,draw=figgreen,fill=figgreen!10}, fig omitted/.style={fig vertex,dashed,draw=figred,text=figred}, fig arrow/.style={-{Stealth[length=1.65mm]},semithick}, fig edge/.style={line width=.55pt}, fig label/.style={font=\small,align=center}, fig grid/.style={step=1,gray!24,very thin} } % The arguments are the axis size and the list of tick marks. \newcommand{\permutationaxes}[2]{% \draw[fig grid] (1,1) grid (#1,#1); \foreach \i in {#2} { \node[font=\tiny,below] at (\i,.73) {\i}; \node[font=\tiny,left] at (.74,\i) {\i}; } \node[font=\scriptsize,below] at ({(#1+1)/2},.12) {position}; \node[font=\scriptsize,rotate=90,above] at (.07,{(#1+1)/2}) {value}; }