adds graph support in menpo version
defines graph for menpo case