Related to #1785.
pdfdir = $(pkgdatadir)/doc/pdf
AM_CPPFLAGS = \
+ -I$(top_srcdir)/lib \
-I$(top_srcdir)/lib/common \
-I$(top_srcdir)/lib/neatogen \
-I$(top_srcdir)/lib/sfdpgen \
#include <stdio.h>
#include <stdlib.h>
#define STANDALONE
-#include "general.h"
-#include "QuadTree.h"
+#include <sparse/general.h>
+#include <sparse/QuadTree.h>
#include <time.h>
-#include "SparseMatrix.h"
+#include <sparse/SparseMatrix.h>
#include <getopt.h>
-#include "string.h"
+#include <string.h>
#include "make_map.h"
-#include "spring_electrical.h"
-#include "post_process.h"
-#include "overlap.h"
-#include "clustering.h"
-#include "ingraphs.h"
-#include "DotIO.h"
-#include "colorutil.h"
+#include <sfdpgen/spring_electrical.h>
+#include <sfdpgen/post_process.h>
+#include <neatogen/overlap.h>
+#include <sparse/clustering.h>
+#include <ingraphs/ingraphs.h>
+#include <sparse/DotIO.h>
+#include <sparse/colorutil.h>
#ifdef _WIN32 /*dependencies*/
#pragma comment( lib, "cgraph.lib" )
#include <math.h>
#include "power.h"
-/* #include "general.h" */
-/* #include "SparseMatrix.h" */
-/* #include "country_graph_coloring.h" */
-/* #include "power.h" */
-#include "PriorityQueue.h"
-#include "time.h"
+#include <sfdpgen/PriorityQueue.h>
+#include <time.h>
/* int Verbose = FALSE; */
#ifndef COUNTRY_GRAPH_CLUSTERING_H
#define COUNTRY_GRAPH_CLUSTERING_H
-#include <SparseMatrix.h>
+#include <sparse/SparseMatrix.h>
enum {DO_SWAPPING = 1, DO_SWAPPING_CHEAP};
#include <stdio.h>
#include <stdlib.h>
#define STANDALONE
-#include "general.h"
-#include "QuadTree.h"
+#include <sparse/general.h>
+#include <sparse/QuadTree.h>
#include <time.h>
-#include "SparseMatrix.h"
+#include <sparse/SparseMatrix.h>
#include <getopt.h>
-#include "string.h"
+#include <string.h>
#include "make_map.h"
-#include "spring_electrical.h"
-#include "post_process.h"
-#include "overlap.h"
-#include "clustering.h"
-#include "ingraphs.h"
-#include "DotIO.h"
-#include "colorutil.h"
-#include "color_palette.h"
+#include <sfdpgen/spring_electrical.h>
+#include <sfdpgen/post_process.h>
+#include <neatogen/overlap.h>
+#include <sparse/clustering.h>
+#include <ingraphs/ingraphs.h>
+#include <sparse/DotIO.h>
+#include <sparse/colorutil.h>
+#include <sparse/color_palette.h>
#ifdef _WIN32
#define strdup(x) _strdup(x)
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>$(SolutionDir)windows\include;$(SolutionDir)windows\getopt;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\edgepaint;$(SolutionDir)lib\ingraphs;$(SolutionDir)lib\neatogen;$(SolutionDir)lib\sfdpgen;$(SolutionDir)lib\sparse;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>$(SolutionDir)windows\include;$(SolutionDir)windows\getopt;$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\edgepaint;$(SolutionDir)lib\ingraphs;$(SolutionDir)lib\neatogen;$(SolutionDir)lib\sfdpgen;$(SolutionDir)lib\sparse;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
- <AdditionalIncludeDirectories>$(SolutionDir)windows\include;$(SolutionDir)windows\getopt;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\edgepaint;$(SolutionDir)lib\ingraphs;$(SolutionDir)lib\neatogen;$(SolutionDir)lib\sfdpgen;$(SolutionDir)lib\sparse;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>$(SolutionDir)windows\include;$(SolutionDir)windows\getopt;$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\edgepaint;$(SolutionDir)lib\ingraphs;$(SolutionDir)lib\neatogen;$(SolutionDir)lib\sfdpgen;$(SolutionDir)lib\sparse;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PrecompiledHeader />
<WarningLevel>Level4</WarningLevel>
*************************************************************************/
#define STANDALONE
-#include "SparseMatrix.h"
-#include "general.h"
+#include <sparse/SparseMatrix.h>
+#include <sparse/general.h>
#include <math.h>
-#include "QuadTree.h"
-#include "string.h"
-/* #include "types.h" */
-#include <cgraph.h>
+#include <sparse/QuadTree.h>
+#include <string.h>
+#include <cgraph/cgraph.h>
#include "make_map.h"
-/* #include "ps.h" */
-#include "stress_model.h"
+#include <sfdpgen/stress_model.h>
#include "country_graph_coloring.h"
-#include "colorutil.h"
-#include "delaunay.h"
+#include <sparse/colorutil.h>
+#include <neatogen/delaunay.h>
#ifdef SINGLE
#define REAL float
#endif /* not SINGLE */
/* #include "triangle.h" */
-#include "lab.h"
-#include "node_distinct_coloring.h"
+#include <edgepaint/lab.h>
+#include <edgepaint/node_distinct_coloring.h>
void map_palette_optimal_coloring(char *color_scheme, char *lightness, SparseMatrix A0, real accuracy, int seed,
float **rgb_r, float **rgb_g, float **rgb_b){
#ifndef MAKE_MAP_H
#define MAKE_MAP_H
-#include <SparseMatrix.h>
-#include <cgraph.h>
+#include <sparse/SparseMatrix.h>
+#include <cgraph/cgraph.h>
int make_map_from_rectangle_groups(int exclude_random, int include_OK_points, int n, int dim, real *x, real *sizes,
int *grouping, SparseMatrix graph, real bounding_box_margin[], int *nrandom,int *nart, int nedgep,
*************************************************************************/
#include "power.h"
-#include "SparseMatrix.h"
+#include <sparse/SparseMatrix.h>
void power_method(void (*matvec)(void *, int, int, real*, real **, int, int*),
void *A, int n, int K, int random_seed, int maxit, real tol, real **eigv, real **eigs){
#ifndef POWER_H
#define POWER_H
-#include <general.h>
+#include <sparse/general.h>
/* if you have a standard dense/sparse matrix, set matvec to matvec_dense/matvec_sparse*/
void power_method(void (*matvec)(void *M, int m, int n, real *u, real **v, int transposed, int *flag),