OFFSET
0,4
COMMENTS
Two edges {a,b}, {c,d} are weakly nesting if a <= c < d <= b or c <= a < b <= d.
LINKS
MATHEMATICA
wnsXQ[stn_]:=MatchQ[stn, {___, {x_, y_}, ___, {z_, t_}, ___}/; x<=z<t<=y||z<=x<y<=t];
Table[Length[Select[Subsets[Subsets[Range[n], {2}]], wnsXQ]], {n, 0, 5}]
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Gus Wiseman, Jun 21 2019
STATUS
approved