Uses of Class
org.graph4j.GraphBuilder
Packages that use GraphBuilder
-
Uses of GraphBuilder in org.graph4j
Methods in org.graph4j that return GraphBuilderModifier and TypeMethodDescriptionGraphBuilder.addClique(int... clique) GraphBuilder.addCycle(int... cycle) GraphBuilder.addEdge(int v, int u) <V> GraphBuilderGraphBuilder.addEdge(V vLabel, V uLabel) GraphBuilder.addPath(int... path) GraphBuilder.adjList(int[][] a) GraphBuilder.edgeDataSize(int edgeDataSize) static GraphBuilderCreates a new graph based on the string representation of its edge set, for example: "1-2, 2-3, 3-1", "a-b, b-c, c-d", etc. "0-1,0-2-0-3" may be written as "0-1,2,3".static GraphBuilderGraphBuilder.empty()Creates an empty graph (with no vertices).GraphBuilder.estimatedAvgDegree(int avgDegree) GraphBuilder.estimatedDensity(double density) GraphBuilder.estimatedNumEdges(long numEdges) GraphBuilder.estimatedNumVertices(int numVertices) static <V> GraphBuilderGraphBuilder.labeledVertices(Collection vertexObjects) Creates a new graph having the specified vertex labels.static <V> GraphBuilderGraphBuilder.labeledVertices(V... vertexObjects) Creates a new graph having the specified vertex labels.static GraphBuilderGraphBuilder.numVertices(int numVertices) Creates a graph having as vertices the numbers from0tonumVertices - 1.GraphBuilder.vertexDataSize(int vertexDataSize) static GraphBuilderGraphBuilder.vertexRange(int firstVertex, int lastVertex) Creates a new graph having as vertices the numbers in the specified range.static GraphBuilderGraphBuilder.vertices(int... vertices) Creates a new graph having the specified vertex numbers.static GraphBuilderGraphBuilder.verticesFrom(Graph graph) Creates a new graph having the same vertex numbers as the specified graph.