private int getDecreasesEdges ( Collection < KamEdge > edges ) { int count = 0 ; for ( KamEdge edge : edges ) { if ( edge . getRelationshipType ( ) == RelationshipType . DECREASES || edge . getRelationshipType ( ) == RelationshipType . DIRECTLY_DECREASES ) { count ++ ; } } return count ; }
returns number of deceases and directly_decreases edges .