class EdgesAnswerer extends Answerer {

  @VisibleForTesting
  static Stream<Row> vxlanEdgeToRows(
      NetworkConfigurations nc,
      Set<String> includeNodes,
      Set<String> includeRemoteNodes,
      EndpointPair<VxlanNode> edge) {
    VxlanNode node1 = edge.nodeU();
    VxlanNode node2 = edge.nodeV();
    String h1 = node1.getHostname();
    String h2 = node2.getHostname();
    Stream.Builder<Row> builder = Stream.builder();
    if (includeNodes.contains(h1) && includeRemoteNodes.contains(h2)) {
      builder.add(vxlanEdgeToRow(nc, node1, node2));
    }
    if (includeNodes.contains(h2) && includeRemoteNodes.contains(h1)) {
      builder.add(vxlanEdgeToRow(nc, node2, node1));
    }
    return builder.build();
  }

    EdgesAnswerer(Question question, IBatfish batfish);

}