Skip to content

Commit 21dd9ea

Browse files
committed
🐣 initial commit
1 parent 1ec9d5c commit 21dd9ea

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

code/02_Topology.jl

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#=
2+
-------------------------------------------------
3+
02_Topology.jl
4+
Calculating structure/topology for generated networks.
5+
-------------------------------------------------
6+
7+
=#
8+
# Load the Pkg package manager.
9+
using Pkg
10+
# Activate the current project environment to ensure consistent package versions.
11+
Pkg.activate(".")
12+
13+
# --- 1. Load Dependencies ---
14+
using DataFrames
15+
using JLD2 # For saving the full data with matrices
16+
using SpeciesInteractionNetworks # For Uniform, LogUniform distributions
17+
18+
# --- 2. Load All Code ---
19+
20+
# --- 3. Import networks .jld2 object ---
21+
22+
networks = load_object("data/outputs/network_test_verified_seed_42_29-10-2025.jld2")
23+
24+
# --- 4. Convert networks to `SpeciesInteractionNetworks` networks ---
25+
26+
S = networks.S[1]
27+
28+
spp_list = Symbol.([0:1:10])
29+
30+
networks.AdjacencyMatrix[1]

0 commit comments

Comments
 (0)