V- the graph vertex type
E- the graph edge type
public class HyperCubeGraphGenerator<V,E> extends Object implements GraphGenerator<V,E,V>
|Constructor and Description|
Creates a new HyperCubeGraphGenerator object.
|Modifier and Type||Method and Description|
This will generate the hypercube graph
public HyperCubeGraphGenerator(int dim)
dim- This is the dimension of the hypercube.
public void generateGraph(Graph<V,E> target, VertexFactory<V> vertexFactory, Map<String,V> resultMap)
target- receives the generated edges and vertices; if this is non-empty on entry, the result will be a disconnected graph since generated elements will not be connected to existing elements
vertexFactory- called to produce new vertices
resultMap- if non-null, receives implementation-specific mappings from String roles to graph elements (or collections of graph elements)
Copyright © 2017. All rights reserved.