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

  • Method Details

    • updateEdgeWeight

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

      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.