def cytoscape_edge(edge):
    """convert edge data into cytoscape format"""
    return dict(
        id=edge["_id"],
        edgeType=edge["edge_type"],
        score=edge["score"],
        source=edge["_from"],
        target=edge["_to"],
    )