def groupInstructionsByGraph(instructions):
    graphDict = {}

    for i in instructions:
        graph = i.graph

        if graph not in graphDict:
            graphDict[graph] = set()

        graphDict[graph].add(i)

    return graphDict
dataset/ETHPy150Open ufora/ufora/ufora/FORA/Interpreter/InstructionGraph.py/groupInstructionsByGraph/original