Use DYNAMIC_GRAPH_ENTITY_DECL macro to avoid potential redeclaration of variables