public function getFlowMax()
    {
        $resultGraph = $this->createGraph();

        $start = $resultGraph->getVertex($this->startVertex->getId());
        $maxFlow = 0;
        foreach ($start->getEdgesOut() as $edge) {
            $maxFlow = $maxFlow + $edge->getFlow();
        }

        return $maxFlow;
    }
public function getFlowMax()
    {
        $resultGraph = $this->createGraph();

        $start = $resultGraph->getVertex($this->startVertex->getId());
        $maxFlow = 0;
        foreach ($start->getEdgesOut() as $edge) {
            $maxFlow = $maxFlow + $edge->getFlow();
        }

        return $maxFlow;
    }
public function getFlowMax ( ) { $ resultGraph = $ this -> createGraph ( ) ; $ start = $ resultGraph -> getVertex ( $ this -> startVertex -> getId ( ) ) ; $ maxFlow = 0 ; foreach ( $ start -> getEdgesOut ( ) as $ edge ) { $ maxFlow = $ maxFlow + $ edge -> getFlow ( ) ; } return $ maxFlow ; }
Returns max flow value

@return double
Returns max flow value