A - The type of the node's ID valueL - The type of the node's label metadataW - The type of the weight metadata on the edgespublic final class ValueContext<A,L,W> extends Object implements Context<A,ValueNode<A,L>,ValueEdge<A,L,W>,HashSet<ValueEdge<A,L,W>>>
Context which is a value object, isomorphic to a tuple containing its node, a set of edges into the
node, and a set of edges coming out of the node| Modifier and Type | Method and Description |
|---|---|
static <A,L,W> ValueContext<A,L,W> |
context(ValueNode<A,L> node,
HashSet<ValueEdge<A,L,W>> outboundEdges,
HashSet<ValueEdge<A,L,W>> inboundEdges)
Create a new
Context |
boolean |
equals(Object o) |
HashSet<ValueEdge<A,L,W>> |
getInboundEdges() |
ValueNode<A,L> |
getNode() |
HashSet<ValueEdge<A,L,W>> |
getOutboundEdges() |
int |
hashCode() |
String |
toString() |
public static <A,L,W> ValueContext<A,L,W> context(ValueNode<A,L> node, HashSet<ValueEdge<A,L,W>> outboundEdges, HashSet<ValueEdge<A,L,W>> inboundEdges)
ContextA - The type of the node's ID valueL - The type of the node's label metadataW - The type of the weight metadata on the edgesnode - The ValueNode the context is centered onoutboundEdges - The HashSet of ValueEdges leading out of the nodeinboundEdges - The HashSet of ValueEdges coming into the nodeTuple3<ValueNode, HashSet<ValueEdge>, HashSet<ValueEdge>Copyright © 2020. All Rights Reserved.