Uses of Class
com.google.common.graph.EndpointPair
Packages that use EndpointPair
-
Uses of EndpointPair in com.google.common.graph
Methods in com.google.common.graph that return EndpointPairModifier and TypeMethodDescriptionNetwork.incidentNodes(E edge) Returns the nodes which are the endpoints ofedgein this network.static <N> EndpointPair<N> EndpointPair.ordered(N source, N target) Returns anEndpointPairrepresenting the endpoints of a directed edge.static <N> EndpointPair<N> EndpointPair.unordered(N nodeU, N nodeV) Returns anEndpointPairrepresenting the endpoints of an undirected edge.Methods in com.google.common.graph that return types with arguments of type EndpointPairModifier and TypeMethodDescriptionSet<EndpointPair<N>> Graph.edges()Returns all edges in this graph.Set<EndpointPair<N>> ValueGraph.edges()Returns all edges in this graph.Set<EndpointPair<N>> Graph.incidentEdges(N node) Returns a live view of the edges in this graph whose endpoints includenode.Set<EndpointPair<N>> ValueGraph.incidentEdges(N node) Returns a live view of the edges in this graph whose endpoints includenode.Methods in com.google.common.graph with parameters of type EndpointPairModifier and TypeMethodDescriptionImmutableNetwork.Builder.addEdge(EndpointPair<N> endpoints, E edge) Addsedgeconnectingendpoints.booleanMutableNetwork.addEdge(EndpointPair<N> endpoints, E edge) Addsedgeconnectingendpoints.AbstractNetwork.edgeConnecting(EndpointPair<N> endpoints) Network.edgeConnecting(EndpointPair<N> endpoints) Returns the single edge that directly connectsendpoints(in the order, if any, specified byendpoints), if one is present, orOptional.empty()if no such edge exists.AbstractNetwork.edgeConnectingOrNull(EndpointPair<N> endpoints) Network.edgeConnectingOrNull(EndpointPair<N> endpoints) Returns the single edge that directly connectsendpoints(in the order, if any, specified byendpoints), if one is present, ornullif no such edge exists.AbstractNetwork.edgesConnecting(EndpointPair<N> endpoints) Network.edgesConnecting(EndpointPair<N> endpoints) Returns a live view of the set of edges that each directly connectendpoints(in the order, if any, specified byendpoints).AbstractValueGraph.edgeValue(EndpointPair<N> endpoints) ValueGraph.edgeValue(EndpointPair<N> endpoints) Returns the value of the edge that connectsendpoints(in the order, if any, specified byendpoints), if one is present; otherwise, returnsOptional.empty().ValueGraph.edgeValueOrDefault(EndpointPair<N> endpoints, @Nullable V defaultValue) Returns the value of the edge that connectsendpoints(in the order, if any, specified byendpoints), if one is present; otherwise, returnsdefaultValue.booleanAbstractNetwork.hasEdgeConnecting(EndpointPair<N> endpoints) booleanGraph.hasEdgeConnecting(EndpointPair<N> endpoints) Returns true if there is an edge that directly connectsendpoints(in the order, if any, specified byendpoints).booleanNetwork.hasEdgeConnecting(EndpointPair<N> endpoints) Returns true if there is an edge that directly connectsendpoints(in the order, if any, specified byendpoints).booleanValueGraph.hasEdgeConnecting(EndpointPair<N> endpoints) Returns true if there is an edge that directly connectsendpoints(in the order, if any, specified byendpoints).protected final booleanAbstractNetwork.isOrderingCompatible(EndpointPair<?> endpoints) ImmutableGraph.Builder.putEdge(EndpointPair<N> endpoints) Adds an edge connectingendpoints(in the order, if any, specified byendpoints) if one is not already present.booleanMutableGraph.putEdge(EndpointPair<N> endpoints) Adds an edge connectingendpoints(in the order, if any, specified byendpoints) if one is not already present.ImmutableValueGraph.Builder.putEdgeValue(EndpointPair<N> endpoints, V value) Adds an edge connectingendpointsif one is not already present, and sets a value for that edge tovalue(overwriting the existing value, if any).MutableValueGraph.putEdgeValue(EndpointPair<N> endpoints, V value) Adds an edge connectingendpointsif one is not already present, and sets a value for that edge tovalue(overwriting the existing value, if any).booleanMutableGraph.removeEdge(EndpointPair<N> endpoints) Removes the edge connectingendpoints, if it is present.MutableValueGraph.removeEdge(EndpointPair<N> endpoints) Removes the edge connectingendpoints, if it is present.protected final voidAbstractNetwork.validateEndpoints(EndpointPair<?> endpoints) Throws an IllegalArgumentException if the ordering ofendpointsis not compatible with the directionality of this graph.