public function getWeightMin()
    {
        $min = NULL;
        foreach ($this->set->getEdges() as $edge) {
            $weight = $edge->getWeight();
            if ($weight !== null && ($min === NULL || $weight < $min)) {
                $min = $weight;
            }
        }

        return $min;
    }
public function getWeightMin()
    {
        $min = NULL;
        foreach ($this->set->getEdges() as $edge) {
            $weight = $edge->getWeight();
            if ($weight !== null && ($min === NULL || $weight < $min)) {
                $min = $weight;
            }
        }

        return $min;
    }
public function getWeightMin ( ) { $ min = NULL ; foreach ( $ this -> set -> getEdges ( ) as $ edge ) { $ weight = $ edge -> getWeight ( ) ; if ( $ weight !== null && ( $ min === NULL || $ weight < $ min ) ) { $ min = $ weight ; } } return $ min ; }
get minimum weight assigned to all edges

minimum weight is often needed because some algorithms do not support
negative weights or edges with zero weight.

edges with NO (null) weight will NOT be considered for the minimum weight.

@return float|NULL minimum edge weight or NULL if graph is not weighted or empty
@uses Edge::getWeight()
get minimum weight assigned to all edges