path_from_endpoint#

path_from_endpoint(k: PlanarDiagram, endpoint: Endpoint) list#

Return the path (edge/strand or part of an edge/strand) starting from the endpoint. A path stops at a vertex-like node or is a closed component. A path is an edge or part of an edge. :param k: planar diagram :param endpoint: starting endpoint :return: a list of endpoints continuing from the endpoint to a vertex-like node