[ https://issues.apache.org/jira/browse/CAUSEWAY-3822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andi Huber closed CAUSEWAY-3822. -------------------------------- > [Commons] Graph<T> support filtering and fix inconsistent API in > GraphBuilder<T> > -------------------------------------------------------------------------------- > > Key: CAUSEWAY-3822 > URL: https://issues.apache.org/jira/browse/CAUSEWAY-3822 > Project: Causeway > Issue Type: Improvement > Components: Commons > Reporter: Andi Huber > Assignee: Andi Huber > Priority: Major > Fix For: 2.2.0, 3.2.0 > > > {code:java} > GraphBuilder<T> addNode(T node) > {code} > allows to add duplicate nodes, however by doing so the method > {code:java} > GraphBuilder<T> addEdge(T from, T to) > {code} > is rendered unusable. > The fix is to ignore addition of node duplicates. > And while we are at it, we add a new Graph<T>#filter(Predicate<T>) method. > -- This message was sent by Atlassian Jira (v8.20.10#820010)