Added support for graph reduction