Interface UnweightedEdges
- All Superinterfaces:
Edges
- All Known Implementing Classes:
FastDirectedUnweightedEdges
,FastUndirectedUnweightedEdges
public interface UnweightedEdges extends Edges
Interface for unweighted edges.
-
Method Summary
Modifier and Type Method Description default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref>
getAdjacentWeights(int node)
Gets the weights of the adjacent edges of a node.default double
getEdgeWeight(int orig, int dest)
Gets the weight of an edge.default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref>
getIncidentWeights(int node)
Gets the weights of the incident edges of a node.default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref>
getNeighbourWeights(int node)
Gets the weights of the neighbour edges of a node.Methods inherited from interface es.uam.eps.ir.relison.graph.edges.Edges
addEdge, addUser, containsEdge, getAdjacentCount, getAdjacentNodes, getAdjacentTypes, getEdgeType, 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
-
getEdgeWeight
default double getEdgeWeight(int orig, int dest)Description copied from interface:Edges
Gets the weight of an edge.- Specified by:
getEdgeWeight
in interfaceEdges
- 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 interfaceEdges
- 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 interfaceEdges
- 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 interfaceEdges
- Parameters:
node
- The node.- Returns:
- a sream containing all the edge types.
-