code: @Override
      public Collection<KamEdge> getEdges(EdgeFilter filter) {
          Set<KamEdge> kamEdges = new LinkedHashSet<KamEdge>();
          for (KamEdge kamEdge : edgeIdMap.keySet()) {
  
              // Check for an edge filter
              if (null != filter) {
                  if (!filter.accept(kamEdge)) {
                      continue;
                  }
              }
              kamEdges.add(kamEdge);
          }
          return kamEdges;
      }
docs: {@inheritDoc}