public int getDegreeInChain(Object vertex) 
	{
		int count = 0;
		for (int i=0; i<vertices.size(); i++)
			if (graph.hasEdge(vertex, vertices.get(i)) && !vertices.get(i).equals(vertex))
				count++;
		return count;
	}