Monotone threshold activation Created 2026-10-25 Updated 2026-10-31
In a finite graph, start with an active vertex set and thresholds . An inactive vertex becomes active once sufficiently many neighbours are active, and activated vertices remain active. Add eligible vertices until no more can be added. If is any threshold-closed set containing , induction shows every activated vertex lies in . The terminal active set is itself closed, so it is the least such closure and is independent of the eligible-vertex processing order.
For integer thresholds, compute active-neighbour counts and keep a work queue of vertices newly reaching their thresholds. Each vertex is queued once and each edge is inspected a constant number of times, giving running time. Strict-majority activation has , so an isolated inactive vertex never qualifies. A maximum priority queue of activation margins is an alternative implementation.
A maximum priority queue is an abstract data type holding items with comparable priority keys and giving access to a greatest-key item. Equal priorities may occur; any one of the tied maximum items can be returned unless a tie rule is specified.
  • empty or initialization creates a queue with no items; isEmpty and size inspect its occupancy.
  • insert(item, key) adds an item with its priority.
  • maximum() returns a greatest-priority item without removing it.
  • extractMax() returns and removes a greatest-priority item.
  • When mutable priorities are supported, increaseKey(handle, newKey) raises an existing item's priority; the handle identifies its stored location.
The central behavior is . Calling maximum or extractMax on an empty queue must report that no item exists. Raising a key is a common supported extension; arbitrary-key changes and deletion by handle can also be supplied.
A maximum priority queue stores keyed entries and supports insertion, inspection and removal of an entry with greatest key, and key increases. A max-heap gives the following running times, with the size/capacity cost of the backing array accounted for separately:
Empty-queue inspections and removals need an explicit failure result. The index argument to increaseKey must identify the entry's current location: if callers use item handles, update their location records during swaps.