Interface UndirectedWeightedMultiGraph<V>
- Type Parameters:
V- type of the vertices
- All Superinterfaces:
Graph<V>,MultiGraph<V>,java.io.Serializable,UndirectedGraph<V>,UndirectedMultiGraph<V>,WeightedGraph<V>,WeightedMultiGraph<V>
- All Known Implementing Classes:
FastUndirectedWeightedMultiGraph
public interface UndirectedWeightedMultiGraph<V> extends WeightedMultiGraph<V>, UndirectedMultiGraph<V>
Interface for undirected weighted multigraphs.
-
Method Summary
Modifier and Type Method Description default java.util.stream.Stream<Weight<V,java.lang.Double>>getAdjacentNodesWeights(V node)Given a node, finds the weights of the edges towards the nodes u such that the edge (node to u) is in the graph.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<Weight<V,java.lang.Double>>getIncidentNodesWeights(V node)Given a node, finds the weights of the edges from the nodes u such that the edge (u to node) is in the graph.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<Weight<V,java.lang.Double>>getNeighbourhoodWeights(V node, EdgeOrientation direction)Gets all the weights of the edges in the neighbourhood of a node given by a direction.default java.util.stream.Stream<Weights<V,java.lang.Double>>getNeighbourhoodWeightsLists(V node, EdgeOrientation direction)Gets the different weights for the edges of the selected neighbour nodes.default java.util.stream.Stream<Weight<V,java.lang.Double>>getNeighbourNodesWeights(V node)Given a node, finds the weights of the edges from the nodes u such that the edge (node to u) or the edge (u to node) are in the graph.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, getAdjacencyMatrix, getAdjacencyMatrixMap, getAdjacentMutualNodesWeights, getAdjacentNodesCount, getAllNodes, getEdgeCount, getEdgeType, getEdgeWeight, getIncidentMutualNodesWeights, getIncidentNodesCount, getIsolatedNodes, getMutualNodesWeights, getNeighbourNodes, getNeighbourNodesCount, getNeighbourNodesTypes, getNodesWithAdjacentNeighbors, getNodesWithIncidentNeighbors, getNodesWithMutualNeighbors, getNodesWithNeighbors, getNodesWithNeighbors, getVertexCount, hasAdjacentNeighbors, hasIncidentNeighbors, hasMutualNeighbors, hasNeighbors, hasNeighbors, removeEdge, removeNode, updateEdgeType, updateEdgeWeightMethods inherited from interface es.uam.eps.ir.relison.graph.multigraph.MultiGraph
getEdgeTypes, getEdgeWeights, getNeighbourNodesTypesLists, getNumEdges, isMultigraph, removeEdge, removeEdges, updateEdgeWeightMethods inherited from interface es.uam.eps.ir.relison.graph.UndirectedGraph
degree, getAdjacentEdgesCount, getAdjacentMutualNodesTypes, getAdjacentNodes, getIncidentEdgesCount, getIncidentMutualNodesTypes, getIncidentNodes, getMutualEdgesCount, getMutualNodes, getMutualNodesCount, getMutualNodesTypes, getNeighbourEdgesCount, getNeighbourhood, getNeighbourhoodSize, inDegree, isDirected, isMutual, mutualDegree, outDegreeMethods inherited from interface es.uam.eps.ir.relison.graph.multigraph.UndirectedMultiGraph
degree, getAdjacentNodesTypes, getAdjacentNodesTypesLists, getIncidentNodesTypes, getIncidentNodesTypesLists, getNeighbourhoodTypes, getNeighbourhoodTypesLists
-
Method Details
-
getIncidentNodesWeights
Description copied from interface:GraphGiven a node, finds the weights of the edges from the nodes u such that the edge (u to node) is in the graph.- Specified by:
getIncidentNodesWeightsin interfaceGraph<V>- Specified by:
getIncidentNodesWeightsin interfaceUndirectedGraph<V>- Specified by:
getIncidentNodesWeightsin interfaceWeightedGraph<V>- Parameters:
node- The node.- Returns:
- A stream containing the adjacent nodes and weights.
-
getAdjacentNodesWeights
Description copied from interface:GraphGiven a node, finds the weights of the edges towards the nodes u such that the edge (node to u) is in the graph.- Specified by:
getAdjacentNodesWeightsin interfaceGraph<V>- Specified by:
getAdjacentNodesWeightsin interfaceUndirectedGraph<V>- Specified by:
getAdjacentNodesWeightsin interfaceWeightedGraph<V>- Parameters:
node- The node.- Returns:
- A stream containing the adjacent nodes and weights.
-
getNeighbourNodesWeights
Description copied from interface:GraphGiven a node, finds the weights of the edges from the nodes u such that the edge (node to u) or the edge (u to node) are in the graph.- Specified by:
getNeighbourNodesWeightsin interfaceGraph<V>- Specified by:
getNeighbourNodesWeightsin interfaceWeightedGraph<V>- Parameters:
node- The node.- Returns:
- A stream containing all the nodes in the neighbourhood and weights.
-
getNeighbourhoodWeights
default java.util.stream.Stream<Weight<V,java.lang.Double>> getNeighbourhoodWeights(V node, EdgeOrientation direction)Description copied from interface:GraphGets all the weights of the edges in the neighbourhood of a node given by a direction. In the mutual case, just returns the average of the edge weights.- Specified by:
getNeighbourhoodWeightsin interfaceGraph<V>- Specified by:
getNeighbourhoodWeightsin interfaceUndirectedGraph<V>- Parameters:
node- The node.direction- The direction of the links- Returns:
- A stream containing the corresponding neighbourhood and weights.
-
getIncidentNodesWeightsLists
Description copied from interface:WeightedMultiGraphGets the different weights for the edges of the incident nodes.- Specified by:
getIncidentNodesWeightsListsin interfaceMultiGraph<V>- Specified by:
getIncidentNodesWeightsListsin interfaceWeightedMultiGraph<V>- Parameters:
node- The node to study- Returns:
- A stream containing the weights
-
getAdjacentNodesWeightsLists
Description copied from interface:WeightedMultiGraphGets the different weights for the edges of the adjacent nodes.- Specified by:
getAdjacentNodesWeightsListsin interfaceMultiGraph<V>- Specified by:
getAdjacentNodesWeightsListsin interfaceWeightedMultiGraph<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>- Specified by:
getNeighbourNodesWeightsListsin interfaceWeightedMultiGraph<V>- Parameters:
node- The node to study- Returns:
- A stream containing the weights
-
getNeighbourhoodWeightsLists
default java.util.stream.Stream<Weights<V,java.lang.Double>> getNeighbourhoodWeightsLists(V node, EdgeOrientation direction)Description copied from interface:MultiGraphGets the different weights for the edges of the selected neighbour nodes.- Specified by:
getNeighbourhoodWeightsListsin interfaceMultiGraph<V>- Parameters:
node- The node to studydirection- The orientation to take- Returns:
- A stream containing the weights
-