de.aitools.iv.graphdrawing.datastructures.graph
Class ExampleGraphs

java.lang.Object
  extended by de.aitools.iv.graphdrawing.datastructures.graph.ExampleGraphs

public class ExampleGraphs
extends java.lang.Object


Constructor Summary
ExampleGraphs()
           
 
Method Summary
 AdjacencyMatrix getGraph(UndirectedGraph g, int id)
          usage: if g is null the graph is returned as AdjacencyMatrix else null is returned and g is used.
 AdjacencyMatrix graph1(UndirectedGraph g)
           
 AdjacencyMatrix graph2(UndirectedGraph g)
           
 AdjacencyMatrix randomGraph(UndirectedGraph g, double sparingness, int vertexCount)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleGraphs

public ExampleGraphs()
Method Detail

getGraph

public AdjacencyMatrix getGraph(UndirectedGraph g,
                                int id)
usage: if g is null the graph is returned as AdjacencyMatrix else null is returned and g is used.

Parameters:
g - the graph to build
id - example graph id
Returns:
graph as matrix or null if g is not null.

graph1

public AdjacencyMatrix graph1(UndirectedGraph g)

graph2

public AdjacencyMatrix graph2(UndirectedGraph g)

randomGraph

public AdjacencyMatrix randomGraph(UndirectedGraph g,
                                   double sparingness,
                                   int vertexCount)