Interface DirectedMultiGraph<U>
- Type Parameters:
U- type of the vertices
- All Superinterfaces:
DirectedGraph<U>,Graph<U>,MultiGraph<U>,java.io.Serializable
- All Known Subinterfaces:
DirectedUnweightedMultiGraph<V>,DirectedWeightedMultiGraph<U>
- All Known Implementing Classes:
FastDirectedUnweightedMultiGraph,FastDirectedWeightedMultiGraph
public interface DirectedMultiGraph<U> extends MultiGraph<U>, DirectedGraph<U>
Interface for directed multi graphs.
-
Method Summary
Modifier and Type Method Description default java.util.stream.Stream<Weights<U,java.lang.Integer>>getNeighbourhoodTypesLists(U node, EdgeOrientation direction)Gets the different weights for the edges of the selected neighbour nodes.default java.util.stream.Stream<Weights<U,java.lang.Double>>getNeighbourhoodWeightsLists(U node, EdgeOrientation direction)Gets the different weights for the edges of the selected neighbour nodes.default intinDegree(U node)Calculates the in-degree of a node.default intoutDegree(U node)Calculates the out-degree of a node.Methods inherited from interface es.uam.eps.ir.relison.graph.DirectedGraph
degree, degree, getNeighbourEdgesCount, getNeighbourhood, getNeighbourhoodSize, getNeighbourhoodTypes, getNeighbourhoodWeights, getSinks, getSources, isDirected, mutualDegreeMethods inherited from interface es.uam.eps.ir.relison.graph.Graph
addEdge, addEdge, addEdge, addEdge, addEdge, addEdge, addNode, complement, containsEdge, containsVertex, getAdjacencyMatrix, getAdjacencyMatrixMap, getAdjacentEdgesCount, getAdjacentMutualNodesTypes, getAdjacentMutualNodesWeights, getAdjacentNodes, getAdjacentNodesCount, getAdjacentNodesTypes, getAdjacentNodesWeights, getAllNodes, getEdgeCount, getEdgeType, getEdgeWeight, getIncidentEdgesCount, getIncidentMutualNodesTypes, getIncidentMutualNodesWeights, getIncidentNodes, getIncidentNodesCount, getIncidentNodesTypes, getIncidentNodesWeights, getIsolatedNodes, getMutualEdgesCount, getMutualNodes, getMutualNodesCount, getMutualNodesTypes, getMutualNodesWeights, getNeighbourNodes, getNeighbourNodesCount, getNeighbourNodesTypes, getNeighbourNodesWeights, getNodesWithAdjacentNeighbors, getNodesWithIncidentNeighbors, getNodesWithMutualNeighbors, getNodesWithNeighbors, getNodesWithNeighbors, getVertexCount, hasAdjacentNeighbors, hasIncidentNeighbors, hasMutualNeighbors, hasNeighbors, hasNeighbors, isMutual, isWeighted, removeEdge, removeNode, updateEdgeType, updateEdgeWeightMethods inherited from interface es.uam.eps.ir.relison.graph.multigraph.MultiGraph
getAdjacentNodesTypesLists, getAdjacentNodesWeightsLists, getEdgeTypes, getEdgeWeights, getIncidentNodesTypesLists, getIncidentNodesWeightsLists, getNeighbourNodesTypesLists, getNeighbourNodesWeightsLists, getNumEdges, isMultigraph, removeEdge, removeEdges, updateEdgeWeight
-
Method Details
-
getNeighbourhoodWeightsLists
default java.util.stream.Stream<Weights<U,java.lang.Double>> getNeighbourhoodWeightsLists(U node, EdgeOrientation direction)Description copied from interface:MultiGraphGets the different weights for the edges of the selected neighbour nodes.- Specified by:
getNeighbourhoodWeightsListsin interfaceMultiGraph<U>- Parameters:
node- The node to studydirection- The orientation to take- Returns:
- A stream containing the weights
-
getNeighbourhoodTypesLists
default java.util.stream.Stream<Weights<U,java.lang.Integer>> getNeighbourhoodTypesLists(U node, EdgeOrientation direction)Description copied from interface:MultiGraphGets the different weights for the edges of the selected neighbour nodes.- Specified by:
getNeighbourhoodTypesListsin interfaceMultiGraph<U>- Parameters:
node- The node to studydirection- The orientation to take- Returns:
- A stream containing the weights
-
inDegree
Description copied from interface:GraphCalculates the in-degree of a node. -
outDegree
Description copied from interface:GraphCalculates the out-degree of a node.
-