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
  • Constructor Details

  • Method Details

    • getAdjacencyMatrix

      public double[][] getAdjacencyMatrix​(EdgeOrientation direction)
      Description copied from interface: Graph
      Gets the adjacency matrix.
      Specified by:
      getAdjacencyMatrix in interface Graph<U>
      Parameters:
      direction - The direction of the edges.
      Returns:
      the adjacency matrix.
    • updateEdgeWeight

      public boolean updateEdgeWeight​(U nodeA, U nodeB, double newWeight)
      Description copied from interface: Graph
      Updates the weight of an edge.
      Specified by:
      updateEdgeWeight in interface Graph<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.