public void setBaconNumbers(String toName) {
		this.baconNumber = 0;
		Queue<ActorGraphNode> q = new LinkedList<>();
		q.add(this);
		ActorGraphNode current;
		while (!q.isEmpty()) {
			current = q.poll();
			for (ActorGraphNode neighbor : current.linkedActors) {

				if (neighbor.baconNumber == -1) {// not visited
					if (neighbor.name == toName) {// check if we find it
						neighbor.baconNumber = current.baconNumber + 1;
						return;
					} else {
						neighbor.baconNumber = current.baconNumber + 1;
						q.add(neighbor);
					}
				}
			}
		}
	}