* Contributors: Details at https://graphviz.org
*************************************************************************/
-
-
-#ifndef ADJUST_H
-#define ADJUST_H
+#pragma once
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
}
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-#ifndef _BFS_H_
-#define _BFS_H_
-
#include <neatogen/defs.h>
typedef struct {
extern int bfs_bounded(int, vtx_data *, int, DistType *, Queue *, int,
int *);
-#endif
-
#ifdef __cplusplus
}
#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef CALL_TRI_H
-#define CALL_TRI_H
+#pragma once
SparseMatrix call_tri(int n, int dim, real * x);
SparseMatrix call_tri2(int n, int dim, real * x);
-
-#endif
-
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-
-
-#ifndef CLOSEST_H
-#define CLOSEST_H
-
#include <neatogen/defs.h>
extern void closest_pairs2graph(double *, int, int, vtx_data **);
-#endif
-
#ifdef __cplusplus
}
#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-
-
-#ifndef _CG_H_
-#define _CG_H_
-
#include <neatogen/defs.h>
/*************************
extern int conjugate_gradient_mkernel(float *, float *, float *, int,
double, int);
-#endif
-
#ifdef __cplusplus
}
#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-#ifndef _DEFS_H_
-#define _DEFS_H_
-
#include <neatogen/neato.h>
#include <neatogen/sparsegraph.h>
#ifdef __cplusplus
}
#endif
-
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef DELAUNAY_H
-#define DELAUNAY_H
+#pragma once
#include <neatogen/sparsegraph.h>
surface_t* mkSurface (double *x, double *y, int n, int* segs, int nsegs);
void freeSurface (surface_t* s);
-
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-#ifndef DIGCOLA_H
-#define DIGCOLA_H
-
#include <neatogen/defs.h>
#ifdef DIGCOLA
extern int compute_y_coords(vtx_data*, int, double*, int);
extern int stress_majorization_cola(vtx_data*, int, int, double**, node_t**, int, int, int, ipsep_options*);
#endif
#endif
-#endif
#ifdef __cplusplus
}
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-
-
-#ifndef _DIJKSTRA_H_
-#define _DIJKSTRA_H_
-
#include <neatogen/defs.h>
#include <neatogen/sgd.h>
int *);
extern int dijkstra_sgd(graph_sgd *, int, term_sgd *);
-#endif
-
#ifdef __cplusplus
}
#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-
-
-#ifndef EDGES_H
-#define EDGES_H
-
#include <neatogen/site.h>
typedef struct Edge {
extern void clip_line(Edge * e);
extern Edge *gvbisect(Site *, Site *);
-#endif
-
#ifdef __cplusplus
}
#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-
-
-#ifndef EMBED_GRAPH_H_
-#define EMBED_GRAPH_H_
-
#include <neatogen/defs.h>
extern void embed_graph(vtx_data * graph, int n, int dim, DistType ***,
int);
extern void center_coordinate(DistType **, int, int);
-#endif
-
#ifdef __cplusplus
}
#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-
-
-#ifndef GEOMETRY_H
-#define GEOMETRY_H
-
#ifdef HAVE_POINTF_S
typedef pointf Point;
#else
extern int leftOf(Point a, Point b, Point c);
extern int intersection(Point a, Point b, Point c, Point d, Point * p);
-#endif
-
-
#ifdef __cplusplus
}
#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-
-
-#ifndef HEAP_H
-#define HEAP_H
-
#include <neatogen/hedges.h>
extern void PQinitialize(void);
extern void PQdelete(Halfedge *);
extern void PQinsert(Halfedge *, Site *, double);
-#endif
-
#ifdef __cplusplus
}
#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-
-
-#ifndef HEDGES_H
-#define HEDGES_H
-
#include <neatogen/site.h>
#include <neatogen/edges.h>
extern Halfedge *ELleftbnd(Point *);
extern Site *leftreg(Halfedge *), *rightreg(Halfedge *);
-#endif
-
#ifdef __cplusplus
}
#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-
-#ifndef INFO_H
-#define INFO_H
-
#include <neatogen/voronoi.h>
#include <neatogen/poly.h>
extern void infoinit(void);
/* Insert vertex into sorted list */
extern void addVertex(Site *, double, double);
-#endif
#ifdef __cplusplus
}
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-
-
-#ifndef KKUTILS_H_
-#define KKUTILS_H_
-
#include <neatogen/defs.h>
extern void fill_neighbors_vec_unweighted(vtx_data *, int vtx,
extern void restore_old_weights(vtx_data * graph, int n,
float *old_weights);
-#endif
-
#ifdef __cplusplus
}
#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-
-
-#ifndef _MATRIX_OPS_H_
-#define _MATRIX_OPS_H_
-
#include <neatogen/sparsegraph.h>
extern void cpvec(double *, int, int, double *);
extern void sqrt_vec(int n, float *vec);
extern void sqrt_vecf(int n, float *source, float *target);
extern void invert_sqrt_vec(int n, float *vec);
-#endif
#ifdef __cplusplus
}
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-
-
-#ifndef MEMORY_H
-#define MEMORY_H
-
#include <stddef.h>
/* Support for freelists */
extern void freeinit(Freelist *, int);
extern void makefree(void *, Freelist *);
-#endif
-
-
#ifdef __cplusplus
}
#endif
* Adaptagrams repository.
*/
+#pragma once
+
#ifdef MOSEK
-#ifndef _QSOLVE_H_
-#define _QSOLVE_H_
#include <mosek.h> /* Include the MOSEK definition file. */
#include "types.h"
void mosek_quad_solve_sep(MosekEnv*,int n,float *b,float* coords);
void mosek_delete(MosekEnv*);
-
-#endif /* _QSOLVE_H_ */
#endif /* MOSEK */
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef MULTISPLINE_H
-#define MULTISPLINE_H
+#pragma once
#include <render.h>
#include <pathutil.h>
extern void freeRouter (router_t* rtr);
extern router_t* mkRouter (Ppoly_t** obs, int npoly);
extern int makeMultiSpline(graph_t* g, edge_t* e, router_t * rtr, int);
-
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-
-#ifndef NEATO_H
-#define NEATO_H
+#pragma once
#include "config.h"
#include "pathplan.h"
#include <neatogen/neatoprocs.h>
#include <neatogen/adjust.h>
-
-#endif /* NEATO_H */
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef NEATOPROCS_H
-#define NEATOPROCS_H
+#pragma once
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
}
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef OVERLAP_H
-#define OVERLAP_H
+#pragma once
#include <sfdpgen/post_process.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 doShrink, int *flag);
real overlap_scaling(int dim, int m, real *x, real *width, real scale_sta, real scale_sto, real epsilon, int maxiter);
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-
-
-#ifndef PCA_H
-#define PCA_H
-
#include <neatogen/defs.h>
extern void PCA_alloc(DistType **, int, int, double **, int);
extern boolean iterativePCA_1D(double **, int, int, double *);
-#endif
-
#ifdef __cplusplus
}
#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-#ifndef POLY_H
-#define POLY_H
-
#include <neatogen/geometry.h>
typedef struct {
extern int makeAddPoly(Poly *, Agnode_t *, float, float);
extern void breakPoly(Poly *);
-#endif
-
#ifdef __cplusplus
}
#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-#ifndef _CMAJ_H_
-#define _CMAJ_H_
-
#ifdef DIGCOLA
typedef struct {
#endif
-#endif /* _CMAJ_H_ */
-
#ifdef __cplusplus
}
#endif
* *
**********************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-#ifndef _QUAD_PROG_VPSC_H_
-#define _QUAD_PROG_VPSC_H_
-
#ifdef DIGCOLA
#include <neatogen/defs.h>
int get_num_digcola_constraints(DigColaLevel *levels, int num_levels);
#endif
-#endif /* _QUAD_PROG_VPSC_H_ */
-
#ifdef __cplusplus
}
#endif
* defaults to "/dev/urandom"
*/
-#include <stddef.h>
+#pragma once
-#ifndef _RANDOMKIT_
-#define _RANDOMKIT_
+#include <stddef.h>
#define RK_STATE_LEN 624
#ifdef __cplusplus
}
#endif
-
-#endif /* _RANDOMKIT_ */
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-#ifndef SGD_H
-#define SGD_H
-
typedef struct term_sgd {
int i, j;
float d, w;
extern void sgd(graph_t *, int);
-#endif /* SGD_H */
-
#ifdef __cplusplus
}
#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-
-
-#ifndef SITE_H
-#define SITE_H
-
#include <neatogen/geometry.h>
/* Sites are also used as vertices on line segments */
extern void deref(Site *); /* Increment refcnt of site */
extern void ref(Site *); /* Decrement refcnt of site */
extern void makevertex(Site *); /* Transform a site into a vertex */
-#endif
#ifdef __cplusplus
}
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-#ifndef SPARSEGRAPH_H
-#define SPARSEGRAPH_H
-
#include "config.h"
#ifdef USE_STYLES
extern void freeGraphData(vtx_data * graph);
extern void freeGraph(v_data * graph);
-#endif
-
#ifdef __cplusplus
}
#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-
-#ifndef STRESS_H
-#define STRESS_H
-
#include <neatogen/defs.h>
#define tolerance_cg 1e-3
extern float* mdsModel (vtx_data * graph, int nG);
extern int initLayout(vtx_data * graph, int n, int dim, double **coords, node_t** nodes);
-#endif
-
#ifdef __cplusplus
}
#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-
-
-#ifndef VORONOI_H
-#define VORONOI_H
-
#include <neatogen/site.h>
extern void voronoi(int, Site * (*)(void));
-#endif
-
-
#ifdef __cplusplus
}
#endif