public function getNodesByLabels(array $labels = array(), $labelizedKeys = false)
    {
        $nodes = [];
        foreach ($labels as $label) {
            $lnodes = $this->getNodesByLabel($label);
            foreach ($lnodes as $node) {
                if ($labelizedKeys) {
                    $nodes[$label] = $node;
                } else {
                    $nodes[] = $node;
                }
            }
        }

        return $nodes;
    }
public function getNodesByLabels(array $labels = array(), $labelizedKeys = false)
    {
        $nodes = [];
        foreach ($labels as $label) {
            $lnodes = $this->getNodesByLabel($label);
            foreach ($lnodes as $node) {
                if ($labelizedKeys) {
                    $nodes[$label] = $node;
                } else {
                    $nodes[] = $node;
                }
            }
        }

        return $nodes;
    }
public function getNodesByLabels ( array $ labels = array ( ) , $ labelizedKeys = false ) { $ nodes = [ ] ; foreach ( $ labels as $ label ) { $ lnodes = $ this -> getNodesByLabel ( $ label ) ; foreach ( $ lnodes as $ node ) { if ( $ labelizedKeys ) { $ nodes [ $ label ] = $ node ; } else { $ nodes [ ] = $ node ; } } } return $ nodes ; }
Returns all nodes with the given labels.

@param array $labels
@param bool  $labelizedKeys When true, the results are indexed by node
label. Assumes one node per label.

@return Node[]
Returns all nodes with the given labels .