def get_values_from_global_info_file(global_info_file):
    """Read all values from global_info file"""
    global_values = {}
    with open(global_info_file, 'r') as f:
        lines = f.readlines()
        for i, line in enumerate(lines):
            split_line = line.strip().split(' ')
            cur_last_val = line.strip().split('\t')[-1]
            if i < len(lines) - 1:
                next_last_val = lines[i + 1].strip().split('\t')[-1]
            if split_line[0] == 'Vertices':
                global_values['Vertices'] = cur_last_val
            elif split_line[0] == 'Edges':
                global_values['Edges'] = cur_last_val
            elif split_line[0] == 'Total':
                if split_line[1] == 'degree':
                    global_values['Total_degree'] = cur_last_val
                elif split_line[1] == 'strength':
                    global_values['Total_strength'] = cur_last_val
            elif split_line[0] == 'Average':
                if split_line[1] == 'degree':
                    global_values['Average_degree'] = cur_last_val
                elif split_line[1] == 'strength':
                    global_values['Average_strength'] = cur_last_val
                elif split_line[1] == 'clustering':
                    if split_line[2] == 'coefficient':
                        global_values['Clustering_coeff'] = cur_last_val
                        a = 'Clustering_coeff_weighted'
                        global_values[a] = next_last_val
            elif split_line[0] == 'Minimum':
                if split_line[1] == 'degree':
                    global_values['Minimum_degree'] = cur_last_val
                elif split_line[1] == 'strength':
                    global_values['Minimum_strength'] = cur_last_val
            elif split_line[0] == 'Maximum':
                if split_line[1] == 'degree':
                    global_values['Maximum_degree'] = cur_last_val
                elif split_line[1] == 'strength':
                    global_values['Maximum_strength'] = cur_last_val
            elif split_line[0] == 'Assortativity':
                global_values['Assortativity'] = cur_last_val
                global_values['Assortativity_weighted'] = next_last_val
        return global_values
