Class AbstractValueGraph<N,​V>

    • Constructor Detail

      • AbstractValueGraph

        public AbstractValueGraph()
    • Method Detail

      • edgeValue

        public V edgeValue​(java.lang.Object nodeU,
                           java.lang.Object nodeV)
        Description copied from interface: ValueGraph
        If there is an edge connecting nodeU to nodeV, returns the non-null value associated with that edge.

        In an undirected graph, this is equal to edgeValue(nodeV, nodeU).

        Specified by:
        edgeValue in interface ValueGraph<N,​V>
      • toString

        public java.lang.String toString()
        Returns a string representation of this graph.
        Overrides:
        toString in class AbstractGraph<N>
      • edgeValueMap

        private java.util.Map<EndpointPair<N>,​V> edgeValueMap()