public class Node { color c = color(255,255,0); float x, y; ArrayList edges; Node(float x, float y) { this.x = x; this.y = y; edges = new ArrayList(); } void paint(){ noStroke(); fill(c); rect(x-1,y-1,3,3); } }