How can I produce a celtic knot pattern in grasshopper

See also this discussion