Skip to content

Commit 35836b7

Browse files
committed
fixes #155
1 parent 381acf3 commit 35836b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "BayesNets"
22
uuid = "ba4760a4-c768-5bed-964b-cf806dc591cb"
3-
version = "3.5.1"
3+
version = "3.5.2"
44

55
[deps]
66
CliqueTrees = "60701a23-6482-424a-84db-faee86b9b1f8"

src/bayes_nets.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Returns all neighbors as a list of NodeNames.
103103
"""
104104
function neighbors(bn::BayesNet, target::NodeName)
105105
i = bn.name_to_index[target]
106-
NodeName[name(bn.cpds[j]) for j in append!(inneighbors(bn.dag, i), outneighbors(bn.dag, i))]
106+
NodeName[name(bn.cpds[j]) for j in vcat(inneighbors(bn.dag, i), outneighbors(bn.dag, i))]
107107
end
108108

109109
"""

0 commit comments

Comments
 (0)