public MaxFlowInference() { graph = new SimpleDirectedWeightedGraph<Node, DefaultWeightedEdge>( DefaultWeightedEdge.class); }
public ShortestPathInference() { graph = new SimpleDirectedWeightedGraph<Node, DefaultWeightedEdge>( DefaultWeightedEdge.class); }
public ShortestPathInference() { graph = new SimpleDirectedWeightedGraph<Node, DefaultWeightedEdge>( DefaultWeightedEdge.class); }
public MaxFlowInference() { graph = new SimpleDirectedWeightedGraph<Node, DefaultWeightedEdge>( DefaultWeightedEdge.class); }
/** * Create a builder for this kind of graph. * * @param edgeSupplier the edge supplier * @param <V> the graph vertex type * @param <E> the graph edge type * @return a builder for this kind of graph */ public static <V, E> GraphBuilder<V, E, ? extends SimpleDirectedWeightedGraph<V, E>> createBuilder( Supplier<E> edgeSupplier) { return new GraphBuilder<>(new SimpleDirectedWeightedGraph<>(null, edgeSupplier)); }
/** * Create a builder for this kind of graph. * * @param edgeClass class on which to base factory for edges * @param <V> the graph vertex type * @param <E> the graph edge type * @return a builder for this kind of graph */ public static <V, E> GraphBuilder<V, E, ? extends SimpleDirectedWeightedGraph<V, E>> createBuilder( Class<? extends E> edgeClass) { return new GraphBuilder<>(new SimpleDirectedWeightedGraph<>(edgeClass)); }
public IaaSTaxonomy() { iaasTaxonomie = new SimpleDirectedWeightedGraph<>(DefaultWeightedEdge.class); properties = new Properties(); try {
final SimpleDirectedWeightedGraph< V, DefaultWeightedEdge > copy = new SimpleDirectedWeightedGraph< >( DefaultWeightedEdge.class ); final Set< Spot > spots = graph.vertexSet();
final SimpleDirectedWeightedGraph< V, DefaultWeightedEdge > copy = new SimpleDirectedWeightedGraph< >( DefaultWeightedEdge.class ); final Set< Spot > spots = graph.vertexSet();
public PaaSTaxonomy() { paasTaxonomie = new SimpleDirectedWeightedGraph<>(DefaultWeightedEdge.class); properties = new Properties(); try {
return new SimpleDirectedWeightedGraph<>(vertexSupplier, edgeSupplier); } else { return new SimpleDirectedGraph<>(vertexSupplier, edgeSupplier, false);
if (isDirected()) { if (model.weighted()) { return new SimpleDirectedWeightedGraph<>(edgeClass); } else { return new SimpleDirectedGraph<>(edgeClass);