public function getNodesByLabel($name, $labelizedKeys = false)
    {
        $collection = array();
        foreach ($this->getNodes() as $node) {
            if ($node->hasLabel($name)) {
                if ($labelizedKeys) {
                    $collection[$name] = $node;
                } else {
                    $collection[] = $node;
                }
            }
        }

        return $collection;
    }