Interface WeightedMultiGraph<V>
- Type Parameters:
V- type of the vertices
- All Superinterfaces:
Graph<V>,MultiGraph<V>,java.io.Serializable,WeightedGraph<V>
- All Known Subinterfaces:
DirectedWeightedMultiGraph<U>,UndirectedWeightedMultiGraph<V>
- All Known Implementing Classes:
FastDirectedWeightedMultiGraph,FastUndirectedWeightedMultiGraph
public interface WeightedMultiGraph<V> extends MultiGraph<V>, WeightedGraph<V>
Interface for directed graphs.
-
Method Summary
Modifier and Type Method Description default java.util.stream.Stream<Weights<V,java.lang.Double>>getAdjacentNodesWeightsLists(V node)Gets the different weights for the edges of the adjacent nodes.default java.util.stream.Stream<Weights<V,java.lang.Double>>getIncidentNodesWeightsLists(V node)Gets the different weights for the edges of the incident nodes.default java.util.stream.Stream<Weights<V,java.lang.Double>>getNeighbourNodesWeightsLists(V node)Gets the different weights for the edges of the neighbour nodes.Methods inherited from interface es.uam.eps.ir.relison.graph.Graph
addEdge, addEdge, addEdge, addEdge, addEdge, addEdge, addNode, complement, containsEdge, containsVertex, degree, degree, getAdjacencyMatrix, getAdjacencyMatrixMap, getAdjacentEdgesCount, getAdjacentMutualNodesTypes, getAdjacentMutualNodesWeights, getAdjacentNodes, getAdjacentNodesCount, getAdjacentNodesTypes, getAllNodes, getEdgeCount, getEdgeType, getEdgeWeight, getIncidentEdgesCount, getIncidentMutualNodesTypes, getIncidentMutualNodesWeights, getIncidentNodes, getIncidentNodesCount, getIncidentNodesTypes, getIsolatedNodes, getMutualEdgesCount, getMutualNodes, getMutualNodesCount, getMutualNodesTypes, getMutualNodesWeights, getNeighbourEdgesCount, getNeighbourhood, getNeighbourhoodSize, getNeighbourhoodTypes, getNeighbourhoodWeights, getNeighbourNodes, getNeighbourNodesCount, getNeighbourNodesTypes, getNodesWithAdjacentNeighbors, getNodesWithIncidentNeighbors, getNodesWithMutualNeighbors, getNodesWithNeighbors, getNodesWithNeighbors, getVertexCount, hasAdjacentNeighbors, hasIncidentNeighbors, hasMutualNeighbors, hasNeighbors, hasNeighbors, inDegree, isDirected, isMutual, mutualDegree, outDegree, removeEdge, removeNode, updateEdgeType, updateEdgeWeightMethods inherited from interface es.uam.eps.ir.relison.graph.multigraph.MultiGraph
getAdjacentNodesTypesLists, getEdgeTypes, getEdgeWeights, getIncidentNodesTypesLists, getNeighbourhoodTypesLists, getNeighbourhoodWeightsLists, getNeighbourNodesTypesLists, getNumEdges, isMultigraph, removeEdge, removeEdges, updateEdgeWeightMethods inherited from interface es.uam.eps.ir.relison.graph.WeightedGraph
getAdjacentNodesWeights, getIncidentNodesWeights, getNeighbourNodesWeights, isWeighted
-
Method Details
-
getIncidentNodesWeightsLists
Gets the different weights for the edges of the incident nodes.- Specified by:
getIncidentNodesWeightsListsin interfaceMultiGraph<V>- Parameters:
node- The node to study- Returns:
- A stream containing the weights
-
getAdjacentNodesWeightsLists
Gets the different weights for the edges of the adjacent nodes.- Specified by:
getAdjacentNodesWeightsListsin interfaceMultiGraph<V>- Parameters:
node- The node to study- Returns:
- A stream containing the weights
-
getNeighbourNodesWeightsLists
default java.util.stream.Stream<Weights<V,java.lang.Double>> getNeighbourNodesWeightsLists(V node)Gets the different weights for the edges of the neighbour nodes.- Specified by:
getNeighbourNodesWeightsListsin interfaceMultiGraph<V>- Parameters:
node- The node to study- Returns:
- A stream containing the weights
-