static int index =0; class Node{ int id; PVector currPos; PVector oldPos; ArrayList edges = new ArrayList(); ArrayList nodesConnectedTo = new ArrayList(); float weight = 0.5; boolean isKilled; float potential; Node(){ } Node(float x, float y, float z){ currPos = new PVector(x, y, z); oldPos = currPos; isKilled = false; potential=1;//random(0.1,5); id = index; index++; } void update() { } void draw() { fill(255,0,0); pushMatrix(); translate(currPos.x, currPos.y, currPos.z); box(weight); text(id,0,1); popMatrix(); } void eval() { } }