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