Edge object must be public for Edge case class