Interface UnweightedEdges

All Superinterfaces:
Edges
All Known Implementing Classes:
FastDirectedUnweightedEdges, FastUndirectedUnweightedEdges

public interface UnweightedEdges
extends Edges
Interface for unweighted edges.
  • Method Details

    • getEdgeWeight

      default double getEdgeWeight​(int orig, int dest)
      Description copied from interface: Edges
      Gets the weight of an edge.
      Specified by:
      getEdgeWeight in interface Edges
      Parameters:
      orig - The source endpoint.
      dest - The incoming endpoint.
      Returns:
      the value if the edge exists, the default error value if not.
    • getIncidentWeights

      default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getIncidentWeights​(int node)
      Description copied from interface: Edges
      Gets the weights of the incident edges of a node.
      Specified by:
      getIncidentWeights in interface Edges
      Parameters:
      node - The node.
      Returns:
      a stream containing all the edge types.
    • getAdjacentWeights

      default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getAdjacentWeights​(int node)
      Description copied from interface: Edges
      Gets the weights of the adjacent edges of a node.
      Specified by:
      getAdjacentWeights in interface Edges
      Parameters:
      node - The node.
      Returns:
      a stream containing all the edge types.
    • getNeighbourWeights

      default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getNeighbourWeights​(int node)
      Description copied from interface: Edges
      Gets the weights of the neighbour edges of a node.
      Specified by:
      getNeighbourWeights in interface Edges
      Parameters:
      node - The node.
      Returns:
      a sream containing all the edge types.