Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
bfs.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 <stdbool.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19#include <neatogen/defs.h>
20
21 typedef struct {
22 int *data;
24 int end;
25 int start;
26 } Queue;
27
28 extern void mkQueue(Queue *, int);
29 extern void freeQueue(Queue *);
30 extern void initQueue(Queue *, int startVertex);
31 extern bool deQueue(Queue *, int *);
32 extern bool enQueue(Queue *, int);
33
34 extern void bfs(int, vtx_data*, int, DistType*);
35
36#ifdef __cplusplus
37}
38#endif
bool enQueue(Queue *, int)
Definition bfs.c:101
void initQueue(Queue *, int startVertex)
Definition bfs.c:86
bool deQueue(Queue *, int *)
Definition bfs.c:93
void mkQueue(Queue *, int)
Definition bfs.c:74
void freeQueue(Queue *)
Definition bfs.c:81
void bfs(int, vtx_data *, int, DistType *)
Definition bfs.c:25
int DistType
Definition sparsegraph.h:37
Definition bfs.h:21
int start
Definition bfs.h:25
int * data
Definition bfs.h:22
int end
Definition bfs.h:24
int queueSize
Definition bfs.h:23