class JobGraph implements Serializable {

	public Set<SlotSharingGroup> getSlotSharingGroups() {
		final Set<SlotSharingGroup> slotSharingGroups = IterableUtils
			.toStream(getVertices())
			.map(JobVertex::getSlotSharingGroup)
			.collect(Collectors.toSet());
		return Collections.unmodifiableSet(slotSharingGroups);
	}

	public  JobGraph(String jobName);
	public  JobGraph(JobID jobId, String jobName);
	public  JobGraph(JobVertex... vertices);
	public  JobGraph(String jobName, JobVertex... vertices);
	public  JobGraph(JobID jobId, String jobName, JobVertex... vertices);

}