Interface DirectedMultiEdges
- All Superinterfaces:
MultiEdges
- All Known Implementing Classes:
FastDirectedUnweightedMultiEdges,FastDirectedWeightedMultiEdges
public interface DirectedMultiEdges extends MultiEdges
Class for the directed multi-edges.
-
Method Summary
Modifier and Type Method Description default java.util.stream.Stream<java.lang.Integer>getMutualNodes(int node)Gets the neighbors of the user with whom he has both incoming and outgoing links.default java.util.stream.Stream<MultiEdgeTypes>getMutualTypes(int node)Gets the types of the neighbourhood edges of a node.default intgetNeighbourCount(int node)Gets the number of edges which reach or start in a certain nodedefault java.util.stream.Stream<java.lang.Integer>getNeighbourNodes(int node)Gets the full neighbourhood of a node.default java.util.stream.Stream<MultiEdgeTypes>getNeighbourTypes(int node)Gets the types of the neighbourhood edges of a node.Methods inherited from interface es.uam.eps.ir.relison.graph.multigraph.edges.MultiEdges
addEdge, addUser, containsEdge, getAdjacentCount, getAdjacentNodes, getAdjacentTypes, getAdjacentWeights, getEdgeTypes, getEdgeWeights, getIncidentCount, getIncidentNodes, getIncidentTypes, getIncidentWeights, getIsolatedNodes, getMutualWeights, getNeighbourWeights, getNodesWithAdjacentEdges, getNodesWithEdges, getNodesWithIncidentEdges, getNodesWithMutualEdges, getNumEdges, getNumEdges, hasAdjacentEdges, hasEdges, hasIncidentEdges, hasMutualEdges, removeEdge, removeEdges, removeNode, updateEdgeType, updateEdgeWeight
-
Method Details
-
getNeighbourNodes
default java.util.stream.Stream<java.lang.Integer> getNeighbourNodes(int node)Description copied from interface:MultiEdgesGets the full neighbourhood of a node.- Specified by:
getNeighbourNodesin interfaceMultiEdges- 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:MultiEdgesGets the neighbors of the user with whom he has both incoming and outgoing links.- Specified by:
getMutualNodesin interfaceMultiEdges- Parameters:
node- The node.- Returns:
- a stream containing the ids of the mutual neighborhood.
-
getNeighbourTypes
Description copied from interface:MultiEdgesGets the types of the neighbourhood edges of a node.- Specified by:
getNeighbourTypesin interfaceMultiEdges- Parameters:
node- The node.- Returns:
- a stream containing all the edge types.
-
getMutualTypes
Description copied from interface:MultiEdgesGets the types of the neighbourhood edges of a node.- Specified by:
getMutualTypesin interfaceMultiEdges- Parameters:
node- The node.- Returns:
- a stream containing all the edge types.
-
getNeighbourCount
default int getNeighbourCount(int node)Description copied from interface:MultiEdgesGets the number of edges which reach or start in a certain node- Specified by:
getNeighbourCountin interfaceMultiEdges- Parameters:
node- the node- Returns:
- the number of edges which reach or start in that node
-