@ Override public int perimeter ( int size ) { size = size / 2 ; int retval = sw . perimeter ( size ) ; retval += se . perimeter ( size ) ; retval += ne . perimeter ( size ) ; retval += nw . perimeter ( size ) ; return retval ; }
Compute the perimeter for a grey node using Samet 's algorithm .