@@ -32,7 +32,7 @@ DFGPlotProps() = DFGPlotProps( (var=colorant"seagreen", fac=colorant"cyan3"),
3232
3333"""
3434 $(SIGNATURES)
35- Plots the structure of the factor graph. GraphPlot must be imported before DistributedFactoGraphs for these functions to be available.
35+ Plots the structure of the factor graph. GraphPlot must be imported before DistributedFactorGraphs for these functions to be available.
3636Returns the plot context.
3737
3838E.g.
@@ -86,8 +86,8 @@ draw(PDF("/tmp/graph.pdf", 16cm, 16cm), dfgplot(fg))
8686
8787More information at [GraphPlot.jl](https://github.com/JuliaGraphs/GraphPlot.jl)
8888"""
89- function dfgplot (dfg:: MetaGraphsDFG , p:: DFGPlotProps = DFGPlotProps ())
90-
89+ function dfgplot (dfg:: DistributedFactorGraphs. MetaGraphsDFG , p:: DFGPlotProps = DFGPlotProps ())
90+ @info " Deprecated, please use GraphsDFG or LightDFG. "
9191 nodesize = [has_prop (dfg. g,i,:factor ) ? p. nodesize. fac : p. nodesize. var for i= vertices (dfg. g)]
9292 if p. drawlabels
9393 nodelabel = [has_prop (dfg. g,i,:factor ) ? " " : string (get_prop (dfg. g,i,:label )) for i= vertices (dfg. g)]
@@ -122,13 +122,14 @@ More information at [GraphPlot.jl](https://github.com/JuliaGraphs/GraphPlot.jl)
122122function dfgplot (dfg:: AbstractDFG , p:: DFGPlotProps = DFGPlotProps ())
123123 # TODO implement convert functions
124124 @warn " TODO Implement convert"
125- ldfg = MetaGraphsDFG {AbstractParams} ()
125+ ldfg = LightDFG {AbstractParams} ()
126126 DistributedFactorGraphs. _copyIntoGraph! (dfg, ldfg, union (getVariableIds (dfg), getFactorIds (dfg)), true )
127127
128128 dfgplot (ldfg, p)
129129end
130130
131- function gplot (dfg:: MetaGraphsDFG ; keyargs... )
131+ function gplot (dfg:: DistributedFactorGraphs.MetaGraphsDFG ; keyargs... )
132+ @info " Deprecated, please use GraphsDFG or LightDFG."
132133 gplot (dfg. g; keyargs... )
133134end
134135
0 commit comments