class EdgesAnswerer extends Answerer {

  @VisibleForTesting
  static Multiset<Row> getLayer1Edges(
      Set<String> includeNodes,
      Set<String> includeRemoteNodes,
      @Nullable Layer1Topology layer1Topology) {
    if (layer1Topology == null) {
      return HashMultiset.create();
    }
    return layer1Topology.getGraph().edges().stream()
        .filter(
            layer1Edge ->
                includeNodes.contains(layer1Edge.getNode1().getHostname())
                    && includeRemoteNodes.contains(layer1Edge.getNode2().getHostname()))
        .map(EdgesAnswerer::layer1EdgeToRow)
        .collect(Collectors.toCollection(HashMultiset::create));
  }

    EdgesAnswerer(Question question, IBatfish batfish);

}