()
| 35 | public abstract IntIterator dstIter(int srcVid); |
| 36 | |
| 37 | public String print() { |
| 38 | StringBuilder sb = new StringBuilder(); |
| 39 | for (int i = 0; i < numVertices(); ++i) { |
| 40 | IntIterator dstIter = dstIter(i); |
| 41 | if (!dstIter.hasNext()) continue; |
| 42 | sb.append(i).append(" => "); |
| 43 | while (dstIter.hasNext()) { |
| 44 | sb.append(dstIter.next()).append(", "); |
| 45 | } |
| 46 | sb.append('\n'); |
| 47 | } |
| 48 | return sb.toString(); |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Helper function collecting all the indexes set in a bitset into an sorted array. |
no test coverage detected