changed graphs.py to write to content_path/nodes