Gets a node by identifier.
InvalidArgumentException if no node matches the supplied identifier
public function getNode(string $id) : ServiceReferenceGraphNode { if (!isset($this->nodes[$id])) { throw new InvalidArgumentException(\sprintf('There is no node with id "%s".', $id)); } return $this->nodes[$id]; }