kabbala: add julia graph thing

This commit is contained in:
2023-12-05 22:32:03 +01:00
parent 55dff52268
commit 3ba064bded
3 changed files with 32 additions and 0 deletions

6
kabbala.jl/kabbala.jl Normal file
View File

@@ -0,0 +1,6 @@
using Graphs
using GraphIO
tree_of_life = loadgraph("tree-of-life.txt", GraphIO.EdgeList.EdgeListFormat())
print(adjacency_matrix(tree_of_life))

4
kabbala.jl/shell.nix Normal file
View File

@@ -0,0 +1,4 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
packages = [ pkgs.julia ];
}

View File

@@ -0,0 +1,22 @@
1 2
1 3
1 6
2 3
2 6
2 4
3 6
3 5
4 5
4 6
4 7
5 6
5 8
6 7
6 9
6 8
7 8
7 9
7 10
8 9
8 10
9 10