Create new graph directive