class Layer2Topology {

  @VisibleForTesting
  static @Nonnull Layer2Topology fromEdges(Set<Layer2Edge> edges) {
    Builder builder = builder();
    edges.forEach(builder::addEdge);
    return builder.build();
  }

  private  Layer2Topology(Map<Layer2Node, Layer2Node> representativeByNode);

}