Buggy code:
public class VisualCircleLayout extends AbstractLayout < VisualNode , VisualEdge > { protected VisualGraph graph ; private List < VisualNode > nodes ; private List < VisualNode > queries = new ArrayList < VisualNode > ( ) ; private List < VisualNode > relations = new ArrayList < VisualNode > ( ) ; private List < VisualNode > views = new ArrayList < VisualNode > ( ) ; private int singleQueriesCounter = 0 ; protected List < String > files = new ArrayList < String > ( ) ; protected List < VisualNode > RQV = new ArrayList < VisualNode > ( ) ; private List < List < VisualNode > > groups = new ArrayList < List < VisualNode > > ( ) ; public VisualCircleLayout ( VisualGraph g ) { } protected double getSmallRad ( List < VisualNode > komboi ) { } protected double getQueryRad ( int numOfNodes ) { } protected ArrayList < VisualNode > relationsInCluster ( List < VisualNode > nodes ) { } protected ArrayList < VisualNode > multiInputOrViewUsingQueriesInCluster ( List < VisualNode > nodes ) { } protected ArrayList < VisualNode > viewsInCluster ( List < VisualNode > nodes ) { } @ Override public void initialize ( ) { } @ Override public void reset ( ) { } protected List < VisualNode > getRelations ( ) { } protected void setRelations ( List < VisualNode > relations ) { } protected List < VisualNode > getQueries ( ) { } protected void setQueries ( List < VisualNode > queries ) { } protected List < VisualNode > getViews ( ) { } protected void setViews ( List < VisualNode > views ) { } @ SuppressWarnings ( { "unchecked" , "rawtypes" } ) protected Map < ArrayList < VisualNode > , Integer > sortByComparator ( Map < ArrayList < VisualNode > , Integer > unsortedMap ) { } protected void circles ( List < VisualNode > nodes , Point2D clusterCenter ) { } protected void placeMultyViews ( List < VisualNode > views , double l0Rad , Point2D clusterCenter ) { } protected void placeQueries ( ArrayList < VisualNode > queriesForThisRelation , Point2D clusterCenter , double qRad , int numberOfSingleRelationQueriesInTheCluster ) { } protected void placeRelation ( VisualNode relation , double relationAnglePossition , double relationRad , Point2D clusterCenter , int numberOfQueriesOnlyForThisRelation ) { } protected double getMaxViewRadius ( List < VisualNode > mv , double relRad ) { } protected ArrayList < VisualNode > getSortedArray ( Map < ArrayList < VisualNode > , Integer > sorted , List < VisualNode > relations2 ) { } protected ArrayList < VisualNode > getSingleTableQueriesOfRelation ( VisualNode relationNode ) { } protected void placeOutQueries ( List < VisualNode > nodes , double qRad , Point2D clusterCenter ) { } private Point2D addSomeNoise ( Point2D currentPossition , Double spreadFactor ) { } private boolean theyHaveSameProviders ( VisualNode v , VisualNode fvn ) { } protected Map < ArrayList < VisualNode > , Integer > getRSimilarity ( List < VisualNode > queries2 ) { } protected double getMaxRadius ( List < VisualNode > nodes ) { relations . clear ( ) ; views . clear ( ) ; queries . clear ( ) ; groups . clear ( ) ; ArrayList < VisualNode > singleRelationQueries = new ArrayList < VisualNode > ( ) ; relations . addAll ( relationsInCluster ( nodes ) ) ; for ( VisualNode relation : relations ) { singleRelationQueries . addAll ( getSingleTableQueriesOfRelation ( relation ) ) ; } queries . addAll ( multiInputOrViewUsingQueriesInCluster ( nodes ) ) ; views . addAll ( viewsInCluster ( nodes ) ) ; Map < ArrayList < VisualNode > , Integer > set = new HashMap < ArrayList < VisualNode > , Integer > ( getRSimilarity ( queries ) ) ; Map < ArrayList < VisualNode > , Integer > Vset = new HashMap < ArrayList < VisualNode > , Integer > ( getVSimilarity ( views ) ) ; if ( ( relationsInCluster ( nodes ) . size ( ) ) > 3 ) { Map < ArrayList < VisualNode > , Integer > sorted = sortByComparator ( set ) ; Map < ArrayList < VisualNode > , Integer > Vsorted = sortByComparator ( Vset ) ; ArrayList < VisualNode > sortedR = new ArrayList < VisualNode > ( getSortedArray ( sorted , relations ) ) ; ArrayList < VisualNode > sortedV = new ArrayList < VisualNode > ( getSortedArray ( Vsorted , views ) ) ; relations . clear ( ) ; views . clear ( ) ; relations . addAll ( sortedR ) ; views . addAll ( sortedV ) ; } double relationRad = getSmallRad ( relations ) ; double singleRelationQueriesRad = getQueryRad ( singleRelationQueries . size ( ) ) ; double maxViewRad = getMaxViewRadius ( views , relationRad ) ; if ( singleRelationQueriesRad < ( maxViewRad + ( relationRad * 0.5 ) ) ) { singleRelationQueriesRad = maxViewRad + ( relationRad * 0.5 ) ; } if ( singleRelationQueriesRad < ( relationRad * 2 ) ) { singleRelationQueriesRad = relationRad * 2 ; } <START_BUG> return singleRelationQueriesRad * 2.6 ; <END_BUG> } protected Map < ArrayList < VisualNode > , Integer > getVSimilarity ( List < VisualNode > views2 ) { } protected ArrayList < ArrayList < Cluster > > createTwoToISegments ( List < Cluster > clusters ) { } No newline ; at end ; of file ; }

Fix:
return singleRelationQueriesRad * 3 ;