1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * https://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: Details at https://graphviz.org
- *************************************************************************/
- #pragma once
- #include <stddef.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "config.h"
- typedef struct {
- int nedges; /* no. of neighbors, including self */
- int *edges; /* edges[0..(nedges-1)] are neighbors; edges[0] is self */
- float *ewgts; /* preferred edge lengths */
- } v_data;
- typedef struct {
- size_t nedges; ///< no. of neighbors, including self
- int *edges; /* edges[0..(nedges-1)] are neighbors; edges[0] is self */
- float *ewgts; /* preferred edge lengths */
- float *eweights; /* edge weights */
- #ifdef DIGCOLA
- float *edists; /* directed dist reflecting the direction of the edge */
- #endif
- } vtx_data;
- typedef int DistType; /* must be signed!! */
- extern void freeGraphData(vtx_data * graph);
- extern void freeGraph(v_data * graph);
- #ifdef __cplusplus
- }
- #endif
|