¡@

Home 

python Programming Glossary: memo_dict

list of all paths from source to sink in directed acyclic graph [duplicate]

http://stackoverflow.com/questions/3278481/list-of-all-paths-from-source-to-sink-in-directed-acyclic-graph

source_node.children paths allpaths new_source sink_node memo_dict for path in paths path source_node path result.add path result.. of how that would work def allpaths source_node sink_node memo_dict None if memo_dict is None # putting or any other mutable object.. work def allpaths source_node sink_node memo_dict None if memo_dict is None # putting or any other mutable object # as the default..