Graphviz
13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
sgd.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <stddef.h>
4
#include <
util/bitarray.h
>
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
typedef
struct
term_sgd
{
11
int
i
,
j
;
12
float
d
,
w
;
13
}
term_sgd
;
14
15
typedef
struct
graph_sgd
{
16
size_t
n
;
// number of nodes
17
size_t
*
sources
;
// index of first edge in *targets for each node (length n+1)
18
bitarray_t
pinneds
;
// whether a node is fixed or not
19
20
size_t
*
targets
;
// index of targets for each node (length sources[n])
21
float
*
weights
;
// weights of edges (length sources[n])
22
}
graph_sgd
;
23
24
extern
void
sgd
(
graph_t
*,
int
);
25
26
#ifdef __cplusplus
27
}
28
#endif
bitarray.h
API for compacted arrays of booleans.
sgd
void sgd(graph_t *, int)
Definition
sgd.c:143
Agraph_s
graph or subgraph
Definition
cgraph.h:425
bitarray_t
Definition
bitarray.h:37
graph_sgd
Definition
sgd.h:15
graph_sgd::targets
size_t * targets
Definition
sgd.h:20
graph_sgd::n
size_t n
Definition
sgd.h:16
graph_sgd::pinneds
bitarray_t pinneds
Definition
sgd.h:18
graph_sgd::weights
float * weights
Definition
sgd.h:21
graph_sgd::sources
size_t * sources
Definition
sgd.h:17
term_sgd
Definition
sgd.h:10
term_sgd::d
float d
Definition
sgd.h:12
term_sgd::j
int j
Definition
sgd.h:11
term_sgd::w
float w
Definition
sgd.h:12
term_sgd::i
int i
Definition
sgd.h:11
lib
neatogen
sgd.h
Generated by
1.9.8