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
18extern "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
43
44#ifdef __cplusplus
45}
46#endif
macro for API hiding/exposing
#define PRIVATE
Definition api.h:16
Agraph_t * graph(char *name)
Definition gv.cpp:34
PRIVATE void freeGraph(v_data *graph)
Definition delaunay.c:659
PRIVATE void freeGraphData(vtx_data *graph)
Definition delaunay.c:668
int DistType
Definition sparsegraph.h:39
int nedges
Definition sparsegraph.h:24
int * edges
Definition sparsegraph.h:25
float * ewgts
Definition sparsegraph.h:26
float * ewgts
Definition sparsegraph.h:32
float * eweights
Definition sparsegraph.h:33
size_t nedges
no. of neighbors, including self
Definition sparsegraph.h:30
int * edges
Definition sparsegraph.h:31