private Stream < ConceptSetMeasure > runComputeCentrality ( GraqlCompute . Centrality query ) { if ( query . using ( ) . equals ( DEGREE ) ) return runComputeDegree ( query ) ; if ( query . using ( ) . equals ( K_CORE ) ) return runComputeCoreness ( query ) ; throw new IllegalArgumentException ( "Unrecognised Graql Compute Centrality algorithm: " + query . method ( ) ) ; }
The Graql compute centrality query run method