def serializeEdge(edge):
    """Return the Edge as native Python datatypes, fit for json.

    Edges only reference Knobs, so we have to store their Node id here
    to be able to correctly associate it once reconstructed.
    """
    return {
        "source_nodeId": edge.source.node().uuid,
        "source_name": edge.source.name,

        "target_nodeId": edge.target.node().uuid,
        "target_name": edge.target.name,
    }