Skip to content

Commit

Permalink
Minor re-work
Browse files Browse the repository at this point in the history
  • Loading branch information
MicheleCeresoli committed Nov 23, 2023
1 parent 25fa912 commit 05f1cfd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Graph.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@ abstract type AbstractJSMDGraphNode end
# JSMD interfaces
# ==================

"""
add_vertex!(g::AbstractJSMDGraph, vertex::AbstractJSMDGraphNode)
This function adds `vertex` to the graph `g`.
"""
@interface function Graphs.add_vertex!(::AbstractJSMDGraph, ::N) where {N<:AbstractJSMDGraphNode} end

"""
add_edge!(g::AbstractJSMDGraph, from::Int, to::Int, cost::Int)
Expand All @@ -72,7 +65,14 @@ This function add an edge between `from` and `to` with weight `cost`.
Return true if there is a path between `from` and `to` in the graph `g`.
"""
@interface function has_path(::AbstractJSMDGraph, ::Int, ::Int) end
@interface function Graphs.has_path(::AbstractJSMDGraph, ::Int, ::Int) end

"""
add_node!(g::AbstractJSMDGraph, node::AbstractJSMDGraphNode)
This function adds `node` to the graph `g`.
"""
@interface function add_node!(::AbstractJSMDGraph, ::N) where {N<:AbstractJSMDGraphNode} end

"""
get_path(g::AbstractJSMDGraph, from::Int, to::Int)
Expand Down

0 comments on commit 05f1cfd

Please sign in to comment.