The Young–Fibonacci graph is an infinite
graph, with a vertex for each string of the digits "1" and "2" (including the
empty string). The
neighbors of a string
s are the strings formed from
s by one of the following operations: • Insert a "1" into
s, prior to the leftmost "1" (or anywhere in
s if it does not already contain a "1"). • Change the leftmost "1" of
s into a "2". • Remove the leftmost "1" from
s. • Change a "2" that does not have a "1" to the left of it into a "1". It is straightforward to verify that each operation can be inverted: operations 1 and 3 are inverse to each other, as are operations 2 and 4. Therefore, the resulting graph may be considered to be
undirected. However, it is usually considered to be a
directed acyclic graph in which each edge connects from a vertex of lower rank to a vertex of higher rank. As both and observe, this graph has the following properties: • It is
connected: any nonempty string may have its rank reduced by some operation, so there is a sequence of operations leading from it to the empty string, reversing which gives a directed path in the graph from the empty string to every other vertex. • It is compatible with the rank structure: every directed path has length equal to the difference in ranks of its endpoints. • For every two distinct nodes
u and
v, the number of common immediate predecessors of
u and
v equals the number of common immediate successors of
u and
v; this number is either zero or one. • The
out-degree of every vertex equals one plus its
in-degree. calls a graph with these properties a
Y-graph; calls a graph with a weaker version of these properties (in which the numbers of common predecessors and common successors of any pair of nodes must be equal but may be greater than one) the graph of a
differential poset. ==Partial order and lattice structure==