@NotNull @Override public Set<CommitId> getContainingBranches(@NotNull CommitId commit) { int commitIndex = myPermanentCommitsInfo.getNodeId(commit); return myPermanentCommitsInfo.convertToCommitIdSet( myReachableNodes.getContainingBranches(commitIndex, myBranchNodeIds)); }
@NotNull @Override public List<CommitId> getChildren(@NotNull CommitId commit) { int commitIndex = myPermanentCommitsInfo.getNodeId(commit); return myPermanentCommitsInfo.convertToCommitIdList( LinearGraphUtils.getUpNodes(myPermanentLinearGraph, commitIndex)); }