# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: odor-states
#     language: python
#     name: odor-states
# ---

import numpy as np
import matplotlib.pyplot as plt

for i in range(1,6):
    np.random.seed(9034894-i)
    print(f"Matrix {i}:",9034894-i)
    n = 30
    p = 0.1055
    A = np.random.choice([0,1],p=[1-p,p],size=(n,n))
    A = np.int32((A+A.T)>0)
    np.fill_diagonal(A,0)
    np.save(f'networks/matrix_{i}',A)
    np.savetxt(f'networks/matrix_{i}.csv',A,delimiter=',')
for i in range(6,11):
    np.random.seed(63640+i)
    print(f"Matrix {i}:",63640+i)
    n = 30
    p = 0.1055
    A = np.random.choice([0,1],p=[1-p,p],size=(n,n))
    A = np.int32((A+A.T)>0)
    np.fill_diagonal(A,0)
    np.save(f'networks/matrix_{i}',A)
    np.savetxt(f'networks/matrix_{i}.csv',A,delimiter=',')

StarcoderdataJupyterScriptsDedupFiltered