add graph files
add some graph methods