Interface UndirectedUnweightedMultiGraph<V>
- Type Parameters:
V
- type of the vertices
- All Superinterfaces:
Graph<V>
,MultiGraph<V>
,java.io.Serializable
,UndirectedGraph<V>
,UndirectedMultiGraph<V>
,UnweightedGraph<V>
,UnweightedMultiGraph<V>
- All Known Implementing Classes:
FastUndirectedUnweightedMultiGraph
public interface UndirectedUnweightedMultiGraph<V> extends UnweightedMultiGraph<V>, UndirectedMultiGraph<V>
Interface for undirected unweighted 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, addNode, complement, containsEdge, containsVertex, getAdjacencyMatrix, getAdjacencyMatrixMap, getAdjacentNodesCount, getAllNodes, getEdgeCount, getEdgeType, getIncidentNodesCount, getIsolatedNodes, getNeighbourNodes, getNeighbourNodesCount, getNeighbourNodesTypes, getNodesWithAdjacentNeighbors, getNodesWithIncidentNeighbors, getNodesWithMutualNeighbors, getNodesWithNeighbors, getNodesWithNeighbors, getVertexCount, hasAdjacentNeighbors, hasIncidentNeighbors, hasMutualNeighbors, hasNeighbors, hasNeighbors, removeEdge, removeNode, updateEdgeType, updateEdgeWeight
Methods inherited from interface es.uam.eps.ir.relison.graph.multigraph.MultiGraph
getEdgeTypes, getNeighbourNodesTypesLists, getNumEdges, isMultigraph, removeEdge, removeEdges, updateEdgeWeight
Methods 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, outDegree
Methods inherited from interface es.uam.eps.ir.relison.graph.multigraph.UndirectedMultiGraph
degree, getAdjacentNodesTypes, getAdjacentNodesTypesLists, getIncidentNodesTypes, getIncidentNodesTypesLists, getNeighbourhoodTypes, getNeighbourhoodTypesLists
Methods inherited from interface es.uam.eps.ir.relison.graph.UnweightedGraph
addEdge, getAdjacentMutualNodesWeights, getEdgeWeight, getIncidentMutualNodesWeights, getMutualNodesWeights, isWeighted
Methods inherited from interface es.uam.eps.ir.relison.graph.multigraph.UnweightedMultiGraph
getEdgeWeights
-
Method Details
-
getIncidentNodesWeights
Description copied from interface:Graph
Given 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:
getIncidentNodesWeights
in interfaceGraph<V>
- Specified by:
getIncidentNodesWeights
in interfaceUndirectedGraph<V>
- Specified by:
getIncidentNodesWeights
in interfaceUnweightedGraph<V>
- Parameters:
node
- The node.- Returns:
- A stream containing the adjacent nodes and weights.
-
getAdjacentNodesWeights
Description copied from interface:Graph
Given 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:
getAdjacentNodesWeights
in interfaceGraph<V>
- Specified by:
getAdjacentNodesWeights
in interfaceUndirectedGraph<V>
- Specified by:
getAdjacentNodesWeights
in interfaceUnweightedGraph<V>
- Parameters:
node
- The node.- Returns:
- A stream containing the adjacent nodes and weights.
-
getNeighbourNodesWeights
Description copied from interface:Graph
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.- Specified by:
getNeighbourNodesWeights
in interfaceGraph<V>
- Specified by:
getNeighbourNodesWeights
in interfaceUnweightedGraph<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:Graph
Gets 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:
getNeighbourhoodWeights
in interfaceGraph<V>
- Specified by:
getNeighbourhoodWeights
in 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:UnweightedMultiGraph
Gets the different weights for the edges of the incident nodes.- Specified by:
getIncidentNodesWeightsLists
in interfaceMultiGraph<V>
- Specified by:
getIncidentNodesWeightsLists
in interfaceUnweightedMultiGraph<V>
- Parameters:
node
- The node to study- Returns:
- A stream containing the weights
-
getAdjacentNodesWeightsLists
Description copied from interface:UnweightedMultiGraph
Gets the different weights for the edges of the adjacent nodes.- Specified by:
getAdjacentNodesWeightsLists
in interfaceMultiGraph<V>
- Specified by:
getAdjacentNodesWeightsLists
in interfaceUnweightedMultiGraph<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:
getNeighbourNodesWeightsLists
in interfaceMultiGraph<V>
- Specified by:
getNeighbourNodesWeightsLists
in interfaceUnweightedMultiGraph<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:MultiGraph
Gets the different weights for the edges of the selected neighbour nodes.- Specified by:
getNeighbourhoodWeightsLists
in interfaceMultiGraph<V>
- Parameters:
node
- The node to studydirection
- The orientation to take- Returns:
- A stream containing the weights
-