public class GraphFactory
extends java.lang.Object
Constructor and Description |
---|
GraphFactory() |
Modifier and Type | Method and Description |
---|---|
static Graph |
createCartesianProduct(java.awt.Point initialPoint,
Graph A,
Graph B) |
static Graph |
createClique(java.awt.Point startingLocation,
int numberNodes,
int radius)
Adds a clique to the graph and returns it.
|
static Graph |
createCompleteBipartite(java.awt.Point startingLocation,
int numberNodes1,
int numberNodes2)
Adds a complete bipartite graph and returns it.
|
static Graph |
createCycle(java.awt.Point startingLocation,
int numberNodes,
int radius)
Adds a cycle to the graph and returns it.
|
static Graph |
createPath(java.awt.Point startingLocation,
int numberNodes,
int orientation)
Adds a path to the graph and returns it.
|
static Graph |
createStar(java.awt.Point startingLocation,
int numberNodes,
int radius)
Adds a star to the graph and returns it.
|
static Graph |
createTensorProduct(java.awt.Point initialPoint,
Graph A,
Graph B) |
static Graph |
createWheel(java.awt.Point startingLocation,
int numberNodes,
int radius)
Adds a star to the graph and returns it.
|
public static Graph createCycle(java.awt.Point startingLocation, int numberNodes, int radius)
vertexDataClass
- startingLocation
- center of cyclenumberNodes
- radius
- public static Graph createClique(java.awt.Point startingLocation, int numberNodes, int radius)
vertexDataClass
- startingLocation
- center of cliquenumberNodes
- radius
- public static Graph createStar(java.awt.Point startingLocation, int numberNodes, int radius)
vertexDataClass
- startingLocation
- center of starnumberNodes
- radius
- public static Graph createWheel(java.awt.Point startingLocation, int numberNodes, int radius)
vertexDataClass
- startingLocation
- center of starnumberNodes
- radius
- public static Graph createPath(java.awt.Point startingLocation, int numberNodes, int orientation)
vertexDataClass
- startingLocation
- numberNodes
- orientation
- Should be Graph.HORIZONTAL or Graph.VERTICAL or Graph.HORIZONTAL & Graph.Vertical.public static Graph createCartesianProduct(java.awt.Point initialPoint, Graph A, Graph B)
public static Graph createTensorProduct(java.awt.Point initialPoint, Graph A, Graph B)
public static Graph createCompleteBipartite(java.awt.Point startingLocation, int numberNodes1, int numberNodes2)
vertexDataClass
- startingLocation
- numberNodes1
- numberNodes2
- orientation
- Should be Graph.HORIZONTAL or Graph.VERTICAL or Graph.HORIZONTAL & Graph.Vertical.