\section{lib/common/macros.h File Reference}
\label{macros_8h}\index{lib/common/macros.\-h@{lib/common/macros.\-h}}
This graph shows which files directly or indirectly include this file\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{macros_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf N\-O\-T\-U\-S\-E\-D}(var)~(void) var
\item 
\#define {\bf N\-I\-L}(type)~((type)0)
\item 
\#define {\bf is\-Pinned}(n)~({\bf N\-D\-\_\-pinned}(n) == {\bf P\-\_\-\-P\-I\-N})
\item 
\#define {\bf has\-Pos}(n)~({\bf N\-D\-\_\-pinned}(n) $>$ 0)
\item 
\#define {\bf is\-Fixed}(n)~({\bf N\-D\-\_\-pinned}(n) $>$ {\bf P\-\_\-\-S\-E\-T})
\item 
\#define {\bf C\-L\-\_\-\-E\-D\-G\-E\-\_\-\-T\-A\-G}~\char`\"{}cl\-\_\-edge\-\_\-info\char`\"{}
\item 
\#define {\bf S\-E\-T\-\_\-\-C\-L\-U\-S\-T\-\_\-\-N\-O\-D\-E}(n)~({\bf N\-D\-\_\-clustnode}(n) = {\bf T\-R\-U\-E})
\item 
\#define {\bf I\-S\-\_\-\-C\-L\-U\-S\-T\-\_\-\-N\-O\-D\-E}(n)~({\bf N\-D\-\_\-clustnode}(n))
\item 
\#define {\bf H\-A\-S\-\_\-\-C\-L\-U\-S\-T\-\_\-\-E\-D\-G\-E}(g)~({\bf aggetrec}(g, {\bf C\-L\-\_\-\-E\-D\-G\-E\-\_\-\-T\-A\-G}, {\bf F\-A\-L\-S\-E}))
\item 
\#define {\bf E\-D\-G\-E\-\_\-\-T\-Y\-P\-E}(g)~({\bf G\-D\-\_\-flags}(g) \& (7 $<$$<$ 1))
\item 
\#define {\bf streq}(a, b)~($\ast$(a)==$\ast$(b)\&\&!strcmp(a,b))
\item 
\#define {\bf X\-P\-A\-D}(d)~((d).x += 4$\ast${\bf G\-A\-P})
\item 
\#define {\bf Y\-P\-A\-D}(d)~((d).y += 2$\ast${\bf G\-A\-P})
\item 
\#define {\bf P\-A\-D}(d)~\{{\bf X\-P\-A\-D}(d); {\bf Y\-P\-A\-D}(d);\}
\item 
\#define {\bf O\-T\-H\-E\-R\-D\-I\-R}(dir)~((dir == {\bf C\-C\-W}) ? {\bf C\-W} \-: {\bf C\-C\-W})
\item 
\#define {\bf N\-E\-X\-T\-S\-I\-D\-E}(side, dir)
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{macros.\-h@{macros.\-h}!C\-L\-\_\-\-E\-D\-G\-E\-\_\-\-T\-A\-G@{C\-L\-\_\-\-E\-D\-G\-E\-\_\-\-T\-A\-G}}
\index{C\-L\-\_\-\-E\-D\-G\-E\-\_\-\-T\-A\-G@{C\-L\-\_\-\-E\-D\-G\-E\-\_\-\-T\-A\-G}!macros.h@{macros.\-h}}
\subsubsection[{C\-L\-\_\-\-E\-D\-G\-E\-\_\-\-T\-A\-G}]{\setlength{\rightskip}{0pt plus 5cm}\#define C\-L\-\_\-\-E\-D\-G\-E\-\_\-\-T\-A\-G~\char`\"{}cl\-\_\-edge\-\_\-info\char`\"{}}\label{macros_8h_ab549045f8984b3606e4e4ea0391f8e45}


Definition at line 29 of file macros.\-h.



Referenced by process\-Cluster\-Edges().

\index{macros.\-h@{macros.\-h}!E\-D\-G\-E\-\_\-\-T\-Y\-P\-E@{E\-D\-G\-E\-\_\-\-T\-Y\-P\-E}}
\index{E\-D\-G\-E\-\_\-\-T\-Y\-P\-E@{E\-D\-G\-E\-\_\-\-T\-Y\-P\-E}!macros.h@{macros.\-h}}
\subsubsection[{E\-D\-G\-E\-\_\-\-T\-Y\-P\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\-D\-G\-E\-\_\-\-T\-Y\-P\-E(
\begin{DoxyParamCaption}
\item[{}]{g}
\end{DoxyParamCaption}
)~({\bf G\-D\-\_\-flags}(g) \& (7 $<$$<$ 1))}\label{macros_8h_a4bcbf94c032df29a820c026bf0126620}


Definition at line 33 of file macros.\-h.



Referenced by add\-Edge\-Labels(), edge\-Midpoint(), fdp\-\_\-layout(), osage\-\_\-layout(), and spline\-\_\-edges0().

\index{macros.\-h@{macros.\-h}!H\-A\-S\-\_\-\-C\-L\-U\-S\-T\-\_\-\-E\-D\-G\-E@{H\-A\-S\-\_\-\-C\-L\-U\-S\-T\-\_\-\-E\-D\-G\-E}}
\index{H\-A\-S\-\_\-\-C\-L\-U\-S\-T\-\_\-\-E\-D\-G\-E@{H\-A\-S\-\_\-\-C\-L\-U\-S\-T\-\_\-\-E\-D\-G\-E}!macros.h@{macros.\-h}}
\subsubsection[{H\-A\-S\-\_\-\-C\-L\-U\-S\-T\-\_\-\-E\-D\-G\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define H\-A\-S\-\_\-\-C\-L\-U\-S\-T\-\_\-\-E\-D\-G\-E(
\begin{DoxyParamCaption}
\item[{}]{g}
\end{DoxyParamCaption}
)~({\bf aggetrec}(g, {\bf C\-L\-\_\-\-E\-D\-G\-E\-\_\-\-T\-A\-G}, {\bf F\-A\-L\-S\-E}))}\label{macros_8h_ab5b26262755a63c68df8fad3712625ee}


Definition at line 32 of file macros.\-h.



Referenced by attach\-\_\-attrs\-\_\-and\-\_\-arrows().

\index{macros.\-h@{macros.\-h}!has\-Pos@{has\-Pos}}
\index{has\-Pos@{has\-Pos}!macros.h@{macros.\-h}}
\subsubsection[{has\-Pos}]{\setlength{\rightskip}{0pt plus 5cm}\#define has\-Pos(
\begin{DoxyParamCaption}
\item[{}]{n}
\end{DoxyParamCaption}
)~({\bf N\-D\-\_\-pinned}(n) $>$ 0)}\label{macros_8h_ae730ff2ffbf10e09227627895ccdd11b}


Definition at line 26 of file macros.\-h.



Referenced by init\-\_\-nop(), initial\-\_\-positions(), and init\-Layout().

\index{macros.\-h@{macros.\-h}!I\-S\-\_\-\-C\-L\-U\-S\-T\-\_\-\-N\-O\-D\-E@{I\-S\-\_\-\-C\-L\-U\-S\-T\-\_\-\-N\-O\-D\-E}}
\index{I\-S\-\_\-\-C\-L\-U\-S\-T\-\_\-\-N\-O\-D\-E@{I\-S\-\_\-\-C\-L\-U\-S\-T\-\_\-\-N\-O\-D\-E}!macros.h@{macros.\-h}}
\subsubsection[{I\-S\-\_\-\-C\-L\-U\-S\-T\-\_\-\-N\-O\-D\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define I\-S\-\_\-\-C\-L\-U\-S\-T\-\_\-\-N\-O\-D\-E(
\begin{DoxyParamCaption}
\item[{}]{n}
\end{DoxyParamCaption}
)~({\bf N\-D\-\_\-clustnode}(n))}\label{macros_8h_a000c4422ad2d2bef9eb65d08383b747d}


Definition at line 31 of file macros.\-h.



Referenced by process\-Cluster\-Edges(), and write\-\_\-plain().

\index{macros.\-h@{macros.\-h}!is\-Fixed@{is\-Fixed}}
\index{is\-Fixed@{is\-Fixed}!macros.h@{macros.\-h}}
\subsubsection[{is\-Fixed}]{\setlength{\rightskip}{0pt plus 5cm}\#define is\-Fixed(
\begin{DoxyParamCaption}
\item[{}]{n}
\end{DoxyParamCaption}
)~({\bf N\-D\-\_\-pinned}(n) $>$ {\bf P\-\_\-\-S\-E\-T})}\label{macros_8h_a4e54e20be361224b44c2d076ee896d19}


Definition at line 27 of file macros.\-h.



Referenced by init\-Layout(), and stress\-\_\-majorization\-\_\-k\-D\-\_\-mkernel().

\index{macros.\-h@{macros.\-h}!is\-Pinned@{is\-Pinned}}
\index{is\-Pinned@{is\-Pinned}!macros.h@{macros.\-h}}
\subsubsection[{is\-Pinned}]{\setlength{\rightskip}{0pt plus 5cm}\#define is\-Pinned(
\begin{DoxyParamCaption}
\item[{}]{n}
\end{DoxyParamCaption}
)~({\bf N\-D\-\_\-pinned}(n) == {\bf P\-\_\-\-P\-I\-N})}\label{macros_8h_a8a5e86e732ef9edd19f62f623e1ddd98}


Definition at line 25 of file macros.\-h.



Referenced by pccomps().

\index{macros.\-h@{macros.\-h}!N\-E\-X\-T\-S\-I\-D\-E@{N\-E\-X\-T\-S\-I\-D\-E}}
\index{N\-E\-X\-T\-S\-I\-D\-E@{N\-E\-X\-T\-S\-I\-D\-E}!macros.h@{macros.\-h}}
\subsubsection[{N\-E\-X\-T\-S\-I\-D\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define N\-E\-X\-T\-S\-I\-D\-E(
\begin{DoxyParamCaption}
\item[{}]{side, }
\item[{}]{dir}
\end{DoxyParamCaption}
)}\label{macros_8h_a1160d2d18dbb29dc852020933e657e62}
{\bfseries Value\-:}
\begin{DoxyCode}
((dir == CCW) ? \(\backslash\)
                ((side & 0x8) ? BOTTOM : (side << 1)) : \(\backslash\)
                ((side & 0x1) ? LEFT : (side >> 1)))
\end{DoxyCode}


Definition at line 45 of file macros.\-h.

\index{macros.\-h@{macros.\-h}!N\-I\-L@{N\-I\-L}}
\index{N\-I\-L@{N\-I\-L}!macros.h@{macros.\-h}}
\subsubsection[{N\-I\-L}]{\setlength{\rightskip}{0pt plus 5cm}\#define N\-I\-L(
\begin{DoxyParamCaption}
\item[{}]{type}
\end{DoxyParamCaption}
)~((type)0)}\label{macros_8h_a31bfee01545b78af63301bf9e857218b}


Definition at line 22 of file macros.\-h.

\index{macros.\-h@{macros.\-h}!N\-O\-T\-U\-S\-E\-D@{N\-O\-T\-U\-S\-E\-D}}
\index{N\-O\-T\-U\-S\-E\-D@{N\-O\-T\-U\-S\-E\-D}!macros.h@{macros.\-h}}
\subsubsection[{N\-O\-T\-U\-S\-E\-D}]{\setlength{\rightskip}{0pt plus 5cm}\#define N\-O\-T\-U\-S\-E\-D(
\begin{DoxyParamCaption}
\item[{}]{var}
\end{DoxyParamCaption}
)~(void) var}\label{macros_8h_a040176e7a1c8a578d23817d409c58a1e}


Definition at line 18 of file macros.\-h.

\index{macros.\-h@{macros.\-h}!O\-T\-H\-E\-R\-D\-I\-R@{O\-T\-H\-E\-R\-D\-I\-R}}
\index{O\-T\-H\-E\-R\-D\-I\-R@{O\-T\-H\-E\-R\-D\-I\-R}!macros.h@{macros.\-h}}
\subsubsection[{O\-T\-H\-E\-R\-D\-I\-R}]{\setlength{\rightskip}{0pt plus 5cm}\#define O\-T\-H\-E\-R\-D\-I\-R(
\begin{DoxyParamCaption}
\item[{}]{dir}
\end{DoxyParamCaption}
)~((dir == {\bf C\-C\-W}) ? {\bf C\-W} \-: {\bf C\-C\-W})}\label{macros_8h_a0e230b33a3aa41ef4a0dfa69e9ce574f}


Definition at line 43 of file macros.\-h.

\index{macros.\-h@{macros.\-h}!P\-A\-D@{P\-A\-D}}
\index{P\-A\-D@{P\-A\-D}!macros.h@{macros.\-h}}
\subsubsection[{P\-A\-D}]{\setlength{\rightskip}{0pt plus 5cm}\#define P\-A\-D(
\begin{DoxyParamCaption}
\item[{}]{d}
\end{DoxyParamCaption}
)~\{{\bf X\-P\-A\-D}(d); {\bf Y\-P\-A\-D}(d);\}}\label{macros_8h_a68579086ddfdd0720416c452c1d3b5b9}


Definition at line 41 of file macros.\-h.



Referenced by do\-\_\-graph\-\_\-label(), and gv\-\_\-postprocess().

\index{macros.\-h@{macros.\-h}!S\-E\-T\-\_\-\-C\-L\-U\-S\-T\-\_\-\-N\-O\-D\-E@{S\-E\-T\-\_\-\-C\-L\-U\-S\-T\-\_\-\-N\-O\-D\-E}}
\index{S\-E\-T\-\_\-\-C\-L\-U\-S\-T\-\_\-\-N\-O\-D\-E@{S\-E\-T\-\_\-\-C\-L\-U\-S\-T\-\_\-\-N\-O\-D\-E}!macros.h@{macros.\-h}}
\subsubsection[{S\-E\-T\-\_\-\-C\-L\-U\-S\-T\-\_\-\-N\-O\-D\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define S\-E\-T\-\_\-\-C\-L\-U\-S\-T\-\_\-\-N\-O\-D\-E(
\begin{DoxyParamCaption}
\item[{}]{n}
\end{DoxyParamCaption}
)~({\bf N\-D\-\_\-clustnode}(n) = {\bf T\-R\-U\-E})}\label{macros_8h_a55a0d877bd715634ec04beed63ce3252}


Definition at line 30 of file macros.\-h.

\index{macros.\-h@{macros.\-h}!streq@{streq}}
\index{streq@{streq}!macros.h@{macros.\-h}}
\subsubsection[{streq}]{\setlength{\rightskip}{0pt plus 5cm}\#define streq(
\begin{DoxyParamCaption}
\item[{}]{a, }
\item[{}]{b}
\end{DoxyParamCaption}
)~($\ast$(a)==$\ast$(b)\&\&!strcmp(a,b))}\label{macros_8h_a142287b2552d8354d673374eb4da4232}


Definition at line 36 of file macros.\-h.

\index{macros.\-h@{macros.\-h}!X\-P\-A\-D@{X\-P\-A\-D}}
\index{X\-P\-A\-D@{X\-P\-A\-D}!macros.h@{macros.\-h}}
\subsubsection[{X\-P\-A\-D}]{\setlength{\rightskip}{0pt plus 5cm}\#define X\-P\-A\-D(
\begin{DoxyParamCaption}
\item[{}]{d}
\end{DoxyParamCaption}
)~((d).x += 4$\ast${\bf G\-A\-P})}\label{macros_8h_a1344cabb7bccac64daa2e02b11d7b081}


Definition at line 39 of file macros.\-h.

\index{macros.\-h@{macros.\-h}!Y\-P\-A\-D@{Y\-P\-A\-D}}
\index{Y\-P\-A\-D@{Y\-P\-A\-D}!macros.h@{macros.\-h}}
\subsubsection[{Y\-P\-A\-D}]{\setlength{\rightskip}{0pt plus 5cm}\#define Y\-P\-A\-D(
\begin{DoxyParamCaption}
\item[{}]{d}
\end{DoxyParamCaption}
)~((d).y += 2$\ast${\bf G\-A\-P})}\label{macros_8h_a5ea39c833e7c039755e1d99da51c8e52}


Definition at line 40 of file macros.\-h.

