diff options
author | lassulus <git@lassul.us> | 2023-09-07 12:26:31 +0200 |
---|---|---|
committer | lassulus <git@lassul.us> | 2023-09-07 13:50:26 +0200 |
commit | f55307fd73af235069744dd5155fda0bc73fe613 (patch) | |
tree | f048d7750a50e48493505a08784c96d07d291f89 /lass/5pkgs/graphml2json | |
parent | 85ae348bf3f53125c8281669a32bf007dc0063be (diff) |
lass: migrate away
Diffstat (limited to 'lass/5pkgs/graphml2json')
-rw-r--r-- | lass/5pkgs/graphml2json/default.nix | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lass/5pkgs/graphml2json/default.nix b/lass/5pkgs/graphml2json/default.nix deleted file mode 100644 index 6f06ded3d..000000000 --- a/lass/5pkgs/graphml2json/default.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ pkgs, ... }: -pkgs.writers.writePython3Bin "graphml2json" { libraries = [ pkgs.python3Packages.networkx ]; } '' - import networkx as nx - import json - import sys - - - G = nx.read_graphml(sys.argv[1]) - data = nx.readwrite.json_graph.node_link_data(G) - - print(json.dumps(data, indent=2)) -'' |