Skip to content
Snippets Groups Projects
Commit 85409f26 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Read path on the command line of `report_graph.py`

parent 1bb25515
No related branches found
No related tags found
No related merge requests found
......@@ -470,24 +470,16 @@
"title": "Report_graph_cyclo",
"command":
[
"$src_dir/Overlap/report_graph.py", "--gv", "--merging"
],
"symlink":
[
"$PWD/EGr2nd15md4np3_cyclo/edgelist.csv",
"$PWD/EGr2nd15md4np3_cyclo/node_id_param.json"
"$src_dir/Overlap/report_graph.py", "--gv", "--merging",
"$PWD/EGr2nd15md4np3_cyclo/edgelist.csv"
]
},
{
"title": "Report_graph_anti",
"command":
[
"$src_dir/Overlap/report_graph.py", "--gv", "--merging"
],
"symlink":
[
"$PWD/EGr2nd15md4np3/edgelist.csv",
"$PWD/EGr2nd15md4np3/node_id_param.json"
"$src_dir/Overlap/report_graph.py", "--gv", "--merging",
"$PWD/EGr2nd15md4np3/edgelist.csv"
]
},
{
......@@ -507,11 +499,9 @@
{
"title": "Report_graph_int",
"command":
["$src_dir/Overlap/report_graph.py", "--gv", "--merging"],
"symlink":
[
"$tests_old_dir/Graph_from_Matlab_v6_anti/edgelist.csv",
"$tests_old_dir/Graph_from_Matlab_v6_anti/node_id_param.json"
"$src_dir/Overlap/report_graph.py", "--gv", "--merging",
"$tests_old_dir/Graph_from_Matlab_v6_anti/edgelist.csv"
]
},
{
......
#!/usr/bin/env python3
"""edgelist.csv must be in the current directory.
"""
import networkx as nx
import shapefile
from os import path
......@@ -101,6 +97,7 @@ if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("edgelist_file")
parser.add_argument("--gv", help = "Create Graphviz file",
action = "store_true")
parser.add_argument("-n", "--node",
......@@ -111,7 +108,7 @@ if __name__ == "__main__":
action = "store_true")
args = parser.parse_args()
G = read_eddy_graph("edgelist.csv")
G = read_eddy_graph(args.edgelist_file)
if args.node is None:
H = G
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment