@staticmethod<EOL><INDENT>def import_flow_di(diagram_graph, sequence_flows, message_flows, flow_element):<DEDENT>
flow_id = flow_element.getAttribute(consts.Consts.bpmn_element)<EOL>waypoints_xml = flow_element.getElementsByTagNameNS("<STR_LIT:*>", consts.Consts.waypoint)<EOL>length = len(waypoints_xml)<EOL>waypoints = [None] * length<EOL>for index in range(length):<EOL><INDENT>waypoint_tmp = (waypoints_xml[index].getAttribute(consts.Consts.x),<EOL>waypoints_xml[index].getAttribute(consts.Consts.y))<EOL>waypoints[index] = waypoint_tmp<EOL><DEDENT>flow_data = None<EOL>if flow_id in sequence_flows:<EOL><INDENT>flow_data = sequence_flows[flow_id]<EOL><DEDENT>elif flow_id in message_flows:<EOL><INDENT>flow_data = message_flows[flow_id]<EOL><DEDENT>if flow_data is not None:<EOL><INDENT>name = flow_data[consts.Consts.name]<EOL>source_ref = flow_data[consts.Consts.source_ref]<EOL>target_ref = flow_data[consts.Consts.target_ref]<EOL>diagram_graph[source_ref][target_ref][consts.Consts.waypoints] = waypoints<EOL>diagram_graph[source_ref][target_ref][consts.Consts.name] = name<EOL><DEDENT>
Adds Diagram Interchange information (information about rendering a diagram) to appropriate
BPMN sequence flow represented as graph edge.
We assume that each BPMNEdge has a list of 'waypoint' elements. BPMN 2.0 XML Schema states,
that each BPMNEdge must have at least two waypoints.

:param diagram_graph: NetworkX graph representing a BPMN process diagram,
:param sequence_flows: dictionary (associative list) of sequence flows existing in diagram.
    Key attribute is sequenceFlow ID, value is a dictionary consisting three key-value pairs: "name" (sequence
    flow name), "sourceRef" (ID of node, that is a flow source) and "targetRef" (ID of node, that is a flow target),
:param message_flows: dictionary (associative list) of message flows existing in diagram.
    Key attribute is messageFlow ID, value is a dictionary consisting three key-value pairs: "name" (message
    flow name), "sourceRef" (ID of node, that is a flow source) and "targetRef" (ID of node, that is a flow target),
:param flow_element: object representing a BPMN XML 'BPMNEdge' element.