renames and add graph using networkx
func rename
list API