graph.spad line 1008 [edit on github]
This is used with graph theory code (FiniteGraph, DirectedGraph. FunctionGraph, and so on) to represent a loop as either a sequence of vertex or arrow indexes depending on context. The main benefit is that the loop is stored in a canonical way so that loops can be quickly compared using '='
.
entries(lp)
returns list of indexes that make this loop
loop(
constructs loop from list of indexes li
)li