Re: Priority Queue with Mutable Elements

2007-06-16 Thread Scott David Daniels
Chris Lasher wrote: > On Jun 15, 5:52 pm, Josiah Carlson <[EMAIL PROTECTED]> > wrote: >> See this implementation of a "pair heap": >>http://mail.python.org/pipermail/python-dev/2006-November/069845.html >> ...which offers the ability to update the 'priority' of an entry in the >> heap. It requ

Re: Priority Queue with Mutable Elements

2007-06-16 Thread Chris Lasher
On Jun 15, 5:52 pm, Josiah Carlson <[EMAIL PROTECTED]> wrote: > See this implementation of a "pair heap": >http://mail.python.org/pipermail/python-dev/2006-November/069845.html > ...which offers the ability to update the 'priority' of an entry in the > heap. It requires that the 'value' in (pr

Re: Priority Queue with Mutable Elements

2007-06-15 Thread Josiah Carlson
Chris Lasher wrote: > I am working with large graphs (~150,000 to 500,000 nodes) which I > need decompose node-by-node, in order of a node's value. A node's > value is determined by the sum of its edge weights. When a node is > removed from the graph, its neighbors' values must be updated to take >

Priority Queue with Mutable Elements

2007-06-15 Thread Chris Lasher
Hello, I am working with large graphs (~150,000 to 500,000 nodes) which I need decompose node-by-node, in order of a node's value. A node's value is determined by the sum of its edge weights. When a node is removed from the graph, its neighbors' values must be updated to take into account the remo