Interface UnweightedMultiEdges
- All Superinterfaces:
MultiEdges
- All Known Implementing Classes:
FastDirectedUnweightedMultiEdges
,FastUndirectedUnweightedMultiEdges
public interface UnweightedMultiEdges extends MultiEdges
Interface for unweighted edges
-
Method Summary
Modifier and Type Method Description default java.util.stream.Stream<MultiEdgeWeights>
getAdjacentWeights(int node)
Gets the weights of the adjacent edges of a node.default java.util.List<java.lang.Double>
getEdgeWeights(int orig, int dest)
Gets the weight of an edge.default java.util.stream.Stream<MultiEdgeWeights>
getIncidentWeights(int node)
Gets the weights of the incident edges of a node.default java.util.stream.Stream<MultiEdgeWeights>
getMutualWeights(int node)
Gets the weights of the neighbour edges of a node.default java.util.stream.Stream<MultiEdgeWeights>
getNeighbourWeights(int node)
Gets the weights of the neighbour edges of a node.Methods inherited from interface es.uam.eps.ir.relison.graph.multigraph.edges.MultiEdges
addEdge, addUser, containsEdge, getAdjacentCount, getAdjacentNodes, getAdjacentTypes, getEdgeTypes, 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
-
getEdgeWeights
default java.util.List<java.lang.Double> getEdgeWeights(int orig, int dest)Description copied from interface:MultiEdges
Gets the weight of an edge.- Specified by:
getEdgeWeights
in interfaceMultiEdges
- Parameters:
orig
- The origin endpoint.dest
- The destiny endpoint.- Returns:
- the value if the edge exists, the default error value if not.
-
getIncidentWeights
Description copied from interface:MultiEdges
Gets the weights of the incident edges of a node.- Specified by:
getIncidentWeights
in interfaceMultiEdges
- Parameters:
node
- The node.- Returns:
- a stream containing all the edge types.
-
getAdjacentWeights
Description copied from interface:MultiEdges
Gets the weights of the adjacent edges of a node.- Specified by:
getAdjacentWeights
in interfaceMultiEdges
- Parameters:
node
- The node.- Returns:
- a stream containing all the edge types.
-
getNeighbourWeights
Description copied from interface:MultiEdges
Gets the weights of the neighbour edges of a node.- Specified by:
getNeighbourWeights
in interfaceMultiEdges
- Parameters:
node
- The node.- Returns:
- a sream containing all the edge types.
-
getMutualWeights
Description copied from interface:MultiEdges
Gets the weights of the neighbour edges of a node.- Specified by:
getMutualWeights
in interfaceMultiEdges
- Parameters:
node
- The node.- Returns:
- a sream containing all the edge types.
-