yields nodes from graph that have the specified tag

def get_nodes_by_tag(self, graph, tag_name):
        """ yields nodes from graph that have the specified tag """
        for node, real_node in self.parsed_nodes(graph):
            if tag_name in real_node.tags:
                yield node