Related to #1785.
-include_directories(
- ${CMAKE_CURRENT_SOURCE_DIR}
- ${GRAPHVIZ_LIB_DIR}/cdt
- ${GRAPHVIZ_LIB_DIR}/cgraph
- ${GRAPHVIZ_LIB_DIR}/common
- ${GRAPHVIZ_LIB_DIR}/gvc
- ${GRAPHVIZ_LIB_DIR}/ortho
- ${GRAPHVIZ_LIB_DIR}/pack
- ${GRAPHVIZ_LIB_DIR}/pathplan
- ${GRAPHVIZ_LIB_DIR}/rbtree
- ${GRAPHVIZ_LIB_DIR}/sfdpgen
- ${GRAPHVIZ_LIB_DIR}/sparse
-)
-
set(sources
# Header files
adjust.h
mosek_quad_solve.h
quad_prog_vpsc.c
)
- include_directories(${GRAPHVIZ_LIB_DIR}/vpsc)
+ target_include_directories(${GRAPHVIZ_LIB_DIR}/vpsc)
endif (with_ipsepcola)
add_library(neatogen STATIC
${sources}
)
+
+target_include_directories(neatogen PRIVATE
+ ${GRAPHVIZ_LIB_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${GRAPHVIZ_LIB_DIR}/cdt
+ ${GRAPHVIZ_LIB_DIR}/cgraph
+ ${GRAPHVIZ_LIB_DIR}/common
+ ${GRAPHVIZ_LIB_DIR}/gvc
+ ${GRAPHVIZ_LIB_DIR}/ortho
+ ${GRAPHVIZ_LIB_DIR}/pack
+ ${GRAPHVIZ_LIB_DIR}/pathplan
+ ${GRAPHVIZ_LIB_DIR}/rbtree
+ ${GRAPHVIZ_LIB_DIR}/sfdpgen
+ ${GRAPHVIZ_LIB_DIR}/sparse
+)
## Process this file with automake to produce Makefile.in
AM_CPPFLAGS = \
+ -I$(top_srcdir)/lib \
-I$(top_srcdir)/lib/common \
-I$(top_srcdir)/lib/gvc \
-I$(top_srcdir)/lib/pack \
* order to reduce/remove node overlaps.
*/
-#include "neato.h"
-#include "agxbuf.h"
-#include "utils.h"
-#include "ctype.h"
-#include "voronoi.h"
-#include "info.h"
-#include "edges.h"
-#include "site.h"
-#include "heap.h"
-#include "hedges.h"
-#include "digcola.h"
+#include <neatogen/neato.h>
+#include <cgraph/agxbuf.h>
+#include <common/utils.h>
+#include <ctype.h>
+#include <neatogen/voronoi.h>
+#include <neatogen/info.h>
+#include <neatogen/edges.h>
+#include <neatogen/site.h>
+#include <neatogen/heap.h>
+#include <neatogen/hedges.h>
+#include <neatogen/digcola.h>
#if ((defined(HAVE_GTS) || defined(HAVE_TRIANGLE)) && defined(SFDP))
-#include "overlap.h"
+#include <neatogen/overlap.h>
#endif
#ifdef IPSEPCOLA
-#include "csolve_VPSC.h"
-#include "quad_prog_vpsc.h"
+#include <vpsc/csolve_VPSC.h>
+#include <neatogen/quad_prog_vpsc.h>
#endif
-#include "strcasecmp.h"
+#include <cgraph/strcasecmp.h>
#define SEPFACT 0.8 /* default esep/sep */
******************************************/
-#include "bfs.h"
+#include <neatogen/bfs.h>
#include <stdlib.h>
/* #include <math.h> */
#include "config.h"
-#include "SparseMatrix.h"
-#include "logic.h"
-#include "memory.h"
-#include "delaunay.h"
+#include <sparse/SparseMatrix.h>
+#include <common/logic.h>
+#include <common/memory.h>
+#include <neatogen/delaunay.h>
SparseMatrix call_tri(int n, int dim, real * x)
{
* likely it could be improved by using edge weights, somehow.
* Return 1 if successful; 0 otherwise (e.g., graph is disconnected).
*/
-#include "neato.h"
+#include <neatogen/neato.h>
int solveCircuit(int nG, double **Gm, double **Gm_inv)
{
*************************************************************************/
-#include "kkutils.h"
-#include "closest.h"
+#include <neatogen/kkutils.h>
+#include <neatogen/closest.h>
#include <stdlib.h>
/*****************************************
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include <digcola.h>
+#include <neatogen/digcola.h>
#ifdef DIGCOLA
-#include "kkutils.h"
+#include <neatogen/kkutils.h>
static int *given_levels = NULL;
/*
*************************************************************************/
-#include "matrix_ops.h"
-#include "conjgrad.h"
+#include <neatogen/matrix_ops.h>
+#include <neatogen/conjgrad.h>
/* #include <math.h> */
#include <stdlib.h>
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "digcola.h"
+#include <neatogen/digcola.h>
#ifdef DIGCOLA
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <float.h>
-#include "stress.h"
-#include "dijkstra.h"
-#include "bfs.h"
-#include "matrix_ops.h"
-#include "kkutils.h"
-#include "conjgrad.h"
-#include "quad_prog_solver.h"
-#include "matrix_ops.h"
+#include <neatogen/stress.h>
+#include <neatogen/dijkstra.h>
+#include <neatogen/bfs.h>
+#include <neatogen/matrix_ops.h>
+#include <neatogen/kkutils.h>
+#include <neatogen/conjgrad.h>
+#include <neatogen/quad_prog_solver.h>
+#include <neatogen/matrix_ops.h>
#define localConstrMajorIterations 15
#define levels_sep_tol 1e-1
* Tim Dwyer, 2006
**********************************************************/
-#include "digcola.h"
+#include <neatogen/digcola.h>
#ifdef IPSEPCOLA
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <float.h>
-#include "stress.h"
-#include "dijkstra.h"
-#include "bfs.h"
-#include "matrix_ops.h"
-#include "kkutils.h"
-#include "conjgrad.h"
-#include <csolve_VPSC.h>
-#include "quad_prog_vpsc.h"
-#include "quad_prog_solver.h"
-#include "matrix_ops.h"
+#include <neatogen/stress.h>
+#include <neatogen/dijkstra.h>
+#include <neatogen/bfs.h>
+#include <neatogen/matrix_ops.h>
+#include <neatogen/kkutils.h>
+#include <neatogen/conjgrad.h>
+#include <vpsc/csolve_VPSC.h>
+#include <neatogen/quad_prog_vpsc.h>
+#include <neatogen/quad_prog_solver.h>
+#include <neatogen/matrix_ops.h>
#define localConstrMajorIterations 1000
#include "config.h"
-#include "neato.h"
-#include "adjust.h"
+#include <neatogen/neato.h>
+#include <neatogen/adjust.h>
/* For precision, scale up before algorithms, then scale down */
#define SCALE 10
#include <stdlib.h>
#include <string.h>
#include <math.h>
-#include "cgraph.h" /* for agerr() and friends */
-#include "delaunay.h"
-#include "memory.h"
-#include "logic.h"
+#include <cgraph/cgraph.h> /* for agerr() and friends */
+#include <neatogen/delaunay.h>
+#include <common/memory.h>
+#include <common/logic.h>
#if HAVE_GTS
#include <gts.h>
}
#elif HAVE_TRIANGLE
#define TRILIBRARY
-#include "triangle.c"
-#include "assert.h"
-#include "general.h"
+#include <triangle.c>
+#include <assert.h>
+#include <sparse/general.h>
int*
get_triangles (double *x, int n, int* tris)
******************************************/
-#include "bfs.h"
-#include "dijkstra.h"
+#include <neatogen/bfs.h>
+#include <neatogen/dijkstra.h>
#include <limits.h>
#include <stdlib.h>
/* #include <math.h> */
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "neato.h"
-#include "mem.h"
-#include "info.h"
-#include "edges.h"
+#include <neatogen/neato.h>
+#include <neatogen/mem.h>
+#include <neatogen/info.h>
+#include <neatogen/edges.h>
#include <math.h>
************************************************/
-#include "dijkstra.h"
-#include "bfs.h"
-#include "kkutils.h"
-#include "embed_graph.h"
+#include <neatogen/dijkstra.h>
+#include <neatogen/bfs.h>
+#include <neatogen/kkutils.h>
+#include <neatogen/embed_graph.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "geometry.h"
+#include <neatogen/geometry.h>
#include <math.h>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>$(ProjectDir);$(SolutionDir)windows\include;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\pack;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\ortho;$(SolutionDir)lib\rbtree;$(SolutionDir)lib\sfdpgen;$(SolutionDir)lib\sparse;$(SolutionDir)lib\vpsc</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>$(ProjectDir);$(SolutionDir)windows\include;$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\pack;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\ortho;$(SolutionDir)lib\rbtree;$(SolutionDir)lib\sfdpgen;$(SolutionDir)lib\sparse;$(SolutionDir)lib\vpsc</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;_LIB;WIN32_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
- <AdditionalIncludeDirectories>$(ProjectDir);$(SolutionDir)windows\include;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\pack;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\ortho;$(SolutionDir)lib\rbtree;$(SolutionDir)lib\sfdpgen;$(SolutionDir)lib\sparse;$(SolutionDir)lib\vpsc</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>$(ProjectDir);$(SolutionDir)windows\include;$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\pack;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\ortho;$(SolutionDir)lib\rbtree;$(SolutionDir)lib\sfdpgen;$(SolutionDir)lib\sparse;$(SolutionDir)lib\vpsc</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;_LIB;WIN32_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PrecompiledHeader />
<WarningLevel>Level4</WarningLevel>
*************************************************************************/
-#include "render.h"
+#include <common/render.h>
#include <stdio.h>
-#include "mem.h"
-#include "hedges.h"
-#include "heap.h"
+#include <neatogen/mem.h>
+#include <neatogen/hedges.h>
+#include <neatogen/heap.h>
static Halfedge *PQhash;
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "mem.h"
-#include "hedges.h"
-#include "render.h"
+#include <neatogen/mem.h>
+#include <neatogen/hedges.h>
+#include <common/render.h>
#define DELETED -2
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "neato.h"
+#include <neatogen/neato.h>
#include <stdio.h>
-#include "mem.h"
-#include "info.h"
+#include <neatogen/mem.h>
+#include <neatogen/info.h>
Info_t *nodeInfo; /* Array of node info */
*************************************************************************/
-#include "bfs.h"
-#include "dijkstra.h"
-#include "kkutils.h"
+#include <neatogen/bfs.h>
+#include <neatogen/dijkstra.h>
+#include <neatogen/kkutils.h>
#include <stdlib.h>
#include <math.h>
*************************************************************************/
#include <math.h>
-#include "neato.h"
-#include "pathutil.h"
+#include <neatogen/neato.h>
+#include <pathplan/pathutil.h>
#include <setjmp.h>
static jmp_buf jbuf;
*/
#include <math.h>
-#include <neato.h>
+#include <neatogen/neato.h>
static double *scales;
static double **lu;
*/
#include <stdlib.h>
-#include "render.h"
+#include <common/render.h>
extern int lu_decompose(double **a, int n);
extern void lu_solve(double *x, double *b, int n);
*************************************************************************/
-#include "matrix_ops.h"
-#include "memory.h"
+#include <neatogen/matrix_ops.h>
+#include <common/memory.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "geometry.h"
-#include "render.h"
+#include <neatogen/geometry.h>
+#include <common/render.h>
typedef struct freenode {
struct freenode *nextfree;
struct freenode *nodes;
} Freeblock;
-#include "mem.h"
+#include <neatogen/mem.h>
#include <stdlib.h>
#include <stdio.h>
#ifdef MOSEK
#include <stdio.h>
#include <assert.h>
-#include "defs.h"
-#include "mosek_quad_solve.h"
-#include "quad_prog_vpsc.h"
+#include <neatogen/defs.h>
+#include <neatogen/mosek_quad_solve.h>
+#include <neatogen/quad_prog_vpsc.h>
/* #define DUMP_CONSTRAINTS */
/* #define EQUAL_WIDTH_LEVELS */
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include <multispline.h>
-#include <delaunay.h>
-#include <neatoprocs.h>
+#include <neatogen/multispline.h>
+#include <neatogen/delaunay.h>
+#include <neatogen/neatoprocs.h>
#include <math.h>
#define PQVTYPE float
#define PQ_TYPES
-#include "fPQ.h"
+#include <neatogen/fPQ.h>
#undef PQ_TYPES
typedef struct {
#define N_IDX(pq,n) ((PPQ*)pq)->idxs[n]
#define PQ_CODE
-#include "fPQ.h"
+#include <neatogen/fPQ.h>
#undef PQ_CODE
#define N_DAD(n) dad[n]
#endif
#include <ctype.h>
-#include "neato.h"
-#include "pack.h"
-#include "stress.h"
+#include <neatogen/neato.h>
+#include <pack/pack.h>
+#include <neatogen/stress.h>
#ifdef DIGCOLA
-#include "digcola.h"
+#include <neatogen/digcola.h>
#endif
-#include "kkutils.h"
-#include "pointset.h"
-#include "sgd.h"
-#include "strcasecmp.h"
+#include <neatogen/kkutils.h>
+#include <common/pointset.h>
+#include <neatogen/sgd.h>
+#include <cgraph/strcasecmp.h>
#ifndef HAVE_SRAND48
#define srand48 srand
#include "config.h"
-#include "neato.h"
-#include "adjust.h"
-#include "pathplan.h"
-#include "vispath.h"
-#include "multispline.h"
+#include <neatogen/neato.h>
+#include <neatogen/adjust.h>
+#include <pathplan/pathplan.h>
+#include <pathplan/vispath.h>
+#include <neatogen/multispline.h>
#ifndef HAVE_DRAND48
extern double drand48(void);
#endif
#ifdef ORTHO
-#include <ortho.h>
+#include <ortho/ortho.h>
#endif
extern int in_poly(Ppoly_t argpoly, Ppoint_t q);
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "digcola.h"
+#include <neatogen/digcola.h>
#ifdef DIGCOLA
-#include "matrix_ops.h"
-#include "conjgrad.h"
+#include <neatogen/matrix_ops.h>
+#include <neatogen/conjgrad.h>
static void construct_b(vtx_data * graph, int n, double *b)
{
*************************************************************************/
#include "config.h"
-#include "overlap.h"
+#include <neatogen/overlap.h>
#if ((defined(HAVE_GTS) || defined(HAVE_TRIANGLE)) && defined(SFDP))
-#include "SparseMatrix.h"
-#include "call_tri.h"
-#include "red_black_tree.h"
-#include "types.h"
+#include <sparse/SparseMatrix.h>
+#include <neatogen/call_tri.h>
+#include <rbtree/red_black_tree.h>
+#include <common/types.h>
#include <math.h>
-#include "memory.h"
-#include "globals.h"
+#include <common/memory.h>
+#include <common/globals.h>
#include <time.h>
static void ideal_distance_avoid_overlap(int dim, SparseMatrix A, real *x, real *width, real *ideal_distance, real *tmax, real *tmin){
}
#else
-#include "types.h"
-#include "SparseMatrix.h"
+#include <common/types.h>
+#include <sparse/SparseMatrix.h>
void remove_overlap(int dim, SparseMatrix A, real *x, real *label_sizes, int ntry, real initial_scaling,
int edge_labeling_scheme, int n_constr_nodes, int *constr_nodes, SparseMatrix A_constr, int do_shrinking, int *flag)
{
*************************************************************************/
-#include "matrix_ops.h"
-#include "pca.h"
-#include "closest.h"
+#include <neatogen/matrix_ops.h>
+#include <neatogen/pca.h>
+#include <neatogen/closest.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
/* poly.c
*/
-#include "neato.h"
+#include <neatogen/neato.h>
#include <assert.h>
#include <string.h>
#include <math.h>
-#include "poly.h"
-#include "geom.h"
-#include "mem.h"
+#include <neatogen/poly.h>
+#include <common/geom.h>
+#include <neatogen/mem.h>
#define BOX 1
#define ISBOX(p) ((p)->kind & BOX)
*************************************************************************/
#include <stdio.h>
-#include <vis.h>
+#include <pathplan/vis.h>
typedef Ppoint_t point;
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "digcola.h"
+#include <neatogen/digcola.h>
#ifdef DIGCOLA
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <float.h>
#include <assert.h>
-#include "matrix_ops.h"
-#include "kkutils.h"
-#include "quad_prog_solver.h"
+#include <neatogen/matrix_ops.h>
+#include <neatogen/kkutils.h>
+#include <neatogen/quad_prog_solver.h>
#define quad_prog_tol 1e-2
* Tim Dwyer, 2006
**********************************************************/
-#include "digcola.h"
+#include <neatogen/digcola.h>
#ifdef IPSEPCOLA
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <float.h>
#include <assert.h>
-#include "matrix_ops.h"
-#include "kkutils.h"
-#include <csolve_VPSC.h>
-#include "quad_prog_vpsc.h"
-#include "quad_prog_solver.h"
+#include <neatogen/matrix_ops.h>
+#include <neatogen/kkutils.h>
+#include <vpsc/csolve_VPSC.h>
+#include <neatogen/quad_prog_vpsc.h>
+#include <neatogen/quad_prog_solver.h>
/* #define CONMAJ_LOGGING 1 */
#define quad_prog_tol 1e-4
#include <limits.h>
#include <math.h>
-#include "randomkit.h"
+#include <neatogen/randomkit.h>
#ifndef RK_DEV_URANDOM
#define RK_DEV_URANDOM "/dev/urandom"
-#include "neato.h"
-#include "sgd.h"
-#include "dijkstra.h"
-#include "randomkit.h"
-#include "neatoprocs.h"
+#include <neatogen/neato.h>
+#include <neatogen/sgd.h>
+#include <neatogen/dijkstra.h>
+#include <neatogen/randomkit.h>
+#include <neatogen/neatoprocs.h>
#include <math.h>
#include <stdlib.h>
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "mem.h"
-#include "site.h"
+#include <neatogen/mem.h>
+#include <neatogen/site.h>
#include <math.h>
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "digcola.h"
+#include <neatogen/digcola.h>
#ifdef DIGCOLA
-#include "kkutils.h"
-#include "matrix_ops.h"
-#include "conjgrad.h"
+#include <neatogen/kkutils.h>
+#include <neatogen/matrix_ops.h>
+#include <neatogen/conjgrad.h>
static void
standardize(double* orthog, int nvtxs)
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
-#include "render.h"
+#include <common/render.h>
#define asub(i,j) a[(i)*n + (j)]
*************************************************************************/
-#include "neato.h"
-#include "dijkstra.h"
-#include "bfs.h"
-#include "pca.h"
-#include "matrix_ops.h"
-#include "conjgrad.h"
-#include "embed_graph.h"
-#include "kkutils.h"
-#include "stress.h"
+#include <neatogen/neato.h>
+#include <neatogen/dijkstra.h>
+#include <neatogen/bfs.h>
+#include <neatogen/pca.h>
+#include <neatogen/matrix_ops.h>
+#include <neatogen/conjgrad.h>
+#include <neatogen/embed_graph.h>
+#include <neatogen/kkutils.h>
+#include <neatogen/stress.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include "config.h"
-#include "neato.h"
-#include "stress.h"
+#include <neatogen/neato.h>
+#include <neatogen/stress.h>
#include <time.h>
#ifndef _WIN32
#include <unistd.h>
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "mem.h"
-#include "geometry.h"
-#include "edges.h"
-#include "hedges.h"
-#include "heap.h"
-#include "voronoi.h"
+#include <neatogen/mem.h>
+#include <neatogen/geometry.h>
+#include <neatogen/edges.h>
+#include <neatogen/hedges.h>
+#include <neatogen/heap.h>
+#include <neatogen/voronoi.h>
void voronoi(int triangulate, Site * (*nextsite) (void))