Added limit on edge traversal