File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ]
You can’t perform that action at this time.
0 commit comments