modified edges function.