Class Graphs.TransposedValueGraph<N,​V>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private ValueGraph<N,​V> graph  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected ValueGraph<N,​V> delegate()  
      java.util.Optional<V> edgeValue​(EndpointPair<N> endpoints)
      Returns the value of the edge that connects endpoints (in the order, if any, specified by endpoints), if one is present; otherwise, returns Optional.empty().
      java.util.Optional<V> edgeValue​(N nodeU, N nodeV)
      Returns the value of the edge that connects nodeU to nodeV (in the order, if any, specified by endpoints), if one is present; otherwise, returns Optional.empty().
      V edgeValueOrDefault​(EndpointPair<N> endpoints, V defaultValue)
      Returns the value of the edge that connects endpoints (in the order, if any, specified by endpoints), if one is present; otherwise, returns defaultValue.
      V edgeValueOrDefault​(N nodeU, N nodeV, V defaultValue)
      Returns the value of the edge that connects nodeU to nodeV, if one is present; otherwise, returns defaultValue.
      boolean hasEdgeConnecting​(EndpointPair<N> endpoints)
      Returns true if there is an edge that directly connects endpoints (in the order, if any, specified by endpoints).
      boolean hasEdgeConnecting​(N nodeU, N nodeV)
      Returns true if there is an edge that directly connects nodeU to nodeV.
      int inDegree​(N node)
      Returns the count of node's incoming edges (equal to predecessors(node).size()) in a directed graph.
      int outDegree​(N node)
      Returns the count of node's outgoing edges (equal to successors(node).size()) in a directed graph.
      java.util.Set<N> predecessors​(N node)
      Returns all nodes in this graph adjacent to node which can be reached by traversing node's incoming edges against the direction (if any) of the edge.
      java.util.Set<N> successors​(N node)
      Returns all nodes in this graph adjacent to node which can be reached by traversing node's outgoing edges in the direction (if any) of the edge.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait