Interface WeightedEdges

All Superinterfaces:
Edges
All Known Implementing Classes:
FastDirectedWeightedEdges, FastUndirectedWeightedEdges

public interface WeightedEdges
extends Edges
Interface for weighted edges.
  • 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 interface Edges
      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 interface Edges
      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 interface Edges
      Parameters:
      node - The node.
      Returns:
      a stream containing all the weights of the nodes in the neighbourhood.