Edge[] instead of ArrayList,Edge>