Skip to content

Commit dd8a830

Browse files
committed
fix
1 parent 85bbc5d commit dd8a830

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/embedding/node2vec.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ end
8989
"""
9090
Returns J and q for a given edge
9191
"""
92-
function get_alias_edge(g::FeaturedGraph, src::Int, dst::Int, p::Float64, q::Float64)::Alias
92+
function get_alias_edge(g::FeaturedGraph, src::Integer, dst::Integer, p::Real, q::Real)::Alias
9393
unnormalized_probs = spzeros(length(neighbors(g, dst; dir=:out)))
9494
neighbor_weight_pairs = zip(weighted_outneighbors(g, dst)...)
9595
for (i, (dst_nbr, weight)) in enumerate(neighbor_weight_pairs)
@@ -106,7 +106,7 @@ function get_alias_edge(g::FeaturedGraph, src::Int, dst::Int, p::Float64, q::Flo
106106
end
107107

108108
# Returns (neighbors::Vector{Int}, weights::Vector{Float64})
109-
function weighted_outneighbors(fg::FeaturedGraph, i::Int)
109+
function weighted_outneighbors(fg::FeaturedGraph, i::Integer)
110110
nbrs = neighbors(fg, i; dir=:out)
111111
nbrs, sparse(graph(fg))[i, nbrs]
112112
end

0 commit comments

Comments
 (0)