Class UndirectedNetworkConnections<N,E>

java.lang.Object
com.google.common.graph.AbstractUndirectedNetworkConnections<N,E>
com.google.common.graph.UndirectedNetworkConnections<N,E>
Type Parameters:
N - Node parameter type
E - Edge parameter type
All Implemented Interfaces:
NetworkConnections<N,E>

final class UndirectedNetworkConnections<N,E> extends AbstractUndirectedNetworkConnections<N,E>
An implementation of NetworkConnections for undirected networks.
  • Constructor Details

    • UndirectedNetworkConnections

      UndirectedNetworkConnections(Map<E,N> incidentEdgeMap)
  • Method Details

    • of

      static <N, E> UndirectedNetworkConnections<N,E> of()
    • ofImmutable

      static <N, E> UndirectedNetworkConnections<N,E> ofImmutable(Map<E,N> incidentEdges)
    • adjacentNodes

      public Set<N> adjacentNodes()
    • edgesConnecting

      public Set<E> edgesConnecting(N node)
      Description copied from interface: NetworkConnections
      Returns the set of edges connecting the origin node to node. For networks without parallel edges, this set cannot be of size greater than one.