Interface WeightedEdges
- All Superinterfaces:
Edges
- All Known Implementing Classes:
FastDirectedWeightedEdges
,FastUndirectedWeightedEdges
public interface WeightedEdges extends Edges
Interface for weighted edges.
-
Method Summary
Modifier and Type Method Description default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref>
getAdjacentWeights(int node)
Given a node, finds all the weights of edges u such that the edge (node to u) is in the graph.default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref>
getIncidentWeights(int node)
Given a node, finds all the weights of edges such that the edge (u to node) is in the graph.default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref>
getNeighbourWeights(int node)
Given a node, finds all the all the weights of edges so that either (node to u) or (u to node) are in the graph.Methods inherited from interface es.uam.eps.ir.relison.graph.edges.Edges
addEdge, addUser, containsEdge, getAdjacentCount, getAdjacentNodes, getAdjacentTypes, getEdgeType, getEdgeWeight, getIncidentCount, getIncidentNodes, getIncidentTypes, getIsolatedNodes, getMutualAdjacentTypes, getMutualAdjacentWeights, getMutualCount, getMutualIncidentTypes, getMutualIncidentWeights, getMutualNodes, getMutualTypes, getMutualWeights, getNeighbourCount, getNeighbourNodes, getNeighbourTypes, getNodesWithAdjacentEdges, getNodesWithEdges, getNodesWithIncidentEdges, getNodesWithMutualEdges, getNumEdges, hasAdjacentEdges, hasEdges, hasIncidentEdges, hasMutualEdges, removeEdge, removeNode, updateEdgeType, updateEdgeWeight
-
Method Details
-
getIncidentWeights
default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getIncidentWeights(int node)Given a node, finds all the weights of edges such that the edge (u to node) is in the graph.- Specified by:
getIncidentWeights
in interfaceEdges
- Parameters:
node
- The node.- Returns:
- a stream of the weights of incident nodes.
-
getAdjacentWeights
default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getAdjacentWeights(int node)Given a node, finds all the weights of edges u such that the edge (node to u) is in the graph.- Specified by:
getAdjacentWeights
in interfaceEdges
- Parameters:
node
- The node.- Returns:
- a stream containing the weights adjacent nodes.
-
getNeighbourWeights
default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getNeighbourWeights(int node)Given a node, finds all the all the weights of edges so that either (node to u) or (u to node) are in the graph.- Specified by:
getNeighbourWeights
in interfaceEdges
- Parameters:
node
- The node.- Returns:
- a stream containing all the weights of the nodes in the neighbourhood.
-