MCPcopy Create free account
hub / github.com/MolinDeng/Princeton-algs4 / isFull

Method isFull

01Lab-Percolation/Percolation.java:77–81  ·  view source on GitHub ↗
(int row, int col)

Source from the content-addressed store, hash-verified

75
76 // is the site (row, col) full?
77 public boolean isFull(int row, int col) {
78 validate(row, "row");
79 validate(col, "col");
80 return isOpen(row, col) && uf1.find(getSite(row, col)) == uf1.find(0);
81 }
82
83 // returns the number of open sites
84 public int numberOfOpenSites() {

Callers

nothing calls this directly

Calls 3

validateMethod · 0.95
isOpenMethod · 0.95
getSiteMethod · 0.95

Tested by

no test coverage detected