Consider the following game on graphs (no multiple edges, but graphs can be disconnected).
Players A and B alternate picking a vertex. After picking a vertex, a number is assigned to that vertex such that the number is the smallest non-negative integer that is not already assigned to its neighbours.
The game ends when all vertices have numbers assigned to them. The last player to make a move wins if and only if that vertex was assigned an odd number.
Even for path graphs (that is, $n$ vertices in a line, connected with edges), I have no idea for which $n$ the first player has a winning strategy.
Some computations suggests that the first player lose if $n=1, 2, 4, 5, 6, 7, 9, 11, 13, 15$. I don't find a hit in OEIS that seem to make sense.
The cycle graphs and path graphs are easily related, as far as winning vs. losing positions. Upon making the initial move in a cycle $C_n$ graph, it becomes equivalent for the opposing player to moving in a path $P_{n+1}$ where the first and last nodes are already numbered $0$ (and the $n-1$ nodes between are still unnumbered).
Indeed it is subsequently more efficient to represent the intermediate graph game states as a "union" of path subgraphs whose unnumbered nodes are disjoint. It is convenient to consider artificially adding nodes numbered $-1$ to the ends of otherwise unnumbered path graphs, so that every unnumbered node has exactly two neighbors, and this does not affect the outcomes of games.
That is, an initial path graph $P_k$ is equivalent to a path graph $P_{k+2}$ with first and last nodes numbered $-1$. The next move would number one of the $k$ unnumbered nodes, effectively dividing the game's graph into two paths, each with a zero at one end and a $-1$ at the other, or leaving a single stretch $P_{k+1}$ with a zero at one end and a $-1$ at the other.
In this fashion any intermediate game state for a cycle $C_n$ or path $P_n$ can be represented as a sorted collection of "components" that partition the unnumbered nodes in arrangements compactly specified by $p(a,b,k)$, where $a \ge b$ are numbers of the two endpoints of a path that otherwise consists of $k \gt 0$ unnumbered nodes between those endpoints.
Update:
Using these more compact "path" segments to represent the "board" (partially numbered graphs), symmetries/equivalences can be more efficiently recognized. Runs with fifteen unnumbered nodes now take about several minutes rather than the better part of a day.
A striking pattern emerges. The table below shows the winning or losing status of a single path segment
path(A,C,K), havingKyet unnumbered nodes between endpoints numberedAandCrespectively:While columns for $k=1,\ldots,7$ contain a good bit of variation, longer paths seem to be exclusively winning for $k$ even and losing for $k$ odd, regardless of the endpoints. Computations have been done for all the endpoints shown up to $k=15$, and for "default" endpoints $a=c=-1$ with $k=16,17$ as well.
Some general results
Intuitively there should be some Nim-like rule for determining the winning or losing status of such collections of paths with numbered endpoints. So far I have only been able to prove the following easy lemma.
Suppose the game state $S$ can be expressed as the union of two subgraphs $S_1$ and $S_2$ such that no unnumbered node is shared by $S_1$ and $S_2$. If $S_1$ and $S_2$ are losing positions (i.e. for the player required to move next), and if both $S_1$ and $S_2$ have even counts of unnumbered nodes, then $S$ is a losing position (and also has an even count of unnumbered nodes, aka moves left).
The proof is easy. As the current player moves in $S_1$ or $S_2$, the opponent can responds with a perfect defending move accordingly. The updated game state is again a union of two losing positions with even numbers of moves left in each, unless such a pair of moves "finishes" $S_1$ or $S_2$, leaving only one unfinished subgraph with its losing position.
An immediate corollary to this is that if $S_1$ is a winning position with an odd number of moves left, and $S_2$ (disjoint from $S_1$ as to unnumbered nodes) is a losing position with an even number of moves left, then the "union" of $S_1$ and $S_2$ is a winning position. The proof is just to observe that after making a winning move in $S_1$, one is left with a losing position (either by the preceding lemma, or by exhausting $S_1$ leaving only $S_2$).