gengraph: Only print "ends:" list when non-empty.
gengraph: Only print "ends:" list when non-empty.

An empty "ends:" list is a syntax error.

katef/libfsm,katef/libfsm,katef/libfsm,katef/libfsm,katef/libfsm