You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: compute_dataflow_chain_stat.rb
    path of file: ./repos/powerstation/powerstation/IDE_plugin/src/main/resources/static-analyzer/controller_model_analysis
    
    the code of the file until where you have to start completion: class TEdge
	def initialize(dist, c)
		@node = c
		@dist 
    
def compute_reachability(n)
	@processed_list = Array.new
	@reaches = Array.new
	@queue = Array.new
	@queue.push(n)
	while @queue.length > 0
		temp_node = @queue.shift
		@processed_list.push(temp_node)
		temp_node.Tnode.children.each do |c|
			if @processed_list.include?c.node.node
			else
				@queue.push(c.node.node)
				@reaches.push(c.node.node)
			end
		end