Add directory and document graph