public function isWeighted()
    {
        foreach ($this->set->getEdges() as $edge) {
            if ($edge->getWeight() !== NULL) {
                return true;
            }
        }

        return false;
    }
public function isWeighted()
    {
        foreach ($this->set->getEdges() as $edge) {
            if ($edge->getWeight() !== NULL) {
                return true;
            }
        }

        return false;
    }
public function isWeighted ( ) { foreach ( $ this -> set -> getEdges ( ) as $ edge ) { if ( $ edge -> getWeight ( ) !== NULL ) { return true ; } } return false ; }
checks whether this graph has any weighted edges

edges usually have no weight attached. a weight explicitly set to (int) 0
will be considered as 'weighted'.

@return boolean
@uses Edge::getWeight()
checks whether this graph has any weighted edges