graphSet) { throw new PhutilInvalidStateException('setResourceGraph'); } $graph = $this->getResourceGraph(); $edges = array(); foreach ($nodes as $node) { $edges[$node] = idx($graph, $node, array()); } return $edges; } public function setResourceGraph(array $graph) { $this->resourceGraph = $graph; $this->graphSet = true; return $this; } private function getResourceGraph() { return $this->resourceGraph; } }