let graph as g