The percolation is simulated on 2D square lattice with uniformly weighted sites acc and the vector p, distributed over the lattice directions.
The anisotropic cluster is formed from the accessible sites connected with the initial subset, and depends on the direction in 2D square lattice.
To form the cluster the condition acc[set+e[n]]<p[n] is iteratively tested for sites of the von Neumann (1,0)-neighborhood e for the current cluster perimeter set, where n is equal to direction in 2D square lattice.
Von Neumann (1,0)-neighborhood on 2D square lattice consists of sites, only one coordinate of which is different from the current site by one: e=c(-1, 1, -x, x).
Forming cluster ends with the exhaustion of accessible sites in von Neumann (1,0)-neighborhood of the current cluster perimeter.