test graph cut