\section{lib/neatogen/adjust.c File Reference}
\label{adjust_8c}\index{lib/neatogen/adjust.\-c@{lib/neatogen/adjust.\-c}}
{\ttfamily \#include \char`\"{}neato.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}agxbuf.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}utils.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}ctype.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}voronoi.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}info.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}edges.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}site.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}heap.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}hedges.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}digcola.\-h\char`\"{}}\\*
Include dependency graph for adjust.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{adjust_8c__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct {\bf lookup\-\_\-t}
\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf S\-E\-P\-F\-A\-C\-T}~0.\-8  /$\ast$ default esep/sep $\ast$/
\item 
\#define {\bf E\-L\-S}~\char`\"{}$|$edgelabel$|$\char`\"{}
\item 
\#define {\bf E\-L\-S\-N}~(sizeof({\bf E\-L\-S})-\/1)
\item 
\#define {\bf I\-S\-\_\-\-L\-N\-O\-D\-E}(n)~(!strncmp({\bf agnameof}(n),{\bf E\-L\-S},{\bf E\-L\-S\-N}))
\item 
\#define {\bf S\-T\-R\-L\-E\-N}({\bf s})~((sizeof({\bf s})-\/1)/sizeof(char))
\item 
\#define {\bf I\-T\-E\-M}(i, {\bf s}, v)~\{i, {\bf s}, {\bf S\-T\-R\-L\-E\-N}({\bf s}), v\}
\item 
\#define {\bf I\-S\-Z\-E\-R\-O}(d)~((fabs(d) $<$ 0.\-000000001))
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
double $\ast$ {\bf get\-Sizes} ({\bf Agraph\-\_\-t} $\ast$g, {\bf pointf} pad, {\bf int} $\ast$n\-\_\-elabels, {\bf int} $\ast$$\ast$elabels)
\item 
{\bf Sparse\-Matrix} {\bf make\-Matrix} ({\bf Agraph\-\_\-t} $\ast$g, {\bf int} dim, {\bf Sparse\-Matrix} $\ast$D)
\item 
{\bf int} {\bf normalize} ({\bf graph\-\_\-t} $\ast$g)
\item 
{\bf adjust\-\_\-data} $\ast$ {\bf graph\-Adjust\-Mode} ({\bf graph\-\_\-t} $\ast$G, {\bf adjust\-\_\-data} $\ast$dp, char $\ast$dflt)
\item 
{\bf int} {\bf remove\-Overlap\-With} ({\bf graph\-\_\-t} $\ast$G, {\bf adjust\-\_\-data} $\ast$am)
\item 
{\bf int} {\bf remove\-Overlap\-As} ({\bf graph\-\_\-t} $\ast$G, char $\ast$flag)
\item 
{\bf int} {\bf adjust\-Nodes} ({\bf graph\-\_\-t} $\ast$G)
\item 
{\bf expand\-\_\-t} {\bf sep\-Factor} ({\bf graph\-\_\-t} $\ast$g)
\item 
{\bf expand\-\_\-t} {\bf esep\-Factor} ({\bf graph\-\_\-t} $\ast$g)
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{adjust.\-c@{adjust.\-c}!E\-L\-S@{E\-L\-S}}
\index{E\-L\-S@{E\-L\-S}!adjust.c@{adjust.\-c}}
\subsubsection[{E\-L\-S}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\-L\-S~\char`\"{}$|$edgelabel$|$\char`\"{}}\label{adjust_8c_afe48bf347e10395428e27b03c3874df2}


Definition at line 662 of file adjust.\-c.

\index{adjust.\-c@{adjust.\-c}!E\-L\-S\-N@{E\-L\-S\-N}}
\index{E\-L\-S\-N@{E\-L\-S\-N}!adjust.c@{adjust.\-c}}
\subsubsection[{E\-L\-S\-N}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\-L\-S\-N~(sizeof({\bf E\-L\-S})-\/1)}\label{adjust_8c_a2c34a207f8786df7c250e556995a336e}


Definition at line 663 of file adjust.\-c.

\index{adjust.\-c@{adjust.\-c}!I\-S\-\_\-\-L\-N\-O\-D\-E@{I\-S\-\_\-\-L\-N\-O\-D\-E}}
\index{I\-S\-\_\-\-L\-N\-O\-D\-E@{I\-S\-\_\-\-L\-N\-O\-D\-E}!adjust.c@{adjust.\-c}}
\subsubsection[{I\-S\-\_\-\-L\-N\-O\-D\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define I\-S\-\_\-\-L\-N\-O\-D\-E(
\begin{DoxyParamCaption}
\item[{}]{n}
\end{DoxyParamCaption}
)~(!strncmp({\bf agnameof}(n),{\bf E\-L\-S},{\bf E\-L\-S\-N}))}\label{adjust_8c_a4d2f0981de242ffcb1ea2fc6b21b874e}


Definition at line 665 of file adjust.\-c.



Referenced by get\-Sizes().

\index{adjust.\-c@{adjust.\-c}!I\-S\-Z\-E\-R\-O@{I\-S\-Z\-E\-R\-O}}
\index{I\-S\-Z\-E\-R\-O@{I\-S\-Z\-E\-R\-O}!adjust.c@{adjust.\-c}}
\subsubsection[{I\-S\-Z\-E\-R\-O}]{\setlength{\rightskip}{0pt plus 5cm}\#define I\-S\-Z\-E\-R\-O(
\begin{DoxyParamCaption}
\item[{}]{d}
\end{DoxyParamCaption}
)~((fabs(d) $<$ 0.\-000000001))}\label{adjust_8c_a5c1219c3a0c62257286bb80d4eeb3370}


Definition at line 1083 of file adjust.\-c.

\index{adjust.\-c@{adjust.\-c}!I\-T\-E\-M@{I\-T\-E\-M}}
\index{I\-T\-E\-M@{I\-T\-E\-M}!adjust.c@{adjust.\-c}}
\subsubsection[{I\-T\-E\-M}]{\setlength{\rightskip}{0pt plus 5cm}\#define I\-T\-E\-M(
\begin{DoxyParamCaption}
\item[{}]{i, }
\item[{}]{{\bf s}, }
\item[{}]{v}
\end{DoxyParamCaption}
)~\{i, {\bf s}, {\bf S\-T\-R\-L\-E\-N}({\bf s}), v\}}\label{adjust_8c_a4ac3ff788a9888bb2b2045e445233f95}


Definition at line 979 of file adjust.\-c.

\index{adjust.\-c@{adjust.\-c}!S\-E\-P\-F\-A\-C\-T@{S\-E\-P\-F\-A\-C\-T}}
\index{S\-E\-P\-F\-A\-C\-T@{S\-E\-P\-F\-A\-C\-T}!adjust.c@{adjust.\-c}}
\subsubsection[{S\-E\-P\-F\-A\-C\-T}]{\setlength{\rightskip}{0pt plus 5cm}\#define S\-E\-P\-F\-A\-C\-T~0.\-8  /$\ast$ default esep/sep $\ast$/}\label{adjust_8c_a7f96db1fdf9e8bdc2266f365862d4239}


Definition at line 38 of file adjust.\-c.



Referenced by esep\-Factor(), and sep\-Factor().

\index{adjust.\-c@{adjust.\-c}!S\-T\-R\-L\-E\-N@{S\-T\-R\-L\-E\-N}}
\index{S\-T\-R\-L\-E\-N@{S\-T\-R\-L\-E\-N}!adjust.c@{adjust.\-c}}
\subsubsection[{S\-T\-R\-L\-E\-N}]{\setlength{\rightskip}{0pt plus 5cm}\#define S\-T\-R\-L\-E\-N(
\begin{DoxyParamCaption}
\item[{}]{{\bf s}}
\end{DoxyParamCaption}
)~((sizeof({\bf s})-\/1)/sizeof(char))}\label{adjust_8c_a916ffefe1fc74532d08102cca55d8e34}


Definition at line 978 of file adjust.\-c.



Referenced by gvconfig\-\_\-plugin\-\_\-install\-\_\-from\-\_\-library().



\subsection{Function Documentation}
\index{adjust.\-c@{adjust.\-c}!adjust\-Nodes@{adjust\-Nodes}}
\index{adjust\-Nodes@{adjust\-Nodes}!adjust.c@{adjust.\-c}}
\subsubsection[{adjust\-Nodes}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} adjust\-Nodes (
\begin{DoxyParamCaption}
\item[{{\bf graph\-\_\-t} $\ast$}]{G}
\end{DoxyParamCaption}
)}\label{adjust_8c_aa5cbccc76941b3fe1057cb1c807097db}


Definition at line 1235 of file adjust.\-c.



References agget(), and remove\-Overlap\-As().



Referenced by circo\-Layout(), init\-\_\-nop(), and twopi\-\_\-layout().

\index{adjust.\-c@{adjust.\-c}!esep\-Factor@{esep\-Factor}}
\index{esep\-Factor@{esep\-Factor}!adjust.c@{adjust.\-c}}
\subsubsection[{esep\-Factor}]{\setlength{\rightskip}{0pt plus 5cm}{\bf expand\-\_\-t} esep\-Factor (
\begin{DoxyParamCaption}
\item[{{\bf graph\-\_\-t} $\ast$}]{g}
\end{DoxyParamCaption}
)}\label{adjust_8c_a2a062300536778114cba1ed7b05ba6bf}


Definition at line 1313 of file adjust.\-c.



References agget(), D\-F\-L\-T\-\_\-\-M\-A\-R\-G\-I\-N, expand\-\_\-t\-::do\-Add, S\-E\-P\-F\-A\-C\-T, Verbose, expand\-\_\-t\-::x, and expand\-\_\-t\-::y.



Referenced by spline\-Edges().

\index{adjust.\-c@{adjust.\-c}!get\-Sizes@{get\-Sizes}}
\index{get\-Sizes@{get\-Sizes}!adjust.c@{adjust.\-c}}
\subsubsection[{get\-Sizes}]{\setlength{\rightskip}{0pt plus 5cm}double$\ast$ get\-Sizes (
\begin{DoxyParamCaption}
\item[{{\bf Agraph\-\_\-t} $\ast$}]{g, }
\item[{{\bf pointf}}]{pad, }
\item[{{\bf int} $\ast$}]{n\-\_\-elabels, }
\item[{{\bf int} $\ast$$\ast$}]{elabels}
\end{DoxyParamCaption}
)}\label{adjust_8c_a228ac61faf14c8702ec7150a8997707d}


Definition at line 670 of file adjust.\-c.



References agfstnode(), agnnodes(), agnxtnode(), I\-S\-\_\-\-L\-N\-O\-D\-E, N\-\_\-\-G\-N\-E\-W, N\-D\-\_\-height, N\-D\-\_\-id, N\-D\-\_\-width, Ndim, real, pointf\-\_\-s\-::x, and pointf\-\_\-s\-::y.

\index{adjust.\-c@{adjust.\-c}!graph\-Adjust\-Mode@{graph\-Adjust\-Mode}}
\index{graph\-Adjust\-Mode@{graph\-Adjust\-Mode}!adjust.c@{adjust.\-c}}
\subsubsection[{graph\-Adjust\-Mode}]{\setlength{\rightskip}{0pt plus 5cm}{\bf adjust\-\_\-data}$\ast$ graph\-Adjust\-Mode (
\begin{DoxyParamCaption}
\item[{{\bf graph\-\_\-t} $\ast$}]{G, }
\item[{{\bf adjust\-\_\-data} $\ast$}]{dp, }
\item[{char $\ast$}]{dflt}
\end{DoxyParamCaption}
)}\label{adjust_8c_adf27cf83639fcb8843e4311fc51922aa}


Definition at line 1077 of file adjust.\-c.



References agget().



Referenced by neato\-\_\-layout(), and sfdp\-\_\-layout().

\index{adjust.\-c@{adjust.\-c}!make\-Matrix@{make\-Matrix}}
\index{make\-Matrix@{make\-Matrix}!adjust.c@{adjust.\-c}}
\subsubsection[{make\-Matrix}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Sparse\-Matrix} make\-Matrix (
\begin{DoxyParamCaption}
\item[{{\bf Agraph\-\_\-t} $\ast$}]{g, }
\item[{{\bf int}}]{dim, }
\item[{{\bf Sparse\-Matrix} $\ast$}]{D}
\end{DoxyParamCaption}
)}\label{adjust_8c_a986889eeb7dae8fd5ff6715ce6fc49d0}


Definition at line 703 of file adjust.\-c.



References agfindedgeattr, agfstnode(), agfstout(), aghead(), agnedges(), agnnodes(), agnxtnode(), agnxtout(), agxget(), M\-A\-T\-R\-I\-X\-\_\-\-T\-Y\-P\-E\-\_\-\-R\-E\-A\-L, N\-\_\-\-G\-N\-E\-W, N\-\_\-\-N\-E\-W, N\-D\-\_\-id, N\-U\-L\-L, real, and Sparse\-Matrix\-\_\-from\-\_\-coordinate\-\_\-arrays().

\index{adjust.\-c@{adjust.\-c}!normalize@{normalize}}
\index{normalize@{normalize}!adjust.c@{adjust.\-c}}
\subsubsection[{normalize}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} normalize (
\begin{DoxyParamCaption}
\item[{{\bf graph\-\_\-t} $\ast$}]{g}
\end{DoxyParamCaption}
)}\label{adjust_8c_ab0353f50e72f2047828a064dd74c724f}


Definition at line 922 of file adjust.\-c.



References agfstnode(), agfstout(), aghead(), agnxtnode(), agtail(), N\-D\-\_\-pos, N\-U\-L\-L, pointf\-\_\-s\-::x, and pointf\-\_\-s\-::y.



Referenced by remove\-Overlap\-With().

\index{adjust.\-c@{adjust.\-c}!remove\-Overlap\-As@{remove\-Overlap\-As}}
\index{remove\-Overlap\-As@{remove\-Overlap\-As}!adjust.c@{adjust.\-c}}
\subsubsection[{remove\-Overlap\-As}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} remove\-Overlap\-As (
\begin{DoxyParamCaption}
\item[{{\bf graph\-\_\-t} $\ast$}]{G, }
\item[{char $\ast$}]{flag}
\end{DoxyParamCaption}
)}\label{adjust_8c_a585a969b2a280dbf4c147b4e5970735d}


Definition at line 1221 of file adjust.\-c.



References agnnodes(), and remove\-Overlap\-With().



Referenced by adjust\-Nodes(), and fdp\-\_\-x\-Layout().

\index{adjust.\-c@{adjust.\-c}!remove\-Overlap\-With@{remove\-Overlap\-With}}
\index{remove\-Overlap\-With@{remove\-Overlap\-With}!adjust.c@{adjust.\-c}}
\subsubsection[{remove\-Overlap\-With}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} remove\-Overlap\-With (
\begin{DoxyParamCaption}
\item[{{\bf graph\-\_\-t} $\ast$}]{G, }
\item[{{\bf adjust\-\_\-data} $\ast$}]{am}
\end{DoxyParamCaption}
)}\label{adjust_8c_af3dcfe27140f705c6c4724f4545a08ad}


Definition at line 1118 of file adjust.\-c.



References agerr(), agnameof(), agnnodes(), A\-G\-W\-A\-R\-N, A\-M\-\_\-\-C\-O\-M\-P\-R\-E\-S\-S, A\-M\-\_\-\-I\-P\-S\-E\-P, A\-M\-\_\-\-N\-O\-N\-E, A\-M\-\_\-\-N\-S\-C\-A\-L\-E, A\-M\-\_\-\-O\-R\-T\-H\-O, A\-M\-\_\-\-O\-R\-T\-H\-O\-\_\-\-Y\-X, A\-M\-\_\-\-O\-R\-T\-H\-O\-X\-Y, A\-M\-\_\-\-O\-R\-T\-H\-O\-Y\-X, A\-M\-\_\-\-P\-O\-R\-T\-H\-O, A\-M\-\_\-\-P\-O\-R\-T\-H\-O\-\_\-\-Y\-X, A\-M\-\_\-\-P\-O\-R\-T\-H\-O\-X\-Y, A\-M\-\_\-\-P\-O\-R\-T\-H\-O\-Y\-X, A\-M\-\_\-\-P\-R\-I\-S\-M, A\-M\-\_\-\-P\-U\-S\-H, A\-M\-\_\-\-P\-U\-S\-H\-P\-U\-L\-L, A\-M\-\_\-\-S\-C\-A\-L\-E, A\-M\-\_\-\-S\-C\-A\-L\-E\-X\-Y, A\-M\-\_\-\-V\-O\-R, A\-M\-\_\-\-V\-P\-S\-C, c\-Adjust(), fdp\-Adjust(), adjust\-\_\-data\-::mode, normalize(), adjust\-\_\-data\-::print, sc\-Adjust(), and Verbose.



Referenced by neato\-\_\-layout(), remove\-Overlap\-As(), and sfdp\-\_\-layout().

\index{adjust.\-c@{adjust.\-c}!sep\-Factor@{sep\-Factor}}
\index{sep\-Factor@{sep\-Factor}!adjust.c@{adjust.\-c}}
\subsubsection[{sep\-Factor}]{\setlength{\rightskip}{0pt plus 5cm}{\bf expand\-\_\-t} sep\-Factor (
\begin{DoxyParamCaption}
\item[{{\bf graph\-\_\-t} $\ast$}]{g}
\end{DoxyParamCaption}
)}\label{adjust_8c_a3cafe9b57172d3cc9dad09b5407b93c4}


Definition at line 1287 of file adjust.\-c.



References agget(), D\-F\-L\-T\-\_\-\-M\-A\-R\-G\-I\-N, expand\-\_\-t\-::do\-Add, S\-E\-P\-F\-A\-C\-T, Verbose, expand\-\_\-t\-::x, and expand\-\_\-t\-::y.



Referenced by c\-Adjust(), compound\-Edges(), sc\-Adjust(), and sfdp\-\_\-layout().

