graph working