Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B17CB92FB for ; Mon, 23 Jan 2012 22:56:02 +0000 (UTC) Received: (qmail 28701 invoked by uid 500); 23 Jan 2012 22:56:02 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 28327 invoked by uid 500); 23 Jan 2012 22:56:01 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 28309 invoked by uid 99); 23 Jan 2012 22:56:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2012 22:56:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2012 22:56:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0239C15E42B for ; Mon, 23 Jan 2012 22:55:40 +0000 (UTC) Date: Mon, 23 Jan 2012 22:55:40 +0000 (UTC) From: "Claudio Squarcella (Updated) (JIRA)" To: issues@commons.apache.org Message-ID: <152348130.68906.1327359340010.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1365849125.30120.1324375050838.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (SANDBOX-355) Provide Flow algorithms MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SANDBOX-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claudio Squarcella updated SANDBOX-355: --------------------------------------- Attachment: SANDBOX-355_FordFulkersonImplementationAndTest.patch Hi, find attached an implementation for the algorithm of Ford and Fulkerson to find the max flow in a network. The implementation is split between a main class {{FordFulkerson}} which provides two public methods (one for generic weights, the other for {{Integer}} weights) and an auxiliary class {{FlowNetworkHandler}} which does the dirty job. I also implemented a test using [this example|http://en.wikipedia.org/wiki/Ford%E2%80%93Fulkerson_algorithm#Integral_example] and it runs just fine. I am available for clarifications and comments. Ciao, Claudio > Provide Flow algorithms > ----------------------- > > Key: SANDBOX-355 > URL: https://issues.apache.org/jira/browse/SANDBOX-355 > Project: Commons Sandbox > Issue Type: New Feature > Components: Graph > Reporter: Simone Tripodi > Attachments: SANDBOX-355_FordFulkersonImplementationAndTest.patch > > > right now the {{org.apache.commons.graph.flow}} package contains an empty implementation of [Ford-Fulkerson|http://en.wikipedia.org/wiki/Ford%E2%80%93Fulkerson_algorithm]'s algorithm, that needs to be filled. > Other algorithms that work on resolving Flow-related problems, are welcome. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira