def get_ties(G):
    # we are going to make a dictionary whose keys are every dependency
    # and whose values are a list of all targets that use that dependency.
    # after making the dictionary, values whose length is above one will
    # be called "ties"
    ties = []
    dep_dict = {}
    for node in G.nodes(data=True):
        if 'dependencies' in node[1]:
            for item in node[1]['dependencies']:
                if item not in dep_dict:
                    dep_dict[item] = []
                dep_dict[item].append(node[0])
    for item in dep_dict:
        if len(list(set(dep_dict[item]))) > 1:
            ties.append(list(set(dep_dict[item])))
    return ties
Update the master branch with the dependencies of this package.
dataset/ETHPy150Open tonyfischetti/sake/sakelib/acts.py/get_ties--crossover with--dataset/ETHPy150Open google/fplutil/disttools/push_package.py/Package.update_master