implement some graph, fixed some bug
some fixed