graph: made global variable static

Github thought the whole file was C++ just because of it. And I was not even using it in the first place