improve the compatibility of Graph.