Replace Node.edges data structure from Map<Character, Edge>
to EdgeBag