Skip to content

Commit 1cb656f

Browse files
committed
remove LigthGraphs from DFG.jl to avoid conflics in IIF
1 parent beec4cd commit 1cb656f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/DistributedFactorGraphs.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ using Reexport
99
using JSON2
1010
using LinearAlgebra
1111
using SparseArrays
12-
# This is used in the definition of getAdjacencyMatrixSparse
13-
using LightGraphs
1412

1513
# Entities
1614
include("entities/AbstractDFG.jl")

src/services/AbstractDFG.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ end
498498
Get an adjacency matrix for the DFG, returned as a tuple: adjmat::SparseMatrixCSC{Int}, var_labels::Vector{Symbol) fac_labels::Vector{Symbol).
499499
Rows are the factors, columns are the variables, with the corresponding labels in fac_labels,var_labels.
500500
"""
501-
function getAdjacencyMatrixSparse(dfg::G; solvable::Int=0)::Tuple{LightGraphs.SparseMatrixCSC, Vector{Symbol}, Vector{Symbol}} where G <: AbstractDFG
501+
function getAdjacencyMatrixSparse(dfg::G; solvable::Int=0)::Tuple{SparseMatrixCSC, Vector{Symbol}, Vector{Symbol}} where G <: AbstractDFG
502502
varLabels = map(v->v.label, getVariables(dfg, solvable=solvable))
503503
factLabels = map(f->f.label, getFactors(dfg, solvable=solvable))
504504

0 commit comments

Comments
 (0)