From 311ebf9f12db8277ec4725505b1d5612af07e77f Mon Sep 17 00:00:00 2001 From: mtfishman Date: Thu, 4 Apr 2024 10:49:42 -0400 Subject: [PATCH 1/2] Fix method overwrite --- src/abstractnamedgraph.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/abstractnamedgraph.jl b/src/abstractnamedgraph.jl index 325fa93..29b8493 100644 --- a/src/abstractnamedgraph.jl +++ b/src/abstractnamedgraph.jl @@ -255,7 +255,7 @@ function neighborhood_dists( graph::AbstractNamedGraph, vertex::Integer, d, - distmx::AbstractMatrix{<:Real}=weights(graph); + distmx::AbstractMatrix{<:Real}; dir=:out, ) return _neighborhood_dists(graph, vertex, d, distmx; dir) From ce73c3c3a43bd67c576a011bf5df1842ae541cf6 Mon Sep 17 00:00:00 2001 From: mtfishman Date: Thu, 4 Apr 2024 11:06:38 -0400 Subject: [PATCH 2/2] Format --- src/abstractnamedgraph.jl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/abstractnamedgraph.jl b/src/abstractnamedgraph.jl index 29b8493..b02e9f9 100644 --- a/src/abstractnamedgraph.jl +++ b/src/abstractnamedgraph.jl @@ -252,11 +252,7 @@ end # Fix for ambiguity error with `AbstractGraph` version function neighborhood_dists( - graph::AbstractNamedGraph, - vertex::Integer, - d, - distmx::AbstractMatrix{<:Real}; - dir=:out, + graph::AbstractNamedGraph, vertex::Integer, d, distmx::AbstractMatrix{<:Real}; dir=:out ) return _neighborhood_dists(graph, vertex, d, distmx; dir) end