Graphviz
14.1.3~dev.20260207.0611
Loading...
Searching...
No Matches
sparsegraph.h
Go to the documentation of this file.
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 <stdint.h>
15
#include <
util/api.h
>
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
21
#include "config.h"
22
23
typedef
struct
{
24
int
nedges
;
/* no. of neighbors, including self */
25
int
*
edges
;
/* edges[0..(nedges-1)] are neighbors; edges[0] is self */
26
float
*
ewgts
;
/* preferred edge lengths */
27
}
v_data
;
28
29
typedef
struct
{
30
size_t
nedges
;
31
int
*
edges
;
/* edges[0..(nedges-1)] are neighbors; edges[0] is self */
32
float
*
ewgts
;
/* preferred edge lengths */
33
float
*
eweights
;
/* edge weights */
34
#ifdef DIGCOLA
35
int8_t *edists;
36
#endif
37
}
vtx_data
;
38
39
typedef
int
DistType
;
/* must be signed!! */
40
41
PRIVATE
void
freeGraphData
(
vtx_data
*
graph
);
42
PRIVATE
void
freeGraph
(
v_data
*
graph
);
43
44
#ifdef __cplusplus
45
}
46
#endif
api.h
macro for API hiding/exposing
PRIVATE
#define PRIVATE
Definition
api.h:16
graph
Agraph_t * graph(char *name)
Definition
gv.cpp:34
freeGraph
PRIVATE void freeGraph(v_data *graph)
Definition
delaunay.c:659
freeGraphData
PRIVATE void freeGraphData(vtx_data *graph)
Definition
delaunay.c:668
DistType
int DistType
Definition
sparsegraph.h:39
v_data
Definition
sparsegraph.h:23
v_data::nedges
int nedges
Definition
sparsegraph.h:24
v_data::edges
int * edges
Definition
sparsegraph.h:25
v_data::ewgts
float * ewgts
Definition
sparsegraph.h:26
vtx_data
Definition
sparsegraph.h:29
vtx_data::ewgts
float * ewgts
Definition
sparsegraph.h:32
vtx_data::eweights
float * eweights
Definition
sparsegraph.h:33
vtx_data::nedges
size_t nedges
no. of neighbors, including self
Definition
sparsegraph.h:30
vtx_data::edges
int * edges
Definition
sparsegraph.h:31
lib
neatogen
sparsegraph.h
Generated by
1.9.8