rename graph directives to be more generic