commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone Tripodi (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SANDBOX-366) Move Graph algorithms to fluent APIs
Date Sun, 22 Jan 2012 20:02:39 GMT
Move Graph algorithms to fluent APIs
------------------------------------

                 Key: SANDBOX-366
                 URL: https://issues.apache.org/jira/browse/SANDBOX-366
             Project: Commons Sandbox
          Issue Type: Improvement
          Components: Graph
            Reporter: Simone Tripodi
            Assignee: Simone Tripodi


since the component is still in Sandbox, it is the right chance to move forward and improve
APIs user experience.

For example, instead of a more "traditional" call

{code}
Visit.breadthFirstSearch( Graph<V, E> graph, V source, GraphVisitHandler<V, E>
handler )
{code}

we could improve APIs in that way:

{code}
on( graph ).visit().from( source ).applyingDepthFirstSearch( new MyHandler<V, E>() );
{code}

making invocations more user friendly - and even fun!

--
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

        

Mime
View raw message