public class

GraphBuilder

extends Object
java.lang.Object
   ↳ es.usc.citius.hipster.graph.GraphBuilder<V, E>

Class Overview

Graph builder assistant to create a Hipster graph. Usage example:

 HipsterGraph<String,Double> =
 GraphBuilder.<String,Double>create()
 .connect("A").to("B").withEdge(4d)
 .connect("A").to("C").withEdge(2d)
 .connect("B").to("C").withEdge(5d)
 .createDirectedGraph();
 
 

Summary

Nested Classes
class GraphBuilder.Vertex1  
Public Methods
HipsterDirectedGraph buildDirectedGraph()
HipsterGraph buildUndirectedGraph()
Vertex1 connect(V vertex)
GraphBuilder<V, E> connect(V vertex1, V vertex2)
static <V, E> GraphBuilder<V, E> create()
HipsterDirectedGraph<V, E> createDirectedGraph()
HipsterGraph<V, E> createUndirectedGraph()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public HipsterDirectedGraph buildDirectedGraph ()

Returns
  • type-erased directed graph

public HipsterGraph buildUndirectedGraph ()

Returns
  • type-erased undirected graph

public Vertex1 connect (V vertex)

public GraphBuilder<V, E> connect (V vertex1, V vertex2)

public static GraphBuilder<V, E> create ()

public HipsterDirectedGraph<V, E> createDirectedGraph ()

public HipsterGraph<V, E> createUndirectedGraph ()