Interface DirectedEdges
- All Superinterfaces:
Edges
- All Known Implementing Classes:
FastDirectedUnweightedEdges
,FastDirectedWeightedEdges
public interface DirectedEdges extends Edges
Interface for the directed edges.
-
Method Summary
Modifier and Type Method Description default java.util.stream.Stream<EdgeType>
getMutualAdjacentTypes(int node)
Gets the types of the adjacent edges of a node, such that there is a reciprocal.default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref>
getMutualAdjacentWeights(int node)
Gets the weights of the adjacent edges of a node which are reciprocated.default java.util.stream.Stream<EdgeType>
getMutualIncidentTypes(int node)
Gets the types of the incident edges of a node, such that there is a reciprocal.default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref>
getMutualIncidentWeights(int node)
Gets the weights of the incident edges of a node which are reciprocated.default java.util.stream.Stream<java.lang.Integer>
getMutualNodes(int node)
Gets the neighbors of a node which are, at the same time, incident and adjacent.default java.util.stream.Stream<EdgeType>
getMutualTypes(int node)
Gets the types of the neighbourhood edges of a node, such that there is a reciprocal.default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref>
getMutualWeights(int node)
For each mutual connection (node to u and u to node exist in the graph), gets the average values of the incident and adjacent edge between u and the node.default java.util.stream.Stream<java.lang.Integer>
getNeighbourNodes(int node)
Gets the full neighbourhood of a node.default java.util.stream.Stream<EdgeType>
getNeighbourTypes(int node)
Gets the types of the neighbourhood 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, getAdjacentWeights, getEdgeType, getEdgeWeight, getIncidentCount, getIncidentNodes, getIncidentTypes, getIncidentWeights, getIsolatedNodes, getMutualCount, getNeighbourCount, getNodesWithAdjacentEdges, getNodesWithEdges, getNodesWithIncidentEdges, getNodesWithMutualEdges, getNumEdges, hasAdjacentEdges, hasEdges, hasIncidentEdges, hasMutualEdges, removeEdge, removeNode, updateEdgeType, updateEdgeWeight
-
Method Details
-
getNeighbourNodes
default java.util.stream.Stream<java.lang.Integer> getNeighbourNodes(int node)Description copied from interface:Edges
Gets the full neighbourhood of a node.- Specified by:
getNeighbourNodes
in interfaceEdges
- Parameters:
node
- The node.- Returns:
- a stream containing all the ids of the nodes.
-
getMutualNodes
default java.util.stream.Stream<java.lang.Integer> getMutualNodes(int node)Description copied from interface:Edges
Gets the neighbors of a node which are, at the same time, incident and adjacent.- Specified by:
getMutualNodes
in interfaceEdges
- Parameters:
node
- The node.- Returns:
- a stream containing all the ids of the nodes.
-
getMutualAdjacentWeights
default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getMutualAdjacentWeights(int node)Description copied from interface:Edges
Gets the weights of the adjacent edges of a node which are reciprocated.- Specified by:
getMutualAdjacentWeights
in interfaceEdges
- Parameters:
node
- The node.- Returns:
- a stream containing all the edge types.
-
getMutualIncidentWeights
default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getMutualIncidentWeights(int node)Description copied from interface:Edges
Gets the weights of the incident edges of a node which are reciprocated.- Specified by:
getMutualIncidentWeights
in interfaceEdges
- Parameters:
node
- The node.- Returns:
- a stream containing all the edge types.
-
getMutualWeights
default java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getMutualWeights(int node)Description copied from interface:Edges
For each mutual connection (node to u and u to node exist in the graph), gets the average values of the incident and adjacent edge between u and the node.- Specified by:
getMutualWeights
in interfaceEdges
- Parameters:
node
- The node.- Returns:
- a stream containing all the edge types.
-
getMutualAdjacentTypes
Description copied from interface:Edges
Gets the types of the adjacent edges of a node, such that there is a reciprocal. connection in the graph.- Specified by:
getMutualAdjacentTypes
in interfaceEdges
- Parameters:
node
- The node.- Returns:
- a stream containing all the edge types.
-
getMutualIncidentTypes
Description copied from interface:Edges
Gets the types of the incident edges of a node, such that there is a reciprocal. connection in the graph.- Specified by:
getMutualIncidentTypes
in interfaceEdges
- Parameters:
node
- The node.- Returns:
- a stream containing all the edge types.
-
getMutualTypes
Description copied from interface:Edges
Gets the types of the neighbourhood edges of a node, such that there is a reciprocal. connection in the graph.- Specified by:
getMutualTypes
in interfaceEdges
- Parameters:
node
- The node.- Returns:
- a stream containing all the edge types.
-
getNeighbourTypes
Description copied from interface:Edges
Gets the types of the neighbourhood edges of a node.- Specified by:
getNeighbourTypes
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.
-