A - The type of the nodes' IDsL - The type of the nodes' label metadataW - The type of the weight metadata on the edgepublic final class ValueEdge<A,L,W> extends Object implements WeightedEdge<A,ValueNode<A,L>,W,ValueEdge<A,L,W>>
WeightedEdge which is a value object, isomorphic to the two ValueNodes it connects and its weight.| Modifier and Type | Method and Description |
|---|---|
static <A,L> Fn1<ValueNode<A,L>,ValueEdge<A,L,Unit>> |
edgeFrom(ValueNode<A,L> from) |
static <A,L> Fn2<ValueNode<A,L>,ValueNode<A,L>,ValueEdge<A,L,Unit>> |
edgeFromTo() |
static <A,L> ValueEdge<A,L,Unit> |
edgeFromTo(ValueNode<A,L> from,
ValueNode<A,L> to)
Create an edge from one node to another, with no weight information
|
static <A,L> Fn1<ValueNode<A,L>,ValueEdge<A,L,Unit>> |
edgeTo(ValueNode<A,L> to) |
static <A,L> Fn2<ValueNode<A,L>,ValueNode<A,L>,ValueEdge<A,L,Unit>> |
edgeToFrom() |
static <A,L> ValueEdge<A,L,Unit> |
edgeToFrom(ValueNode<A,L> to,
ValueNode<A,L> from)
Create an edge to one node from another, with no weight information
|
boolean |
equals(Object o) |
ValueNode<A,L> |
getNodeFrom() |
ValueNode<A,L> |
getNodeTo() |
W |
getWeight() |
int |
hashCode() |
ValueEdge<A,L,W> |
swap() |
String |
toString() |
static <A,L,W> Fn2<ValueNode<A,L>,W,ValueEdge<A,L,W>> |
weightedEdgeFrom(ValueNode<A,L> from)
Curried function creating an edge from a given node
|
static <A,L,W> Fn3<ValueNode<A,L>,ValueNode<A,L>,W,ValueEdge<A,L,W>> |
weightedEdgeFromTo() |
static <A,L,W> Fn1<W,ValueEdge<A,L,W>> |
weightedEdgeFromTo(ValueNode<A,L> from,
ValueNode<A,L> to) |
static <A,L,W> ValueEdge<A,L,W> |
weightedEdgeFromTo(ValueNode<A,L> from,
ValueNode<A,L> to,
W weight)
Create an edge from one node to another with weight metadata
|
static <A,L,W> Fn2<ValueNode<A,L>,W,ValueEdge<A,L,W>> |
weightedEdgeTo(ValueNode<A,L> to)
Curried function creating an edge to a given node
|
static <A,L,W> Fn3<ValueNode<A,L>,ValueNode<A,L>,W,ValueEdge<A,L,W>> |
weightedEdgeToFrom() |
static <A,L,W> Fn1<W,ValueEdge<A,L,W>> |
weightedEdgeToFrom(ValueNode<A,L> to,
ValueNode<A,L> from) |
static <A,L,W> ValueEdge<A,L,W> |
weightedEdgeToFrom(ValueNode<A,L> to,
ValueNode<A,L> from,
W weight)
Create an edge to one node from another with weight metadata
|
public static <A,L> ValueEdge<A,L,Unit> edgeFromTo(ValueNode<A,L> from, ValueNode<A,L> to)
public static <A,L> ValueEdge<A,L,Unit> edgeToFrom(ValueNode<A,L> to, ValueNode<A,L> from)
public static <A,L,W> ValueEdge<A,L,W> weightedEdgeFromTo(ValueNode<A,L> from, ValueNode<A,L> to, W weight)
A - The type of the nodes' IDsL - The type of the nodes' label metadataW - The type of the edge's weight metadatafrom - ValueNode the edge starts fromto - ValueNode the edge ends atweight - Weight metadata for the edgefrom going to to and with weight weightpublic static <A,L,W> Fn1<W,ValueEdge<A,L,W>> weightedEdgeFromTo(ValueNode<A,L> from, ValueNode<A,L> to)
public static <A,L,W> Fn3<ValueNode<A,L>,ValueNode<A,L>,W,ValueEdge<A,L,W>> weightedEdgeFromTo()
public static <A,L,W> ValueEdge<A,L,W> weightedEdgeToFrom(ValueNode<A,L> to, ValueNode<A,L> from, W weight)
A - The type of the nodes' IDsL - The type of the nodes' label metadataW - The type of the edge's weight metadatato - ValueNode the edge ends atfrom - ValueNode the edge starts fromweight - Weight metadata for the edgeto coming from from and with weight weightpublic static <A,L,W> Fn1<W,ValueEdge<A,L,W>> weightedEdgeToFrom(ValueNode<A,L> to, ValueNode<A,L> from)
public static <A,L,W> Fn3<ValueNode<A,L>,ValueNode<A,L>,W,ValueEdge<A,L,W>> weightedEdgeToFrom()
public static <A,L,W> Fn2<ValueNode<A,L>,W,ValueEdge<A,L,W>> weightedEdgeTo(ValueNode<A,L> to)
A - The type of the nodes' IDsL - The type of the nodes' label metadataW - The type of the edge's weight metadatato - ValueNode the edge ends atpublic static <A,L,W> Fn2<ValueNode<A,L>,W,ValueEdge<A,L,W>> weightedEdgeFrom(ValueNode<A,L> from)
A - The type of the nodes' IDsL - The type of the nodes' label metadataW - The type of the edge's weight metadatafrom - ValueNode the edge comes frompublic W getWeight()
Copyright © 2020. All Rights Reserved.