def add_edge(from_node_id, to_node_id, process_dict, bpmn_diagram, sequence_flows):
    """

    :param from_node_id:
    :param to_node_id:
    :param process_dict:
    :param bpmn_diagram:
    :param sequence_flows:
    """
    condition = get_connection_condition_if_present(to_node_id, process_dict)
    bpmn_diagram.diagram_graph.add_edge(from_node_id, to_node_id)
    flow_id = get_flow_id(from_node_id, to_node_id)
    bpmn_diagram.diagram_graph[from_node_id][to_node_id][consts.Consts.id] = flow_id
    bpmn_diagram.diagram_graph[from_node_id][to_node_id][consts.Consts.process] = default_process_id
    bpmn_diagram.diagram_graph[from_node_id][to_node_id][consts.Consts.name] = ""
    bpmn_diagram.diagram_graph[from_node_id][to_node_id][consts.Consts.source_ref] = from_node_id
    bpmn_diagram.diagram_graph[from_node_id][to_node_id][consts.Consts.target_ref] = to_node_id
    if bool(condition):
        bpmn_diagram.diagram_graph[from_node_id][to_node_id][consts.Consts.condition_expression] = {
            consts.Consts.id: flow_id + "_cond",
            consts.Consts.condition_expression: condition
        }
    sequence_flows[flow_id] = {consts.Consts.name: flow_id, consts.Consts.source_ref: from_node_id,
                               consts.Consts.target_ref: to_node_id}
def add_edge ( from_node_id , to_node_id , process_dict , bpmn_diagram , sequence_flows ) : condition = get_connection_condition_if_present ( to_node_id , process_dict ) bpmn_diagram . diagram_graph . add_edge ( from_node_id , to_node_id ) flow_id = get_flow_id ( from_node_id , to_node_id ) bpmn_diagram . diagram_graph [ from_node_id ] [ to_node_id ] [ consts . Consts . id ] = flow_id bpmn_diagram . diagram_graph [ from_node_id ] [ to_node_id ] [ consts . Consts . process ] = default_process_id bpmn_diagram . diagram_graph [ from_node_id ] [ to_node_id ] [ consts . Consts . name ] = "" bpmn_diagram . diagram_graph [ from_node_id ] [ to_node_id ] [ consts . Consts . source_ref ] = from_node_id bpmn_diagram . diagram_graph [ from_node_id ] [ to_node_id ] [ consts . Consts . target_ref ] = to_node_id if bool ( condition ) : bpmn_diagram . diagram_graph [ from_node_id ] [ to_node_id ] [ consts . Consts . condition_expression ] = { consts . Consts . id : flow_id + "_cond" , consts . Consts . condition_expression : condition } sequence_flows [ flow_id ] = { consts . Consts . name : flow_id , consts . Consts . source_ref : from_node_id , consts . Consts . target_ref : to_node_id }
:param from_node_id:
    :param to_node_id:
    :param process_dict:
    :param bpmn_diagram:
    :param sequence_flows: