Package es.uam.eps.ir.relison.graph.jung
Class DirectedJungGraph<U>
java.lang.Object
es.uam.eps.ir.relison.graph.jung.JungGraph<U>
es.uam.eps.ir.relison.graph.jung.DirectedJungGraph<U>
- Type Parameters:
U
- type of the users
- All Implemented Interfaces:
DirectedGraph<U>
,DirectedUnweightedGraph<U>
,Graph<U>
,UnweightedGraph<U>
,java.io.Serializable
public class DirectedJungGraph<U> extends JungGraph<U> implements DirectedUnweightedGraph<U>
Directed Graph Wrapper for JUNG
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DirectedJungGraph()
Constructor. -
Method Summary
Modifier and Type Method Description double[][]
getAdjacencyMatrix(EdgeOrientation direction)
Gets the adjacency matrix.boolean
updateEdgeWeight(U nodeA, U nodeB, double newWeight)
Updates the weight of an edge.Methods inherited from class es.uam.eps.ir.relison.graph.jung.JungGraph
addEdge, addNode, complement, containsEdge, containsVertex, degree, getAdjacencyMatrixMap, getAdjacentEdgesCount, getAdjacentMutualNodesTypes, getAdjacentNodes, getAdjacentNodesTypes, getAllNodes, getEdgeCount, getEdgeType, getIncidentEdgesCount, getIncidentMutualNodesTypes, getIncidentNodes, getIncidentNodesTypes, getIsolatedNodes, getMutualEdgesCount, getMutualNodes, getMutualNodesTypes, getNeighbourEdgesCount, getNeighbourhoodTypes, getNeighbourNodes, getNeighbourNodesTypes, getNodesWithAdjacentNeighbors, getNodesWithIncidentNeighbors, getNodesWithMutualNeighbors, getNodesWithNeighbors, getNodesWithNeighbors, getVertexCount, hasAdjacentNeighbors, hasIncidentNeighbors, hasMutualNeighbors, hasNeighbors, updateEdgeType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface es.uam.eps.ir.relison.graph.DirectedGraph
degree, degree, getNeighbourEdgesCount, getNeighbourhood, getNeighbourhoodSize, getNeighbourhoodTypes, getNeighbourhoodWeights, getSinks, getSources, inDegree, isDirected, mutualDegree, outDegree
Methods inherited from interface es.uam.eps.ir.relison.graph.Graph
addEdge, addEdge, addEdge, addEdge, addEdge, addNode, complement, containsEdge, containsVertex, getAdjacencyMatrixMap, getAdjacentEdgesCount, getAdjacentMutualNodesTypes, getAdjacentNodes, getAdjacentNodesCount, getAdjacentNodesTypes, getAllNodes, getEdgeCount, getEdgeType, getIncidentEdgesCount, getIncidentMutualNodesTypes, getIncidentNodes, getIncidentNodesCount, getIncidentNodesTypes, getIsolatedNodes, getMutualEdgesCount, getMutualNodes, getMutualNodesCount, getMutualNodesTypes, getNeighbourNodes, getNeighbourNodesCount, getNeighbourNodesTypes, getNodesWithAdjacentNeighbors, getNodesWithIncidentNeighbors, getNodesWithMutualNeighbors, getNodesWithNeighbors, getNodesWithNeighbors, getVertexCount, hasAdjacentNeighbors, hasIncidentNeighbors, hasMutualNeighbors, hasNeighbors, hasNeighbors, isMultigraph, isMutual, removeEdge, removeNode, updateEdgeType
Methods inherited from interface es.uam.eps.ir.relison.graph.UnweightedGraph
addEdge, getAdjacentMutualNodesWeights, getAdjacentNodesWeights, getEdgeWeight, getIncidentMutualNodesWeights, getIncidentNodesWeights, getMutualNodesWeights, getNeighbourNodesWeights, isWeighted
-
Constructor Details
-
DirectedJungGraph
public DirectedJungGraph()Constructor.
-
-
Method Details
-
getAdjacencyMatrix
Description copied from interface:Graph
Gets the adjacency matrix.- Specified by:
getAdjacencyMatrix
in interfaceGraph<U>
- Parameters:
direction
- The direction of the edges.- Returns:
- the adjacency matrix.
-
updateEdgeWeight
Description copied from interface:Graph
Updates the weight of an edge.- Specified by:
updateEdgeWeight
in interfaceGraph<U>
- Parameters:
nodeA
- The incident node.nodeB
- The adjacent node.newWeight
- The new weight.- Returns:
- true if everything goes OK, false if the edge does not exist or something fails.
-