This repository contains the C source code for Contiki to implement the rigidity check on WSN based on the pebble game.