Skip to content

Commit 1bda3ab

Browse files
committed
WIP code
1 parent c7f534e commit 1bda3ab

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ deps/deps.jl
55
docs/build
66
Manifest.toml
77
dev
8+
test/sandbox.jl

src/attic/MetaGraphsDFG/services/MetaGraphsDFG.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ function ls(dfg::MetaGraphsDFG, label::Symbol)::Vector{Symbol} where T <: DFGNod
399399
return getNeighbors(dfg, label)
400400
end
401401

402-
function _copyIntoGraph!(sourceDFG::MetaGraphsDFG, destDFG::MetaGraphsDFG, ns::Vector{Int}, includeOrphanFactors::Bool=false; copyGraphMetadata::Bool=true)::Nothing
402+
function _copyIntoGraph!(sourceDFG::MetaGraphsDFG, destDFG::MetaGraphsDFG, ns::Vector{Int}, includeOrphanFactors::Bool=false)::Nothing
403403
# Split into variables and factors
404404
subgraph = sourceDFG.g[ns]
405405
sourceVariableIds = collect(filter_vertices(subgraph, :variable))

src/services/AbstractDFG.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,9 @@ end
454454
$(SIGNATURES)
455455
Common function for copying nodes from one graph into another graph.
456456
This is overridden in specialized implementations for performance.
457+
NOTE: copyGraphMetadata not supported yet.
457458
"""
458-
function _copyIntoGraph!(sourceDFG::G, destDFG::H, variableFactorLabels::Vector{Symbol}, includeOrphanFactors::Bool=false; copyGraphMetadata::Bool=true)::Nothing where {G <: AbstractDFG, H <: AbstractDFG}
459+
function _copyIntoGraph!(sourceDFG::G, destDFG::H, variableFactorLabels::Vector{Symbol}, includeOrphanFactors::Bool=false; copyGraphMetadata::Bool=false)::Nothing where {G <: AbstractDFG, H <: AbstractDFG}
459460
# Split into variables and factors
460461
sourceVariables = map(vId->getVariable(sourceDFG, vId), intersect(getVariableIds(sourceDFG), variableFactorLabels))
461462
sourceFactors = map(fId->getFactor(sourceDFG, fId), intersect(getFactorIds(sourceDFG), variableFactorLabels))

0 commit comments

Comments
 (0)