Limiting MAX_DIST and AVG_PATH_LEN graph features to smaller files