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

Method isOpen

LabEnv/01Lab/Percolation.java:70–74  ·  view source on GitHub ↗
(int row, int col)

Source from the content-addressed store, hash-verified

68
69 // is the site (row, col) open?
70 public boolean isOpen(int row, int col) {
71 validate(row, "row");
72 validate(col, "col");
73 return sites[getSite(row, col)];
74 }
75
76 // is the site (row, col) full?
77 public boolean isFull(int row, int col) {

Callers 6

PercolationStatsMethod · 0.95
mainMethod · 0.95
openMethod · 0.95
isFullMethod · 0.95
mainMethod · 0.95
drawMethod · 0.45

Calls 2

validateMethod · 0.95
getSiteMethod · 0.95

Tested by

no test coverage detected