Second pass through the graph