Graphviz
13.0.0~dev.20241220.2304
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
16
extern
"C"
{
17
#endif
18
19
#include <
neatogen/defs.h
>
20
21
typedef
struct
{
22
int
*
data
;
23
int
queueSize
;
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
enQueue
bool enQueue(Queue *, int)
Definition
bfs.c:101
initQueue
void initQueue(Queue *, int startVertex)
Definition
bfs.c:86
deQueue
bool deQueue(Queue *, int *)
Definition
bfs.c:93
mkQueue
void mkQueue(Queue *, int)
Definition
bfs.c:74
freeQueue
void freeQueue(Queue *)
Definition
bfs.c:81
bfs
void bfs(int, vtx_data *, int, DistType *)
Definition
bfs.c:25
defs.h
DistType
int DistType
Definition
sparsegraph.h:37
Queue
Definition
bfs.h:21
Queue::start
int start
Definition
bfs.h:25
Queue::data
int * data
Definition
bfs.h:22
Queue::end
int end
Definition
bfs.h:24
Queue::queueSize
int queueSize
Definition
bfs.h:23
vtx_data
Definition
graph_generator.c:198
lib
neatogen
bfs.h
Generated by
1.9.8