| 1 |
/************************************************************************* |
| 2 |
* Copyright (c) 2011 AT&T Intellectual Property |
| 3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
| 6 |
* https://www.eclipse.org/legal/epl-v10.html |
| 7 |
* |
| 8 |
* Contributors: Details at https://graphviz.org |
| 9 |
*************************************************************************/ |
| 10 |
|
| 11 |
#pragma once |
| 12 |
|
| 13 |
#include <stddef.h> |
| 14 |
#include <util/api.h> |
| 15 |
|
| 16 |
#ifdef __cplusplus |
| 17 |
extern "C" { |
| 18 |
#endif |
| 19 |
|
| 20 |
#include <neatogen/defs.h> |
| 21 |
|
| 22 |
PRIVATE void fill_neighbors_vec_unweighted(vtx_data *, int vtx, |
| 23 |
int *vtx_vec); |
| 24 |
PRIVATE size_t common_neighbors(vtx_data *, int u, int *); |
| 25 |
PRIVATE void empty_neighbors_vec(vtx_data * graph, int vtx, |
| 26 |
int *vtx_vec); |
| 27 |
PRIVATE DistType **compute_apsp(vtx_data *, int); |
| 28 |
PRIVATE DistType **compute_apsp_artificial_weights(vtx_data *, int); |
| 29 |
PRIVATE double distance_kD(double **, int, int, int); |
| 30 |
PRIVATE void quicksort_place(double *, int *, int); |
| 31 |
PRIVATE void quicksort_placef(float *, int *, int, int); |
| 32 |
PRIVATE void compute_new_weights(vtx_data * graph, int n); |
| 33 |
PRIVATE void restore_old_weights(vtx_data * graph, int n, |
| 34 |
float *old_weights); |
| 35 |
|
| 36 |
#ifdef __cplusplus |
| 37 |
} |
| 38 |
#endif |