@Test public void testEmptyTopology() { OspfTopology topo = EMPTY; assertThat(topo.getGraph().nodes(), empty()); }
@JsonIgnore public ValueGraph<OspfNeighborConfigId, OspfSessionProperties> getGraph() { return _graph; }
OspfTopology { @JsonIgnore public ValueGraph<OspfNeighborConfigId, OspfSessionProperties> getGraph() { return _graph; } }
OspfTopology { @JsonIgnore public ValueGraph<OspfNeighborConfigId, OspfSessionProperties> getGraph() { return _graph; } OspfTopology(ValueGraph<OspfNeighborConfigId, OspfSessionProperties> graph); }
OspfTopology { @JsonIgnore public ValueGraph<OspfNeighborConfigId, OspfSessionProperties> getGraph() { return _graph; } OspfTopology(ValueGraph<OspfNeighborConfigId, OspfSessionProperties> graph); @Nonnull Set<OspfNeighborConfigId> neighbors(OspfNeighborConfigId node); @Nonnull Set<EdgeId> edges(); @JsonProperty(PROP_NODES) @Nonnull Set<OspfNeighborConfigId> getNodes(); @Nonnull Optional<OspfSessionProperties> getSession(EdgeId id); @Nonnull Set<EdgeId> incomingEdges(OspfNeighborConfigId head); static EdgeId makeEdge(OspfNeighborConfigId tail, OspfNeighborConfigId head); @Override boolean equals(@Nullable Object o); @JsonIgnore ValueGraph<OspfNeighborConfigId, OspfSessionProperties> getGraph(); @Override int hashCode(); }
OspfTopology { @JsonIgnore public ValueGraph<OspfNeighborConfigId, OspfSessionProperties> getGraph() { return _graph; } OspfTopology(ValueGraph<OspfNeighborConfigId, OspfSessionProperties> graph); @Nonnull Set<OspfNeighborConfigId> neighbors(OspfNeighborConfigId node); @Nonnull Set<EdgeId> edges(); @JsonProperty(PROP_NODES) @Nonnull Set<OspfNeighborConfigId> getNodes(); @Nonnull Optional<OspfSessionProperties> getSession(EdgeId id); @Nonnull Set<EdgeId> incomingEdges(OspfNeighborConfigId head); static EdgeId makeEdge(OspfNeighborConfigId tail, OspfNeighborConfigId head); @Override boolean equals(@Nullable Object o); @JsonIgnore ValueGraph<OspfNeighborConfigId, OspfSessionProperties> getGraph(); @Override int hashCode(); static final OspfTopology EMPTY; }