20. The computer program product of claim 17 , wherein the relational features include at least one of the number of incoming extracted edges and the number of outgoing extracted edges associated with an extracted node or edge from the extracted nodes and edges.
17. A computer program product comprising: a non-transitory computer readable storage medium having computer readable program code embodied therewith, the computer readable program code configured to: receive one or more documents that contain a first flow diagram in one or more diagram formats supported by the documents; automatically extract from the first flow diagram one or more flow graphs comprising extracted nodes and edges; automatically extract from the first flow diagram relational, geometric and textual features for the extracted nodes and edges; automatically learning rules to recognize process semantics based on the relational, geometric and textual features of the extracted nodes and edges, the rules configured as a decision tree; and automatically generate, based on the learned rules, process modeling recognition code to recognize and decide process semantics in a second flow diagram.