Fix off-by-one error in graph for no-categories

Change-Id: I3846e311243d89376bbc2c8d027014a214cfa816