modify to avoid compile error in Graph