//This is the vertex representation class

import java.text.*;

public class Vertex
{
	private int x, y;

	public Vertex(int kind, int number){
		this.x = kind;
		this.y = number;
	}

	public int kind() {return x;} // kind is the name of each vertices
	public int number() {return y;} // number is the number of edges incident to one vertex.

	public String toString() {
		DecimalFormat df = new DecimalFormat("0.##");
       	return "{" + df.format(x) + "," + df.format(y) + "}";

	}
};
