Set instead of Vector for predecessors and successors, added steps parameter for API.