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.booleanupdateEdgeWeight(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, updateEdgeTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, updateEdgeTypeMethods 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, outDegreeMethods inherited from interface es.uam.eps.ir.relison.graph.UndirectedUnweightedGraph
getAdjacentNodesWeights, getIncidentNodesWeights, getNeighbourhoodWeights, getNeighbourNodesWeightsMethods 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:GraphUpdates the weight of an edge.- Specified by:
updateEdgeWeightin 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:GraphGets the adjacency matrix.- Specified by:
getAdjacencyMatrixin interfaceGraph<U>- Parameters:
direction- The direction of the edges.- Returns:
- the adjacency matrix.
-