Skip to content

Commit ad55c92

Browse files
committed
rename AbstractDFGSummary -> DFGSummary
1 parent 24d362c commit ad55c92

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/DistributedFactorGraphs.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export isFullyConnected, hasOrphans
7171

7272
export getBiadjacencyMatrix
7373

74-
#summary structure #TODO Abstract name here is confusing
75-
export AbstractDFGSummary
74+
#summary structure
75+
export DFGSummary
7676

7777
export getSummary, getSummaryGraph
7878

src/LightDFG/LightDFG.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module LightDFGs
33
using LightGraphs
44
using DocStringExtensions
55

6-
import ...DistributedFactorGraphs: AbstractDFG, DFGNode, AbstractDFGVariable, AbstractDFGFactor, AbstractDFGSummary, AbstractParams, NoSolverParams, DFGVariable, DFGFactor
6+
import ...DistributedFactorGraphs: AbstractDFG, DFGNode, AbstractDFGVariable, AbstractDFGFactor, DFGSummary, AbstractParams, NoSolverParams, DFGVariable, DFGFactor
77

88
# import DFG functions to extend
99
import ...DistributedFactorGraphs: setSolverParams!,

src/entities/AbstractDFGSummary.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
$(TYPEDEF)
33
Structure for a graph summary.
44
"""
5-
# TODO why is this called Abstract...
6-
struct AbstractDFGSummary
5+
6+
struct DFGSummary
77
variables::Dict{Symbol, DFGVariableSummary}
88
factors::Dict{Symbol, DFGFactorSummary}
99
userId::String

src/services/AbstractDFG.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,12 +1036,12 @@ end
10361036
"""
10371037
$(SIGNATURES)
10381038
Get a summary of the graph (first-class citizens of variables and factors).
1039-
Returns a AbstractDFGSummary.
1039+
Returns a DFGSummary.
10401040
"""
1041-
function getSummary(dfg::G)::AbstractDFGSummary where {G <: AbstractDFG}
1041+
function getSummary(dfg::G)::DFGSummary where {G <: AbstractDFG}
10421042
vars = map(v -> convert(DFGVariableSummary, v), getVariables(dfg))
10431043
facts = map(f -> convert(DFGFactorSummary, f), getFactors(dfg))
1044-
return AbstractDFGSummary(
1044+
return DFGSummary(
10451045
Dict(map(v->v.label, vars) .=> vars),
10461046
Dict(map(f->f.label, facts) .=> facts),
10471047
dfg.userId,

0 commit comments

Comments
 (0)