class Vertex{ //Could use PVector, but this does just fine public float x; public float y; public String id; public int tree = -1; Vertex(float _x, float _y, String _id) { x = _x; y = _y; id = _id; } }