Skip to content

Commit

Permalink
fix versions, switch to Graphs from LightGraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
lpawela committed Mar 6, 2024
1 parent 9f3df85 commit 11e45d4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
14 changes: 8 additions & 6 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f"
LabelledGraphs = "605abd48-4d17-4660-b914-d4df33194460"
LightGraphs = "093fc24a-ae57-5d10-9952-331d41423f4d"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
MKL = "33e6dc65-8f57-5167-99aa-e5a354878fb2"
MetaGraphs = "626554b9-1ddb-594c-aa3c-2596fe9399a5"
Expand All @@ -20,13 +20,15 @@ TensorCast = "02d47bb6-7ce6-556a-be16-bb1710789e2b"

[compat]
CSV = "0.8"
DocStringExtensions = "0.8"
LabelledGraphs = "0.3.2"
LightGraphs = "1.3"
DocStringExtensions = "0.9"
Graphs = "1.9.0"
LabelledGraphs = "0.4.4"
MKL = "0.4.2"
MetaGraphs = "0.6"
julia = "1.8, 1.9"
MetaGraphs = "0.7"
SparseArrays = "1.9"
SpinGlassTensors = "1"
TensorCast = "0.4"
julia = "1.9, 1.10"

[extras]
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
Expand Down
2 changes: 1 addition & 1 deletion examples/bp.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using SpinGlassNetworks
using LabelledGraphs
using LightGraphs
using Graphs
using MetaGraphs
using Logging

Expand Down
2 changes: 1 addition & 1 deletion examples/temp.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using HDF5
using LightGraphs
using Graphs
using LinearAlgebra
using LabelledGraphs
using MetaGraphs
Expand Down
2 changes: 1 addition & 1 deletion src/SpinGlassNetworks.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module SpinGlassNetworks
using LabelledGraphs
using LightGraphs
using Graphs
using MetaGraphs # TODO: to be replaced by MetaGraphsNext
using CSV
using JLD2
Expand Down
2 changes: 1 addition & 1 deletion test/clustered_hamiltonian.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using MetaGraphs
using LightGraphs
using Graphs
using CSV

enum(vec) = Dict(v => i for (i, v) enumerate(vec))
Expand Down
4 changes: 1 addition & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
using SpinGlassNetworks
using SpinGlassTensors
using LabelledGraphs
using LightGraphs
using Graphs
using MetaGraphs
using Logging
using Test
using TensorCast
using CUDA


Base.:(==)(e1::LabelledEdge, e2::LabelledEdge) = src(e1) == src(e2) && dst(e1) == dst(e2)

function _energy(config::Dict, couplings::Dict, cedges::Dict, n::Int)
eng = zeros(1, n)
for (i, j) keys(cedges)
Expand Down

0 comments on commit 11e45d4

Please sign in to comment.