homework.py
def group_numbers(nodes_list: list, reduced: bool = False):
    '''
    Sets the group numbers for the nodes on the graph and saves locally as
    a json file.
    The group number is the min shortest path between the node and the nodes
    on nodes_list.
    Args:
        nodes_list: an integer list with nodes id
        reduced: If reduced equals true it will use the reduced data
            to create the graph, otherwise it will use the full data
    '''
    graph = Graph(reduced)
    graph.set_group_number(nodes_list)
    with open("group_numbers.json", 'w') as jfile:
        json.dump(graph.group_numbers, jfile)
        print("group_numbers.json available under current directory\n")

    Sets the group numbers for the nodes on the graph and saves locally as
    a json file.
    The group number is the min shortest path between the node and the nodes
    on nodes_list.
    Args:
        nodes_list: an integer list with nodes id
        reduced: If reduced equals true it will use the reduced data
            to create the graph, otherwise it will use the full data
    
Sets the group numbers for the nodes on the graph and saves locally as
a json file.
The group number is the min shortest path between the node and the nodes
on nodes_list.
Sets the group numbers for the nodes on the graph and saves locally as a json file . The group number is the min shortest path between the node and the nodes on nodes_list .
def group_numbers(nodes_list: list, reduced: bool = False):
    graph = Graph(reduced)
    graph.set_group_number(nodes_list)
    with open("group_numbers.json", 'w') as jfile:
        json.dump(graph.group_numbers, jfile)
        print("group_numbers.json available under current directory\n")
def group_numbers ( nodes_list : list , reduced : bool = False ) : graph = Graph ( reduced ) graph . set_group_number ( nodes_list ) with open ( "group_numbers.json" , 'w' ) as jfile : json . dump ( graph . group_numbers , jfile ) print ( "group_numbers.json available under current directory\n" )
Sets the group numbers for the nodes on the graph and saves locally as
a json file.
Sets the group numbers for the nodes on the graph and saves locally as a json file .
'''
    Sets the group numbers for the nodes on the graph and saves locally as
    a json file.
    The group number is the min shortest path between the node and the nodes
    on nodes_list.
    Args:
        nodes_list: an integer list with nodes id
        reduced: If reduced equals true it will use the reduced data
            to create the graph, otherwise it will use the full data
    '''
nodes_list
list
an integer list with nodes id
an integer list with nodes id
reduced
bool
If reduced equals true it will use the reduced data
to create the graph, otherwise it will use the full data
If reduced equals true it will use the reduced data to create the graph otherwise it will use the full data