def expressions(cls): # Matching # o o return [utils.node_path_graph(cls.array1)] g = OrderedDiGraph() g.add_node(MergeSourceSinkArrays._array1) return [g]
def expressions(cls): # Matching # o o # | | # /======\ g = OrderedDiGraph() g.add_node(cls.array1) g.add_node(cls.array2) g.add_node(cls.map_entry) g.add_edge(cls.array1, cls.map_entry, None) g.add_edge(cls.array2, cls.map_entry, None) return [g]
def expressions(cls): # Matching # \======/ # | | # o o g = OrderedDiGraph() g.add_node(cls.array1) g.add_node(cls.array2) g.add_node(cls.map_exit) g.add_edge(cls.map_exit, cls.array1, None) g.add_edge(cls.map_exit, cls.array2, None) return [g]