List all nodequeues a node belongs to
Given that you have loaded the node in $node you can do:

$queues = nodequeue_load_queues_by_type($node-&gt;type, 'links');
$subqueues = nodequeue_get_subqueues_by_node($queues, $node);