class TopologyUtil {

  public static @Nonnull Layer1Topology computeLayer1LogicalTopology(
      Layer1Topology layer1PhysicalTopology, Map<String, Configuration> configurations) {
    return new Layer1Topology(
        layer1PhysicalTopology.getGraph().edges().stream()
            .map(pEdge -> pEdge.toLogicalEdge(NetworkConfigurations.of(configurations)))
            .filter(Objects::nonNull)
            .collect(ImmutableSet.toImmutableSet()));
  }

  private  TopologyUtil();

}