Package  Description 

org.jgrapht.graph.builder 
Various builder for graphs.

Modifier and Type  Method and Description 

GraphTypeBuilder<V,E> 
GraphTypeBuilder.allowingMultipleEdges(boolean allowingMultipleEdges)
Set whether the graph will allow multiple (parallel) edges between the same two vertices.

GraphTypeBuilder<V,E> 
GraphTypeBuilder.allowingSelfLoops(boolean allowingSelfLoops)
Set whether the graph will allow self loops (edges with same source and target vertices).

static <V,E> GraphTypeBuilder<V,E> 
GraphTypeBuilder.directed()
Create a graph type builder for a directed graph.

<E1 extends E> 
GraphTypeBuilder.edgeClass(Class<E1> edgeClass)
Set the edge class.

<E1 extends E> 
GraphTypeBuilder.edgeSupplier(Supplier<E1> edgeSupplier)
Set the edge supplier.

static <V,E> GraphTypeBuilder<V,E> 
GraphTypeBuilder.forGraph(Graph<V,E> graph)
Create a graph type builder which will create the same graph type as the parameter graph.

static <V,E> GraphTypeBuilder<V,E> 
GraphTypeBuilder.forGraphType(GraphType type)
Create a graph type builder which will create a graph with the same type as the one provided.

static <V,E> GraphTypeBuilder<V,E> 
GraphTypeBuilder.mixed()
Create a graph type builder for a mixed graph.

static <V,E> GraphTypeBuilder<V,E> 
GraphTypeBuilder.undirected()
Create a graph type builder for an undirected graph.

<V1 extends V> 
GraphTypeBuilder.vertexClass(Class<V1> vertexClass)
Set the vertex class.

<V1 extends V> 
GraphTypeBuilder.vertexSupplier(Supplier<V1> vertexSupplier)
Set the vertex supplier.

GraphTypeBuilder<V,E> 
GraphTypeBuilder.weighted(boolean weighted)
Set whether the graph will be weighted or not.

Copyright © 2019. All rights reserved.