de.aitools.iv.graphdrawing.datastructures.graph
Class ExampleGraphs
java.lang.Object
de.aitools.iv.graphdrawing.datastructures.graph.ExampleGraphs
public class ExampleGraphs
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExampleGraphs
public ExampleGraphs()
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 buildid
- 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)