[vcs-log-graph] convert Selection to a sealed class