def reproject(link, node, epsg):
    """
    reporoject link and node geodataframes

    for nodes, update X and Y columns

    """

    link = link.to_crs(epsg=epsg)
    node = node.to_crs(epsg=epsg)

    node["X"] = node["geometry"].apply(lambda p: p.x)
    node["Y"] = node["geometry"].apply(lambda p: p.y)

    return link, node