[methods] determining equations for graphs