Uses of Class
cloud.opencode.base.graph.builder.GraphBuilder
Packages that use GraphBuilder
-
Uses of GraphBuilder in cloud.opencode.base.graph
Methods in cloud.opencode.base.graph that return GraphBuilderModifier and TypeMethodDescriptionstatic <V> GraphBuilder<V> OpenGraph.directedBuilder()Create a graph builder for directed graph 创建有向图构建器static <V> GraphBuilder<V> OpenGraph.undirectedBuilder()Create a graph builder for undirected graph 创建无向图构建器 -
Uses of GraphBuilder in cloud.opencode.base.graph.builder
Methods in cloud.opencode.base.graph.builder that return GraphBuilderModifier and TypeMethodDescriptionAdd an edge 添加边Add an edge with default weight 添加默认权重的边Add an edge with weight 添加带权重的边GraphBuilder.addEdges(Collection<Edge<V>> edges) Add multiple edges 添加多个边Add a vertex 添加顶点GraphBuilder.addVertices(Collection<V> vertices) Add vertices from collection 从集合添加顶点final GraphBuilder<V> GraphBuilder.addVertices(V... vertices) Add multiple vertices 添加多个顶点GraphBuilder.configure(Consumer<GraphBuilder<V>> configurer) Configure the builder 配置构建器static <V> GraphBuilder<V> GraphBuilder.directed()Create a builder for directed graph 创建有向图构建器GraphBuilder.initialCapacity(int capacity) Set initial capacity for the graph 设置图的初始容量static <V> GraphBuilder<V> GraphBuilder.undirected()Create a builder for undirected graph 创建无向图构建器Method parameters in cloud.opencode.base.graph.builder with type arguments of type GraphBuilderModifier and TypeMethodDescriptionGraphBuilder.configure(Consumer<GraphBuilder<V>> configurer) Configure the builder 配置构建器