Skip to content

Commit

Permalink
Bugfix in I/O for user-defined concrete graph types: add getter `prop…
Browse files Browse the repository at this point in the history
…erties` and setter `set_properties!` to AbstractGraph interface
  • Loading branch information
dcerkoney committed Sep 18, 2024
1 parent b7957b3 commit e5eead6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/computational_graph/abstractgraph.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ function operator(g::AbstractGraph) end
"""
function weight(g::AbstractGraph) end

"""
function properties(g::AbstractGraph)
Returns additional properties, if any, of the computational graph `g`.
"""
function properties(g::AbstractGraph) end

"""
function subgraph(g::AbstractGraph, i=1)
Expand Down Expand Up @@ -184,6 +191,13 @@ function set_weight!(g::AbstractGraph, weight)
"""
function set_weight!(g::AbstractGraph, weight) end

"""
function set_properties!(g::AbstractGraph, properties)
Update the properties of graph `g` to `properties`.
"""
function set_properties!(g::AbstractGraph, properties) end

"""
function set_subgraph!(g::AbstractGraph, subgraph::AbstractGraph, i=1)
Expand Down

0 comments on commit e5eead6

Please sign in to comment.