public int fromDegree(Object from, boolean excludeSameVertexEdges) {
		if (!excludeSameVertexEdges)
			return degree(from);		
		int count = 0;
		Object[] vertices = verticesToNeighbors.keySet().toArray();
		for (int i=0; i<vertices.length; i++)			
			if (hasEdge(from, vertices[i]) && !vertices[i].equals(from))
				count++;
		return count;
	}