Graphviz 14.1.3~dev.20260201.2050
Loading...
Searching...
No Matches
fPQ.h
Go to the documentation of this file.
1
6/*************************************************************************
7 * Copyright (c) 2011 AT&T Intellectual Property
8 * All rights reserved. This program and the accompanying materials
9 * are made available under the terms of the Eclipse Public License v1.0
10 * which accompanies this distribution, and is available at
11 * https://www.eclipse.org/legal/epl-v10.html
12 *
13 * Contributors: Details at https://graphviz.org
14 *************************************************************************/
15
16#pragma once
17
18#include <ortho/sgraph.h>
19#include <util/alloc.h>
20
21#define N_VAL(n) (n)->n_val
22#define N_IDX(n) (n)->n_idx
23#define N_DAD(n) (n)->n_dad
24#define N_EDGE(n) (n)->n_edge
25#define E_WT(e) (e->weight)
26
28pq_t *PQgen(int sz);
29
31void PQfree(pq_t *pq);
32
34void PQinit(pq_t *pq);
35
37int PQ_insert(pq_t *pq, snode *np);
38
41
43void PQupdate(pq_t *pq, snode *n, int d);
Memory allocation wrappers that exit on failure.
void PQinit(pq_t *pq)
Definition fPQ.c:42
snode * PQremove(pq_t *pq)
Definition fPQ.c:102
pq_t * PQgen(int sz)
Definition fPQ.c:26
void PQupdate(pq_t *pq, snode *n, int d)
Definition fPQ.c:115
void PQfree(pq_t *pq)
Definition fPQ.c:35
int PQ_insert(pq_t *pq, snode *np)
Definition fPQ.c:66
Definition heap.c:20
a node of search graph sgraph, is created as a border segment between two adjusted cells of type cell...
Definition sgraph.h:26