Interface UndirectedMultiEdges
- All Superinterfaces:
MultiEdges
- All Known Implementing Classes:
FastUndirectedUnweightedMultiEdges,FastUndirectedWeightedMultiEdges
public interface UndirectedMultiEdges extends MultiEdges
Class for the undirected multi-edges.
-
Method Summary
Modifier and Type Method Description default java.util.stream.Stream<java.lang.Integer>getAdjacentNodes(int node)Gets the outgoing neighbourhood of a node.default java.util.stream.Stream<MultiEdgeTypes>getAdjacentTypes(int node)Gets the types 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<MultiEdgeTypes>getIncidentTypes(int node)Gets the types of the incident edges of a node.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.IntStreamgetNodesWithAdjacentEdges()Obtains the set of nodes which have adjacent edges.default java.util.stream.IntStreamgetNodesWithIncidentEdges()Obtains the set of nodes which have incident edges.default java.util.stream.IntStreamgetNodesWithMutualEdges()Obtains the set of nodes which have, at least, a reciprocal edge.Methods inherited from interface es.uam.eps.ir.relison.graph.multigraph.edges.MultiEdges
addEdge, addUser, containsEdge, getAdjacentCount, getAdjacentWeights, getEdgeTypes, getEdgeWeights, getIncidentCount, getIncidentWeights, getIsolatedNodes, getMutualWeights, getNeighbourNodes, getNeighbourTypes, getNeighbourWeights, getNodesWithEdges, getNumEdges, getNumEdges, hasAdjacentEdges, hasEdges, hasIncidentEdges, hasMutualEdges, removeEdge, removeEdges, removeNode, updateEdgeType, updateEdgeWeight
-
Method Details
-
getIncidentNodes
default java.util.stream.Stream<java.lang.Integer> getIncidentNodes(int node)Description copied from interface:MultiEdgesGets the incoming neighbourhood of a node.- Specified by:
getIncidentNodesin interfaceMultiEdges- Parameters:
node- The node.- Returns:
- a stream of all the ids of nodes.
-
getAdjacentNodes
default java.util.stream.Stream<java.lang.Integer> getAdjacentNodes(int node)Description copied from interface:MultiEdgesGets the outgoing neighbourhood of a node.- Specified by:
getAdjacentNodesin 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.
-
getIncidentTypes
Description copied from interface:MultiEdgesGets the types of the incident edges of a node.- Specified by:
getIncidentTypesin interfaceMultiEdges- Parameters:
node- The node.- Returns:
- a stream containing all the edge types.
-
getAdjacentTypes
Description copied from interface:MultiEdgesGets the types of the adjacent edges of a node.- Specified by:
getAdjacentTypesin 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
-
getNodesWithIncidentEdges
default java.util.stream.IntStream getNodesWithIncidentEdges()Description copied from interface:MultiEdgesObtains the set of nodes which have incident edges.- Specified by:
getNodesWithIncidentEdgesin interfaceMultiEdges- Returns:
- a stream containing the ids of nodes with incident edges
-
getNodesWithAdjacentEdges
default java.util.stream.IntStream getNodesWithAdjacentEdges()Description copied from interface:MultiEdgesObtains the set of nodes which have adjacent edges.- Specified by:
getNodesWithAdjacentEdgesin interfaceMultiEdges- Returns:
- a stream containing the ids of nodes with incident edges
-
getNodesWithMutualEdges
default java.util.stream.IntStream getNodesWithMutualEdges()Description copied from interface:MultiEdgesObtains the set of nodes which have, at least, a reciprocal edge.- Specified by:
getNodesWithMutualEdgesin interfaceMultiEdges- Returns:
- a stream containing the ids of nodes with reciprocal edges.
-