Commit 64d81ae0 authored by msurl's avatar msurl
Browse files

repaired cli file

parent 02b553cf
...@@ -19,12 +19,12 @@ def cli(args=None): ...@@ -19,12 +19,12 @@ def cli(args=None):
help='parameter k of the k hop dominating set', help='parameter k of the k hop dominating set',
type=int type=int
) )
p.add_argument( # p.add_argument(
'-i', '--iterations', # '-i', '--iterations',
help='maximum number of iterations', # help='maximum number of iterations',
const = float("inf"), # const = float("inf"),
type = float # type = float
) # )
p.add_argument( p.add_argument(
'-g', '--graph', '-g', '--graph',
help="input graph as .lp file") help="input graph as .lp file")
...@@ -36,8 +36,8 @@ def cli(args=None): ...@@ -36,8 +36,8 @@ def cli(args=None):
G = lp_to_nx_graph.read(args.graph) G = lp_to_nx_graph.read(args.graph)
ds = k_hop_dom_set.RootedConnectecKHopDominatingSet(G, args.k) ds = k_hop_dom_set.RootedConnectecKHopDominatingSet(G, args.k)
ds.solve_and_draw(iterations = args.iterations) # ds.solve_and_draw(iterations = args.iterations)
ds.solve_and_draw()
# No return value means no error. # No return value means no error.
# Return a value of 1 or higher to signify an error. # Return a value of 1 or higher to signify an error.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment