public class

JUNGHipsterGraphAdapter

extends Object
implements HipsterGraph<V, E>
java.lang.Object
   ↳ es.usc.citius.hipster.thirdparty.graphs.jung.JUNGHipsterGraphAdapter<V, E>
Known Direct Subclasses

Class Overview

An adapter to adapt a JUNG graph to a general HipsterGraph interface.

Summary

Fields
protected Graph<V, E> graph
Public Constructors
JUNGHipsterGraphAdapter(Graph<V, E> graph)
Public Methods
Iterable<GraphEdge<V, E>> edges()
Returns an Iterable of the edges in the graph.
Iterable<GraphEdge<V, E>> edgesOf(V vertex)
Return all the edges that are connected with the given vertex.
Iterable<V> vertices()
Returns an iterable of the vertices in the graph.
Protected Methods
Iterable<GraphEdge<V, E>> adapt(Iterable<E> iterable)
[Expand]
Inherited Methods
From class java.lang.Object
From interface es.usc.citius.hipster.graph.HipsterGraph

Fields

protected Graph<V, E> graph

Public Constructors

public JUNGHipsterGraphAdapter (Graph<V, E> graph)

Public Methods

public Iterable<GraphEdge<V, E>> edges ()

Returns an Iterable of the edges in the graph.

Returns

public Iterable<GraphEdge<V, E>> edgesOf (V vertex)

Return all the edges that are connected with the given vertex.

Parameters
vertex vertex to be queried
Returns
  • an iterable of GraphEdges connected to the vertex

public Iterable<V> vertices ()

Returns an iterable of the vertices in the graph.

Returns
  • iterable of vertices

Protected Methods

protected Iterable<GraphEdge<V, E>> adapt (Iterable<E> iterable)