public int getShorestPathLength(String from, String to) {
		if (!actors.containsKey(from) || !actors.containsKey(to))
			throw new Error("actor doesn't exist!");

		ActorGraphNode fromActor = actors.get(from);
		fromActor.setBaconNumbers(to);// BFS method
		return actors.get(to).getBaconNumber();

	}