Reducing for Graph. Base functionality.