nimnet/generators/stochastic
Theme:
🌗 Match OS
🌑 Dark
🌕 Light
Index
Search:
Group by:
Section
Type
Imports
Procs
stochasticGraph
stochasticGraph[N](g: Graph[N]; weighted: bool = false): Graph[N]
Stochastic graph generator
Imports
../types
,
../graph
Procs
proc
stochasticGraph
[
N
]
(
g
:
Graph
[
N
]
;
weighted
:
bool
=
false
)
:
Graph
[
N
]
Create a stochastic graph (row-normalize adjacency). Each row sums to 1.0. If weighted=true, normalize weighted adjacency.