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