public interface

HipsterGraph

es.usc.citius.hipster.graph.HipsterGraph<V, E>
Known Indirect Subclasses

Class Overview

Basic definition of the read-only methods for a graph in terms of edges and vertices.

Summary

Public Methods
abstract Iterable<GraphEdge<V, E>> edges()
Returns an Iterable of the edges in the graph.
abstract Iterable<GraphEdge<V, E>> edgesOf(V vertex)
Return all the edges that are connected with the given vertex.
abstract Iterable<V> vertices()
Returns an iterable of the vertices in the graph.

Public Methods

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

Returns an Iterable of the edges in the graph.

Returns

public abstract 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 abstract Iterable<V> vertices ()

Returns an iterable of the vertices in the graph.

Returns
  • iterable of vertices