Graphviz 13.0.0~dev.20241220.2304
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
27void PQgen(int sz);
28void PQfree(void);
29void PQinit(void);
30void PQcheck (void);
31void PQupheap(int);
32int PQ_insert(snode* np);
33void PQdownheap (int k);
34snode* PQremove (void);
35void PQupdate (snode* n, int d);
36void PQprint (void);
Memory allocation wrappers that exit on failure.
void PQinit(void)
Definition fPQ.c:44
void PQdownheap(int k)
Definition fPQ.c:94
void PQcheck(void)
Definition fPQ.c:50
void PQgen(int sz)
Definition fPQ.c:25
void PQfree(void)
Definition fPQ.c:36
snode * PQremove(void)
Definition fPQ.c:121
void PQupheap(int k)
Definition fPQ.c:62
void PQprint(void)
Definition fPQ.c:145
void PQupdate(snode *n, int d)
Definition fPQ.c:137
int PQ_insert(snode *np)
Definition fPQ.c:80
a node of search graph sgraph, is created as a border segment between two adjusted cells of type cell...
Definition sgraph.h:26