Interface UndirectedEdges
- All Superinterfaces:
- Edges
- All Known Implementing Classes:
- FastUndirectedUnweightedEdges,- FastUndirectedWeightedEdges
public interface UndirectedEdges extends Edges
Interface for the directed edges.
- 
Method SummaryModifier and Type Method Description default longgetAdjacentCount(int node)Gets the number of adjacent nodes.default java.util.stream.Stream<java.lang.Integer>getAdjacentNodes(int node)Gets the outgoing neighbourhood of a node.default java.util.stream.Stream<EdgeType>getAdjacentTypes(int node)Gets the types of the adjacent edges of a node.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 java.util.stream.Stream<java.lang.Integer>getIncidentNodes(int node)Gets the incoming neighbourhood of a node.default java.util.stream.Stream<EdgeType>getIncidentTypes(int node)Gets the types of the incident edges of a node.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<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 longgetMutualCount(int node)Gets the number of nodes which are, at the same time, adjacent and incident.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.Methods inherited from interface es.uam.eps.ir.relison.graph.edges.EdgesaddEdge, addUser, containsEdge, getEdgeType, getEdgeWeight, getIncidentCount, getIsolatedNodes, getNeighbourCount, getNeighbourNodes, getNeighbourTypes, getNeighbourWeights, getNodesWithAdjacentEdges, getNodesWithEdges, getNodesWithIncidentEdges, getNodesWithMutualEdges, getNumEdges, hasAdjacentEdges, hasEdges, hasIncidentEdges, hasMutualEdges, removeEdge, removeNode, updateEdgeType, updateEdgeWeight
- 
Method Details- 
getIncidentNodesdefault java.util.stream.Stream<java.lang.Integer> getIncidentNodes(int node)Description copied from interface:EdgesGets the incoming neighbourhood of a node.- Specified by:
- getIncidentNodesin interface- Edges
- Parameters:
- node- The node.
- Returns:
- a stream of all the ids of nodes.
 
- 
getAdjacentNodesdefault java.util.stream.Stream<java.lang.Integer> getAdjacentNodes(int node)Description copied from interface:EdgesGets the outgoing neighbourhood of a node.- Specified by:
- getAdjacentNodesin interface- Edges
- Parameters:
- node- The node.
- Returns:
- a stream containing all the ids of the nodes.
 
- 
getMutualNodesdefault java.util.stream.Stream<java.lang.Integer> getMutualNodes(int node)Description copied from interface:EdgesGets the neighbors of a node which are, at the same time, incident and adjacent.- Specified by:
- getMutualNodesin interface- Edges
- Parameters:
- node- The node.
- Returns:
- a stream containing all the ids of the nodes.
 
- 
getIncidentTypesDescription copied from interface:EdgesGets the types of the incident edges of a node.- Specified by:
- getIncidentTypesin interface- Edges
- Parameters:
- node- The node.
- Returns:
- a stream containing all the edge types.
 
- 
getAdjacentTypesDescription copied from interface:EdgesGets the types of the adjacent edges of a node.- Specified by:
- getAdjacentTypesin interface- Edges
- Parameters:
- node- The node.
- Returns:
- a stream containing all the edge types.
 
- 
getIncidentWeightsdefault java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getIncidentWeights(int node)Description copied from interface:EdgesGets the weights of the incident edges of a node.- Specified by:
- getIncidentWeightsin interface- Edges
- Parameters:
- node- The node.
- Returns:
- a stream containing all the edge types.
 
- 
getMutualAdjacentTypesDescription copied from interface:EdgesGets the types of the adjacent edges of a node, such that there is a reciprocal. connection in the graph.- Specified by:
- getMutualAdjacentTypesin interface- Edges
- Parameters:
- node- The node.
- Returns:
- a stream containing all the edge types.
 
- 
getMutualIncidentTypesDescription copied from interface:EdgesGets the types of the incident edges of a node, such that there is a reciprocal. connection in the graph.- Specified by:
- getMutualIncidentTypesin interface- Edges
- Parameters:
- node- The node.
- Returns:
- a stream containing all the edge types.
 
- 
getMutualTypesDescription copied from interface:EdgesGets the types of the neighbourhood edges of a node, such that there is a reciprocal. connection in the graph.- Specified by:
- getMutualTypesin interface- Edges
- Parameters:
- node- The node.
- Returns:
- a stream containing all the edge types.
 
- 
getAdjacentWeightsdefault java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getAdjacentWeights(int node)Description copied from interface:EdgesGets the weights of the adjacent edges of a node.- Specified by:
- getAdjacentWeightsin interface- Edges
- Parameters:
- node- The node.
- Returns:
- a stream containing all the edge types.
 
- 
getMutualAdjacentWeightsdefault java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getMutualAdjacentWeights(int node)Description copied from interface:EdgesGets the weights of the adjacent edges of a node which are reciprocated.- Specified by:
- getMutualAdjacentWeightsin interface- Edges
- Parameters:
- node- The node.
- Returns:
- a stream containing all the edge types.
 
- 
getMutualIncidentWeightsdefault java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getMutualIncidentWeights(int node)Description copied from interface:EdgesGets the weights of the incident edges of a node which are reciprocated.- Specified by:
- getMutualIncidentWeightsin interface- Edges
- Parameters:
- node- The node.
- Returns:
- a stream containing all the edge types.
 
- 
getMutualWeightsdefault java.util.stream.Stream<es.uam.eps.ir.ranksys.fast.preference.IdxPref> getMutualWeights(int node)Description copied from interface:EdgesFor 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:
- getMutualWeightsin interface- Edges
- Parameters:
- node- The node.
- Returns:
- a stream containing all the edge types.
 
- 
getAdjacentCountdefault long getAdjacentCount(int node)Description copied from interface:EdgesGets the number of adjacent nodes.- Specified by:
- getAdjacentCountin interface- Edges
- Parameters:
- node- The node.
- Returns:
- the number of adjacent nodes.
 
- 
getMutualCountdefault long getMutualCount(int node)Description copied from interface:EdgesGets the number of nodes which are, at the same time, adjacent and incident.- Specified by:
- getMutualCountin interface- Edges
- Parameters:
- node- The node.
- Returns:
- the number of mutual neighbors.
 
 
-