table.storeupperbound(node,g);