Interface WeightedMultiEdges
- All Superinterfaces:
MultiEdges
- All Known Implementing Classes:
FastDirectedWeightedMultiEdges
,FastUndirectedWeightedMultiEdges
public interface WeightedMultiEdges extends MultiEdges
Interface for weighted edges
-
Method Summary
Modifier and Type Method Description default java.util.stream.Stream<MultiEdgeWeights>
getAdjacentWeights(int node)
Given a node, finds all the weights of edges u such that the edge (node to u) is in the graph.default java.util.stream.Stream<MultiEdgeWeights>
getIncidentWeights(int node)
Given a node, finds all the weights of edges such that the edge (u to node) is in the graph.default java.util.stream.Stream<MultiEdgeWeights>
getMutualWeights(int node)
Given a node, finds all the all the weights of edges so that both (node to u) and (u to node) are in the graph.default java.util.stream.Stream<MultiEdgeWeights>
getNeighbourWeights(int node)
Given a node, finds all the all the weights of edges so that either (node to u) or (u to node) are in the graph.Methods inherited from interface es.uam.eps.ir.relison.graph.multigraph.edges.MultiEdges
addEdge, addUser, containsEdge, getAdjacentCount, getAdjacentNodes, getAdjacentTypes, getEdgeTypes, getEdgeWeights, getIncidentCount, getIncidentNodes, getIncidentTypes, getIsolatedNodes, getMutualNodes, getMutualTypes, getNeighbourCount, getNeighbourNodes, getNeighbourTypes, getNodesWithAdjacentEdges, getNodesWithEdges, getNodesWithIncidentEdges, getNodesWithMutualEdges, getNumEdges, getNumEdges, hasAdjacentEdges, hasEdges, hasIncidentEdges, hasMutualEdges, removeEdge, removeEdges, removeNode, updateEdgeType, updateEdgeWeight
-
Method Details
-
getIncidentWeights
Given a node, finds all the weights of edges such that the edge (u to node) is in the graph.- Specified by:
getIncidentWeights
in interfaceMultiEdges
- Parameters:
node
- The node.- Returns:
- A stream of the weights of incident nodes.
-
getAdjacentWeights
Given a node, finds all the weights of edges u such that the edge (node to u) is in the graph.- Specified by:
getAdjacentWeights
in interfaceMultiEdges
- Parameters:
node
- The node- Returns:
- A stream containing the weights adjacent nodes.
-
getNeighbourWeights
Given a node, finds all the all the weights of edges so that either (node to u) or (u to node) are in the graph.- Specified by:
getNeighbourWeights
in interfaceMultiEdges
- Parameters:
node
- The node- Returns:
- A stream containing all the weights of the nodes in the neighbourhood.
-
getMutualWeights
Given a node, finds all the all the weights of edges so that both (node to u) and (u to node) are in the graph.- Specified by:
getMutualWeights
in interfaceMultiEdges
- Parameters:
node
- The node- Returns:
- A stream containing all the weights of the nodes in the neighbourhood.
-