diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..02c0404 --- /dev/null +++ b/build.xml @@ -0,0 +1,84 @@ + + + + + + + + + + + Builds, tests, and runs the project DungeonGenerator. + + + + + + + + + + + + + + diff --git a/build/built-jar.properties b/build/built-jar.properties new file mode 100644 index 0000000..3997e54 --- /dev/null +++ b/build/built-jar.properties @@ -0,0 +1,4 @@ +#Fri, 09 Sep 2016 18:10:34 +0200 + + +C\:\\Users\\MrMcX\\ownCloud\\Rollenspiel\\DSA\\Meister\\DungeonGenerator= diff --git a/build/classes/.netbeans_automatic_build b/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/build/classes/.netbeans_update_resources b/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/build/classes/dungeon/Dungeon$1.class b/build/classes/dungeon/Dungeon$1.class new file mode 100644 index 0000000..38a8dcc Binary files /dev/null and b/build/classes/dungeon/Dungeon$1.class differ diff --git a/build/classes/dungeon/Dungeon$Mode.class b/build/classes/dungeon/Dungeon$Mode.class new file mode 100644 index 0000000..97af331 Binary files /dev/null and b/build/classes/dungeon/Dungeon$Mode.class differ diff --git a/build/classes/dungeon/Dungeon$Type.class b/build/classes/dungeon/Dungeon$Type.class new file mode 100644 index 0000000..3b16ae9 Binary files /dev/null and b/build/classes/dungeon/Dungeon$Type.class differ diff --git a/build/classes/dungeon/Dungeon.class b/build/classes/dungeon/Dungeon.class new file mode 100644 index 0000000..aa0d111 Binary files /dev/null and b/build/classes/dungeon/Dungeon.class differ diff --git a/build/classes/dungeon/Enemy.class b/build/classes/dungeon/Enemy.class new file mode 100644 index 0000000..914eb6e Binary files /dev/null and b/build/classes/dungeon/Enemy.class differ diff --git a/build/classes/dungeon/Exit.class b/build/classes/dungeon/Exit.class new file mode 100644 index 0000000..4eb5ee3 Binary files /dev/null and b/build/classes/dungeon/Exit.class differ diff --git a/build/classes/dungeon/Room.class b/build/classes/dungeon/Room.class new file mode 100644 index 0000000..eddd1ae Binary files /dev/null and b/build/classes/dungeon/Room.class differ diff --git a/build/classes/dungeon/Trap.class b/build/classes/dungeon/Trap.class new file mode 100644 index 0000000..6a619d5 Binary files /dev/null and b/build/classes/dungeon/Trap.class differ diff --git a/build/classes/dungeon/Treasure.class b/build/classes/dungeon/Treasure.class new file mode 100644 index 0000000..e15751d Binary files /dev/null and b/build/classes/dungeon/Treasure.class differ diff --git a/build/classes/main/Counter.class b/build/classes/main/Counter.class new file mode 100644 index 0000000..6fc88e6 Binary files /dev/null and b/build/classes/main/Counter.class differ diff --git a/build/classes/main/Dice.class b/build/classes/main/Dice.class new file mode 100644 index 0000000..fbfccdb Binary files /dev/null and b/build/classes/main/Dice.class differ diff --git a/build/classes/main/DungeonGeneratorUI$1.class b/build/classes/main/DungeonGeneratorUI$1.class new file mode 100644 index 0000000..8282bbc Binary files /dev/null and b/build/classes/main/DungeonGeneratorUI$1.class differ diff --git a/build/classes/main/DungeonGeneratorUI$2.class b/build/classes/main/DungeonGeneratorUI$2.class new file mode 100644 index 0000000..8d441c3 Binary files /dev/null and b/build/classes/main/DungeonGeneratorUI$2.class differ diff --git a/build/classes/main/DungeonGeneratorUI$3.class b/build/classes/main/DungeonGeneratorUI$3.class new file mode 100644 index 0000000..bf012e7 Binary files /dev/null and b/build/classes/main/DungeonGeneratorUI$3.class differ diff --git a/build/classes/main/DungeonGeneratorUI$4.class b/build/classes/main/DungeonGeneratorUI$4.class new file mode 100644 index 0000000..8cdcdab Binary files /dev/null and b/build/classes/main/DungeonGeneratorUI$4.class differ diff --git a/build/classes/main/DungeonGeneratorUI$5.class b/build/classes/main/DungeonGeneratorUI$5.class new file mode 100644 index 0000000..9c36993 Binary files /dev/null and b/build/classes/main/DungeonGeneratorUI$5.class differ diff --git a/build/classes/main/DungeonGeneratorUI$6.class b/build/classes/main/DungeonGeneratorUI$6.class new file mode 100644 index 0000000..5413b72 Binary files /dev/null and b/build/classes/main/DungeonGeneratorUI$6.class differ diff --git a/build/classes/main/DungeonGeneratorUI$7.class b/build/classes/main/DungeonGeneratorUI$7.class new file mode 100644 index 0000000..68109d1 Binary files /dev/null and b/build/classes/main/DungeonGeneratorUI$7.class differ diff --git a/build/classes/main/DungeonGeneratorUI$8.class b/build/classes/main/DungeonGeneratorUI$8.class new file mode 100644 index 0000000..b71f2c3 Binary files /dev/null and b/build/classes/main/DungeonGeneratorUI$8.class differ diff --git a/build/classes/main/DungeonGeneratorUI.class b/build/classes/main/DungeonGeneratorUI.class new file mode 100644 index 0000000..86a614e Binary files /dev/null and b/build/classes/main/DungeonGeneratorUI.class differ diff --git a/build/classes/main/DungeonGeneratorUI.form b/build/classes/main/DungeonGeneratorUI.form new file mode 100644 index 0000000..00895d6 --- /dev/null +++ b/build/classes/main/DungeonGeneratorUI.form @@ -0,0 +1,350 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build/classes/version.properties b/build/classes/version.properties new file mode 100644 index 0000000..a5d54ec --- /dev/null +++ b/build/classes/version.properties @@ -0,0 +1,4 @@ +#Fri, 09 Sep 2016 18:10:34 +0200 +BUILDNUMBER=6 +BUILDDATE=2016-09-09 18\:10\:34 MESZ + diff --git a/dist/DungeonGenerator.jar b/dist/DungeonGenerator.jar new file mode 100644 index 0000000..0aa74de Binary files /dev/null and b/dist/DungeonGenerator.jar differ diff --git a/dist/README.TXT b/dist/README.TXT new file mode 100644 index 0000000..25bce8f --- /dev/null +++ b/dist/README.TXT @@ -0,0 +1,32 @@ +======================== +BUILD OUTPUT DESCRIPTION +======================== + +When you build an Java application project that has a main class, the IDE +automatically copies all of the JAR +files on the projects classpath to your projects dist/lib folder. The IDE +also adds each of the JAR files to the Class-Path element in the application +JAR files manifest file (MANIFEST.MF). + +To run the project from the command line, go to the dist folder and +type the following: + +java -jar "DungeonGenerator.jar" + +To distribute this project, zip up the dist folder (including the lib folder) +and distribute the ZIP file. + +Notes: + +* If two JAR files on the project classpath have the same name, only the first +JAR file is copied to the lib folder. +* Only JAR files are copied to the lib folder. +If the classpath contains other types of files or folders, these files (folders) +are not copied. +* If a library on the projects classpath also has a Class-Path element +specified in the manifest,the content of the Class-Path element has to be on +the projects runtime path. +* To set a main class in a standard Java project, right-click the project node +in the Projects window and choose Properties. Then click Run and enter the +class name in the Main Class field. Alternatively, you can manually type the +class name in the manifest Main-Class element. diff --git a/dist/lib/AbsoluteLayout.jar b/dist/lib/AbsoluteLayout.jar new file mode 100644 index 0000000..9ba9217 Binary files /dev/null and b/dist/lib/AbsoluteLayout.jar differ diff --git a/dist/lib/jgraph-5.13.0.0.jar b/dist/lib/jgraph-5.13.0.0.jar new file mode 100644 index 0000000..a853740 Binary files /dev/null and b/dist/lib/jgraph-5.13.0.0.jar differ diff --git a/dist/lib/jgrapht-core-0.9.2.jar b/dist/lib/jgrapht-core-0.9.2.jar new file mode 100644 index 0000000..82dba34 Binary files /dev/null and b/dist/lib/jgrapht-core-0.9.2.jar differ diff --git a/dist/lib/jgrapht-demo-0.9.2.jar b/dist/lib/jgrapht-demo-0.9.2.jar new file mode 100644 index 0000000..fbd2d23 Binary files /dev/null and b/dist/lib/jgrapht-demo-0.9.2.jar differ diff --git a/dist/lib/jgrapht-ext-0.9.2-uber.jar b/dist/lib/jgrapht-ext-0.9.2-uber.jar new file mode 100644 index 0000000..03a2d24 Binary files /dev/null and b/dist/lib/jgrapht-ext-0.9.2-uber.jar differ diff --git a/dist/lib/jgrapht-ext-0.9.2.jar b/dist/lib/jgrapht-ext-0.9.2.jar new file mode 100644 index 0000000..8710fb9 Binary files /dev/null and b/dist/lib/jgrapht-ext-0.9.2.jar differ diff --git a/dist/lib/jgraphx-2.0.0.1.jar b/dist/lib/jgraphx-2.0.0.1.jar new file mode 100644 index 0000000..7b36c99 Binary files /dev/null and b/dist/lib/jgraphx-2.0.0.1.jar differ diff --git a/firewall.png b/firewall.png new file mode 100644 index 0000000..774e968 Binary files /dev/null and b/firewall.png differ diff --git a/javadoc/allclasses-frame.html b/javadoc/allclasses-frame.html new file mode 100644 index 0000000..71f97a2 --- /dev/null +++ b/javadoc/allclasses-frame.html @@ -0,0 +1,253 @@ + + + + + + +All Classes (JGraphT : a free Java graph library) + + + + +

All Classes

+
+ +
+ + diff --git a/javadoc/allclasses-noframe.html b/javadoc/allclasses-noframe.html new file mode 100644 index 0000000..cc76898 --- /dev/null +++ b/javadoc/allclasses-noframe.html @@ -0,0 +1,253 @@ + + + + + + +All Classes (JGraphT : a free Java graph library) + + + + +

All Classes

+
+ +
+ + diff --git a/javadoc/constant-values.html b/javadoc/constant-values.html new file mode 100644 index 0000000..87f5686 --- /dev/null +++ b/javadoc/constant-values.html @@ -0,0 +1,423 @@ + + + + + + +Constant Field Values (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Constant Field Values

+

Contents

+ +
+
+ + +

org.jgrapht.*

+ + + + + + +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/deprecated-list.html b/javadoc/deprecated-list.html new file mode 100644 index 0000000..87c6e99 --- /dev/null +++ b/javadoc/deprecated-list.html @@ -0,0 +1,205 @@ + + + + + + +Deprecated List (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + + +
+ + + + + + + + + + + +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/help-doc.html b/javadoc/help-doc.html new file mode 100644 index 0000000..56856fc --- /dev/null +++ b/javadoc/help-doc.html @@ -0,0 +1,222 @@ + + + + + + +API Help (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+
    +
  • +

    Overview

    +

    The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

    +
  • +
  • +

    Package

    +

    Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:

    +
      +
    • Interfaces (italic)
    • +
    • Classes
    • +
    • Enums
    • +
    • Exceptions
    • +
    • Errors
    • +
    • Annotation Types
    • +
    +
  • +
  • +

    Class/Interface

    +

    Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    +
      +
    • Class inheritance diagram
    • +
    • Direct Subclasses
    • +
    • All Known Subinterfaces
    • +
    • All Known Implementing Classes
    • +
    • Class/interface declaration
    • +
    • Class/interface description
    • +
    +
      +
    • Nested Class Summary
    • +
    • Field Summary
    • +
    • Constructor Summary
    • +
    • Method Summary
    • +
    +
      +
    • Field Detail
    • +
    • Constructor Detail
    • +
    • Method Detail
    • +
    +

    Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

    +
  • +
  • +

    Annotation Type

    +

    Each annotation type has its own separate page with the following sections:

    +
      +
    • Annotation Type declaration
    • +
    • Annotation Type description
    • +
    • Required Element Summary
    • +
    • Optional Element Summary
    • +
    • Element Detail
    • +
    +
  • +
  • +

    Enum

    +

    Each enum has its own separate page with the following sections:

    +
      +
    • Enum declaration
    • +
    • Enum description
    • +
    • Enum Constant Summary
    • +
    • Enum Constant Detail
    • +
    +
  • +
  • +

    Use

    +

    Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.

    +
  • +
  • +

    Tree (Class Hierarchy)

    +

    There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.

    +
      +
    • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
    • +
    • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
    • +
    +
  • +
  • +

    Deprecated API

    +

    The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

    +
  • +
  • +

    Index

    +

    The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

    +
  • +
  • +

    Prev/Next

    +

    These links take you to the next or previous class, interface, package, or related page.

    +
  • +
  • +

    Frames/No Frames

    +

    These links show and hide the HTML frames. All pages are available with or without frames.

    +
  • +
  • +

    All Classes

    +

    The All Classes link shows all classes and interfaces except non-static nested types.

    +
  • +
  • +

    Serialized Form

    +

    Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.

    +
  • +
  • +

    Constant Field Values

    +

    The Constant Field Values page lists the static final fields and their values.

    +
  • +
+This help file applies to API documentation generated using the standard doclet.
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/index-all.html b/javadoc/index-all.html new file mode 100644 index 0000000..5a6302d --- /dev/null +++ b/javadoc/index-all.html @@ -0,0 +1,5212 @@ + + + + + + +Index (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I J K L M N O P R S T U V W _  + + +

A

+
+
AbstractBaseGraph<V,E> - Class in org.jgrapht.graph
+
+
The most general implementation of the Graph interface.
+
+
AbstractBaseGraph(EdgeFactory<V, E>, boolean, boolean) - Constructor for class org.jgrapht.graph.AbstractBaseGraph
+
+
Construct a new graph.
+
+
AbstractBaseGraph.DirectedEdgeContainer<VV,EE> - Class in org.jgrapht.graph
+
+
A container for vertex edges.
+
+
AbstractBaseGraph.DirectedSpecifics - Class in org.jgrapht.graph
+
+
.
+
+
AbstractBaseGraph.DirectedSpecifics() - Constructor for class org.jgrapht.graph.AbstractBaseGraph.DirectedSpecifics
+
 
+
AbstractBaseGraph.DirectedSpecifics(Map<V, AbstractBaseGraph.DirectedEdgeContainer<V, E>>) - Constructor for class org.jgrapht.graph.AbstractBaseGraph.DirectedSpecifics
+
 
+
AbstractBaseGraph.UndirectedSpecifics - Class in org.jgrapht.graph
+
+
.
+
+
AbstractBaseGraph.UndirectedSpecifics() - Constructor for class org.jgrapht.graph.AbstractBaseGraph.UndirectedSpecifics
+
 
+
AbstractBaseGraph.UndirectedSpecifics(Map<V, AbstractBaseGraph.UndirectedEdgeContainer<V, E>>) - Constructor for class org.jgrapht.graph.AbstractBaseGraph.UndirectedSpecifics
+
 
+
AbstractGraph<V,E> - Class in org.jgrapht.graph
+
+
A skeletal implementation of the Graph interface, to minimize the + effort required to implement graph interfaces.
+
+
AbstractGraph() - Constructor for class org.jgrapht.graph.AbstractGraph
+
+
Construct a new empty graph object.
+
+
AbstractGraphBuilder<V,E,G extends Graph<V,E>,B extends AbstractGraphBuilder<V,E,G,B>> - Class in org.jgrapht.graph.builder
+
+
Base class for builders of Graph
+
+
AbstractGraphBuilder(G) - Constructor for class org.jgrapht.graph.builder.AbstractGraphBuilder
+
+
Creates a builder based on baseGraph.
+
+
AbstractGraphIterator<V,E> - Class in org.jgrapht.traverse
+
+
An empty implementation of a graph iterator to minimize the effort required + to implement graph iterators.
+
+
AbstractGraphIterator() - Constructor for class org.jgrapht.traverse.AbstractGraphIterator
+
 
+
active - Variable in class org.jgrapht.alg.StoerWagnerMinimumCut.VertexAndWeight
+
 
+
addAllEdges(Graph<? super V, ? super E>, Graph<V, E>, Collection<? extends E>) - Static method in class org.jgrapht.Graphs
+
+
Adds a subset of the edges of the specified source graph to the specified + destination graph.
+
+
addAllVertices(Graph<? super V, ? super E>, Collection<? extends V>) - Static method in class org.jgrapht.Graphs
+
+
Adds all of the specified vertices to the destination graph.
+
+
addDagEdge(V, V) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph
+
+
Adds the given edge and updates the internal topological order for + consistency IFF + + + there is not already an edge (fromVertex, toVertex) in the graph + the edge does not induce a cycle in the graph +
+
+
addDagEdge(V, V, E) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph
+
+
Adds the given edge and updates the internal topological order for + consistency IFF + + + the given edge is not already a member of the graph + there is not already an edge (fromVertex, toVertex) in the graph + the edge does not induce a cycle in the graph +
+
+
addEdge(V, V) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph
+
+
identical to DirectedAcyclicGraph.addDagEdge(Object, Object), except an unchecked + IllegalArgumentException is thrown if a cycle would have been + induced by this edge
+
+
addEdge(V, V, E) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph
+
+
identical to DirectedAcyclicGraph.addDagEdge(Object, Object, Object), except an + unchecked IllegalArgumentException is thrown if a cycle would + have been induced by this edge
+
+
addEdge(V, V) - Method in class org.jgrapht.experimental.GraphSquare
+
 
+
addEdge(V, V, E) - Method in class org.jgrapht.experimental.GraphSquare
+
 
+
addEdge(V, V) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
addEdge(V, V, E) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
addEdge(V, V) - Method in interface org.jgrapht.Graph
+
+
Creates a new edge in this graph, going from the source vertex to the + target vertex, and returns the created edge.
+
+
addEdge(V, V, E) - Method in interface org.jgrapht.Graph
+
+
Adds the specified edge to this graph, going from the source vertex to + the target vertex.
+
+
addEdge(V, V) - Method in class org.jgrapht.graph.AsUndirectedGraph
+
 
+
addEdge(V, V, E) - Method in class org.jgrapht.graph.AsUndirectedGraph
+
 
+
addEdge(V, V) - Method in class org.jgrapht.graph.builder.AbstractGraphBuilder
+
+
Adds an edge to the graph being built.
+
+
addEdge(V, V, double) - Method in class org.jgrapht.graph.builder.DirectedWeightedGraphBuilderBase
+
+
Adds an weighted edge to the graph being built.
+
+
addEdge(V, V, double) - Method in class org.jgrapht.graph.builder.UndirectedWeightedGraphBuilderBase
+
+
Adds an weighted edge to the graph being built.
+
+
addEdge(V, V) - Method in class org.jgrapht.graph.DefaultListenableGraph
+
 
+
addEdge(V, V, E) - Method in class org.jgrapht.graph.DefaultListenableGraph
+
 
+
addEdge(V, V) - Method in class org.jgrapht.graph.EdgeReversedGraph
+
 
+
addEdge(V, V, E) - Method in class org.jgrapht.graph.EdgeReversedGraph
+
 
+
addEdge(V, V) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
addEdge(V, V, E) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
addEdge(V, V) - Method in class org.jgrapht.graph.GraphUnion
+
+
Throws UnsupportedOperationException, because + GraphUnion is read-only.
+
+
addEdge(V, V, E) - Method in class org.jgrapht.graph.GraphUnion
+
+
Throws UnsupportedOperationException, because + GraphUnion is read-only.
+
+
addEdge(V, V) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
addEdge(V, V, E) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
addEdge(V, V, E) - Method in class org.jgrapht.graph.ParanoidGraph
+
 
+
addEdge(V, V) - Method in class org.jgrapht.graph.Subgraph
+
 
+
addEdge(V, V, E) - Method in class org.jgrapht.graph.Subgraph
+
 
+
addEdge(V, V) - Method in class org.jgrapht.graph.UnmodifiableGraph
+
 
+
addEdge(V, V, E) - Method in class org.jgrapht.graph.UnmodifiableGraph
+
 
+
addEdge(Graph<V, E>, V, V, double) - Static method in class org.jgrapht.Graphs
+
+
Creates a new edge and adds it to the specified graph similarly to the + Graph.addEdge(Object, Object) method.
+
+
addEdgeChain(V, V, V...) - Method in class org.jgrapht.graph.builder.AbstractGraphBuilder
+
+
Adds a chain of edges to the graph being built.
+
+
addEdges(Graph, List, List, int) - Static method in class org.jgrapht.experimental.RandomGraphHelper
+
 
+
addEdgeToTouchingVertices(E) - Method in class org.jgrapht.graph.AbstractBaseGraph.DirectedSpecifics
+
 
+
addEdgeToTouchingVertices(E) - Method in class org.jgrapht.graph.AbstractBaseGraph.UndirectedSpecifics
+
 
+
addEdgeWithVertices(Graph<V, E>, V, V) - Static method in class org.jgrapht.Graphs
+
+
Adds the specified source and target vertices to the graph, if not + already included, and creates a new edge and adds it to the specified + graph similarly to the Graph.addEdge(Object, Object) method.
+
+
addEdgeWithVertices(Graph<V, E>, Graph<V, E>, E) - Static method in class org.jgrapht.Graphs
+
+
Adds the specified edge to the graph, including its vertices if not + already included.
+
+
addEdgeWithVertices(Graph<V, E>, V, V, double) - Static method in class org.jgrapht.Graphs
+
+
Adds the specified source and target vertices to the graph, if not + already included, and creates a new weighted edge and adds it to the + specified graph similarly to the Graph.addEdge(Object, Object) + method.
+
+
addElement(T) - Method in class org.jgrapht.alg.util.UnionFind
+
+
Adds a new element to the data structure in its own set.
+
+
addGraph(Graph<? extends V, ? extends E>) - Method in class org.jgrapht.graph.builder.AbstractGraphBuilder
+
+
Adds all the vertices and all the edges of the sourceGraph to the + graph being built.
+
+
addGraph(Graph<? super V, ? super E>, Graph<V, E>) - Static method in class org.jgrapht.Graphs
+
+
Adds all the vertices and all the edges of the specified source graph to + the specified destination graph.
+
+
addGraphListener(GraphListener<V, E>) - Method in class org.jgrapht.graph.DefaultListenableGraph
+
 
+
addGraphListener(GraphListener<V, E>) - Method in interface org.jgrapht.ListenableGraph
+
+
Adds the specified graph listener to this graph, if not already present.
+
+
addGraphReversed(DirectedGraph<? super V, ? super E>, DirectedGraph<V, E>) - Static method in class org.jgrapht.Graphs
+
+
Adds all the vertices and all the edges of the specified source digraph + to the specified destination digraph, reversing all of the edges.
+
+
addIncomingEdge(EE) - Method in class org.jgrapht.graph.AbstractBaseGraph.DirectedEdgeContainer
+
+
.
+
+
addOutgoingEdge(EE) - Method in class org.jgrapht.graph.AbstractBaseGraph.DirectedEdgeContainer
+
+
.
+
+
addTraversalListener(TraversalListener<V, E>) - Method in class org.jgrapht.traverse.AbstractGraphIterator
+
+
Adds the specified traversal listener to this iterator.
+
+
addTraversalListener(TraversalListener<V, E>) - Method in interface org.jgrapht.traverse.GraphIterator
+
+
Adds the specified traversal listener to this iterator.
+
+
addVertex(V) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph
+
+
adds the vertex if it wasn't already in the graph, and puts it at the top + of the internal topological vertex ordering
+
+
addVertex(V, boolean) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph
+
+
adds the vertex if it wasn't already in the graph, and puts it either at + the top or the bottom of the topological ordering, depending on the value + of addToTop.
+
+
addVertex(V) - Method in class org.jgrapht.experimental.GraphSquare
+
 
+
addVertex(V) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
addVertex(V) - Method in class org.jgrapht.graph.AbstractBaseGraph.DirectedSpecifics
+
 
+
addVertex(V) - Method in class org.jgrapht.graph.AbstractBaseGraph.UndirectedSpecifics
+
 
+
addVertex(V) - Method in interface org.jgrapht.Graph
+
+
Adds the specified vertex to this graph if not already present.
+
+
addVertex(V) - Method in class org.jgrapht.graph.builder.AbstractGraphBuilder
+
+
Adds vertex to the graph being built.
+
+
addVertex(V) - Method in class org.jgrapht.graph.DefaultListenableGraph
+
 
+
addVertex(V) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
addVertex(V) - Method in class org.jgrapht.graph.GraphUnion
+
+
Throws UnsupportedOperationException, because + GraphUnion is read-only.
+
+
addVertex(V) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
addVertex(V) - Method in class org.jgrapht.graph.ParanoidGraph
+
 
+
addVertex(V) - Method in class org.jgrapht.graph.Subgraph
+
+
Adds the specified vertex to this subgraph.
+
+
addVertex(V) - Method in class org.jgrapht.graph.UnmodifiableGraph
+
 
+
addVertexSetListener(VertexSetListener<V>) - Method in class org.jgrapht.graph.DefaultListenableGraph
+
 
+
addVertexSetListener(VertexSetListener<V>) - Method in interface org.jgrapht.ListenableGraph
+
+
Adds the specified vertex set listener to this graph, if not already + present.
+
+
addVertices(Graph, VertexFactory, int) - Static method in class org.jgrapht.experimental.RandomGraphHelper
+
+
.
+
+
addVertices(V...) - Method in class org.jgrapht.graph.builder.AbstractGraphBuilder
+
+
Adds each vertex of vertices to the graph being built.
+
+
admissibleHeuristic - Variable in class org.jgrapht.alg.AStarShortestPath
+
 
+
AllDirectedPaths<V,E> - Class in org.jgrapht.alg
+
+
A Dijkstra-like algorithm to find all paths between two sets of nodes in a + directed graph, with options to search only simple paths and to limit the + path length.
+
+
AllDirectedPaths(DirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.AllDirectedPaths
+
 
+
AlwaysEqualComparator<T> - Class in org.jgrapht.alg.util
+
+
A default implementation for a check on equality (that always holds)
+
+
AlwaysEqualComparator() - Constructor for class org.jgrapht.alg.util.AlwaysEqualComparator
+
 
+
ApproximationAlgorithm<ResultType,V> - Interface in org.jgrapht.experimental.alg
+
 
+
ArrayUnenforcedSet<E> - Class in org.jgrapht.util
+
+
Helper for efficiently representing small sets whose elements are known to be + unique by construction, implying we don't need to enforce the uniqueness + property in the data structure itself.
+
+
ArrayUnenforcedSet() - Constructor for class org.jgrapht.util.ArrayUnenforcedSet
+
 
+
ArrayUnenforcedSet(Collection<? extends E>) - Constructor for class org.jgrapht.util.ArrayUnenforcedSet
+
 
+
ArrayUnenforcedSet(int) - Constructor for class org.jgrapht.util.ArrayUnenforcedSet
+
 
+
assertVertexExist(V) - Method in class org.jgrapht.graph.AbstractGraph
+
+
Ensures that the specified vertex exists in this graph, or else throws + exception.
+
+
AStarAdmissibleHeuristic<V> - Interface in org.jgrapht.alg.interfaces
+
+
Interface for an admissible heuristic used in A* search.
+
+
AStarShortestPath<V,E> - Class in org.jgrapht.alg
+
+
An implementation of A* shortest path + algorithm.
+
+
AStarShortestPath(Graph<V, E>) - Constructor for class org.jgrapht.alg.AStarShortestPath
+
 
+
AsUndirectedGraph<V,E> - Class in org.jgrapht.graph
+
+
An undirected view of the backing directed graph specified in the + constructor.
+
+
AsUndirectedGraph(DirectedGraph<V, E>) - Constructor for class org.jgrapht.graph.AsUndirectedGraph
+
+
Constructor for AsUndirectedGraph.
+
+
AsUnweightedDirectedGraph<V,E> - Class in org.jgrapht.graph
+
+
An unweighted view of the backing weighted graph specified in the + constructor.
+
+
AsUnweightedDirectedGraph(DirectedGraph<V, E>) - Constructor for class org.jgrapht.graph.AsUnweightedDirectedGraph
+
+
Constructor for AsUnweightedGraph.
+
+
AsUnweightedGraph<V,E> - Class in org.jgrapht.graph
+
+
An unweighted view of the backing weighted graph specified in the + constructor.
+
+
AsUnweightedGraph(Graph<V, E>) - Constructor for class org.jgrapht.graph.AsUnweightedGraph
+
+
Constructor for AsUnweightedGraph.
+
+
AsWeightedDirectedGraph<V,E> - Class in org.jgrapht.graph
+
+
A weighted view of the backing graph specified in the constructor.
+
+
AsWeightedDirectedGraph(DirectedGraph<V, E>, Map<E, Double>) - Constructor for class org.jgrapht.graph.AsWeightedDirectedGraph
+
+
Constructor for AsWeightedGraph.
+
+
AsWeightedGraph<V,E> - Class in org.jgrapht.graph
+
+
A weighted view of the backing graph specified in the constructor.
+
+
AsWeightedGraph(Graph<V, E>, Map<E, Double>) - Constructor for class org.jgrapht.graph.AsWeightedGraph
+
+
Constructor for AsWeightedGraph.
+
+
+ + + +

B

+
+
BEFORE_EDGE_ADDED - Static variable in class org.jgrapht.event.GraphEdgeChangeEvent
+
+
Before edge added event.
+
+
BEFORE_EDGE_REMOVED - Static variable in class org.jgrapht.event.GraphEdgeChangeEvent
+
+
Before edge removed event.
+
+
BEFORE_VERTEX_ADDED - Static variable in class org.jgrapht.event.GraphVertexChangeEvent
+
+
Before vertex added event.
+
+
BEFORE_VERTEX_REMOVED - Static variable in class org.jgrapht.event.GraphVertexChangeEvent
+
+
Before vertex removed event.
+
+
BellmanFordShortestPath<V,E> - Class in org.jgrapht.alg
+
+
Bellman-Ford + algorithm: weights could be negative, paths could be constrained by a + maximum number of edges.
+
+
BellmanFordShortestPath(Graph<V, E>, V) - Constructor for class org.jgrapht.alg.BellmanFordShortestPath
+
+
Creates an object to calculate shortest paths between the start vertex + and others vertices using the Bellman-Ford algorithm.
+
+
BellmanFordShortestPath(Graph<V, E>, V, int) - Constructor for class org.jgrapht.alg.BellmanFordShortestPath
+
+
Creates an object to calculate shortest paths between the start vertex + and others vertices using the Bellman-Ford algorithm.
+
+
BellmanFordShortestPath(Graph<V, E>, V, int, double) - Constructor for class org.jgrapht.alg.BellmanFordShortestPath
+
+
Creates an object to calculate shortest paths between the start vertex + and others vertices using the Bellman-Ford algorithm.
+
+
BEST_ORDER - Static variable in class org.jgrapht.experimental.alg.color.GreedyColoring
+
 
+
bestCut - Variable in class org.jgrapht.alg.StoerWagnerMinimumCut
+
 
+
bestCutWeight - Variable in class org.jgrapht.alg.StoerWagnerMinimumCut
+
 
+
BiconnectivityInspector<V,E> - Class in org.jgrapht.alg
+
+
Inspects a graph for the biconnectivity property.
+
+
BiconnectivityInspector(UndirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.BiconnectivityInspector
+
+
Running time = O(m) where m is the number of edges.
+
+
BlockCutpointGraph<V,E> - Class in org.jgrapht.alg
+
+
Definition of a block of a + graph in MathWorld.
+ Definition and lemma taken from the article + Structure-Based Resilience Metrics for Service-Oriented Networks: + + + Definition 4.5 Let G(V; E) be a connected undirected graph.
+
+
BlockCutpointGraph(UndirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.BlockCutpointGraph
+
+
Running time = O(m) where m is the number of edges.
+
+
BreadthFirstIterator<V,E> - Class in org.jgrapht.traverse
+
+
A breadth-first iterator for a directed and an undirected graph.
+
+
BreadthFirstIterator(Graph<V, E>) - Constructor for class org.jgrapht.traverse.BreadthFirstIterator
+
+
Creates a new breadth-first iterator for the specified graph.
+
+
BreadthFirstIterator(Graph<V, E>, V) - Constructor for class org.jgrapht.traverse.BreadthFirstIterator
+
+
Creates a new breadth-first iterator for the specified graph.
+
+
BronKerboschCliqueFinder<V,E> - Class in org.jgrapht.alg
+
+
This class implements Bron-Kerbosch clique detection algorithm as it is + described in [Samudrala R.,Moult J.:A Graph-theoretic Algorithm for + comparative Modeling of Protein Structure; J.Mol.
+
+
BronKerboschCliqueFinder(Graph<V, E>) - Constructor for class org.jgrapht.alg.BronKerboschCliqueFinder
+
+
Creates a new clique finder.
+
+
BrownBacktrackColoring<V,E> - Class in org.jgrapht.experimental.alg.color
+
 
+
BrownBacktrackColoring(Graph<V, E>) - Constructor for class org.jgrapht.experimental.alg.color.BrownBacktrackColoring
+
 
+
build() - Method in class org.jgrapht.graph.builder.AbstractGraphBuilder
+
+
Build the graph.
+
+
buildEdge(V, V, String, Map<String, String>) - Method in interface org.jgrapht.ext.EdgeProvider
+
+
Construct an edge
+
+
builder(Class<? extends E>) - Static method in class org.jgrapht.graph.DefaultDirectedGraph
+
 
+
builder(EdgeFactory<V, E>) - Static method in class org.jgrapht.graph.DefaultDirectedGraph
+
 
+
builder(Class<? extends E>) - Static method in class org.jgrapht.graph.DefaultDirectedWeightedGraph
+
 
+
builder(EdgeFactory<V, E>) - Static method in class org.jgrapht.graph.DefaultDirectedWeightedGraph
+
 
+
builder(Class<? extends E>) - Static method in class org.jgrapht.graph.DirectedMultigraph
+
 
+
builder(EdgeFactory<V, E>) - Static method in class org.jgrapht.graph.DirectedMultigraph
+
 
+
builder(Class<? extends E>) - Static method in class org.jgrapht.graph.DirectedPseudograph
+
 
+
builder(EdgeFactory<V, E>) - Static method in class org.jgrapht.graph.DirectedPseudograph
+
 
+
builder(Class<? extends E>) - Static method in class org.jgrapht.graph.DirectedWeightedMultigraph
+
 
+
builder(EdgeFactory<V, E>) - Static method in class org.jgrapht.graph.DirectedWeightedMultigraph
+
 
+
builder(Class<? extends E>) - Static method in class org.jgrapht.graph.DirectedWeightedPseudograph
+
 
+
builder(EdgeFactory<V, E>) - Static method in class org.jgrapht.graph.DirectedWeightedPseudograph
+
 
+
builder(Class<? extends E>) - Static method in class org.jgrapht.graph.Multigraph
+
 
+
builder(EdgeFactory<V, E>) - Static method in class org.jgrapht.graph.Multigraph
+
 
+
builder(Class<? extends E>) - Static method in class org.jgrapht.graph.Pseudograph
+
 
+
builder(EdgeFactory<V, E>) - Static method in class org.jgrapht.graph.Pseudograph
+
 
+
builder(Class<? extends E>) - Static method in class org.jgrapht.graph.SimpleDirectedGraph
+
 
+
builder(EdgeFactory<V, E>) - Static method in class org.jgrapht.graph.SimpleDirectedGraph
+
 
+
builder(Class<? extends E>) - Static method in class org.jgrapht.graph.SimpleDirectedWeightedGraph
+
 
+
builder(EdgeFactory<V, E>) - Static method in class org.jgrapht.graph.SimpleDirectedWeightedGraph
+
 
+
builder(Class<? extends E>) - Static method in class org.jgrapht.graph.SimpleGraph
+
 
+
builder(EdgeFactory<V, E>) - Static method in class org.jgrapht.graph.SimpleGraph
+
 
+
builder(Class<? extends E>) - Static method in class org.jgrapht.graph.SimpleWeightedGraph
+
 
+
builder(EdgeFactory<V, E>) - Static method in class org.jgrapht.graph.SimpleWeightedGraph
+
 
+
builder(Class<? extends E>) - Static method in class org.jgrapht.graph.WeightedMultigraph
+
 
+
builder(EdgeFactory<V, E>) - Static method in class org.jgrapht.graph.WeightedMultigraph
+
 
+
builder(Class<? extends E>) - Static method in class org.jgrapht.graph.WeightedPseudograph
+
 
+
builder(EdgeFactory<V, E>) - Static method in class org.jgrapht.graph.WeightedPseudograph
+
 
+
buildMatching() - Method in class org.jgrapht.alg.KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation
+
+
Gets costs-matrix as input and returns assignment of tasks + (designated by the columns of cost-matrix) to the workers (designated + by the rows of the cost-matrix) so that to MINIMIZE total + tasks-tackling costs
+
+
buildMaximumFlow(V, V) - Method in class org.jgrapht.alg.EdmondsKarpMaximumFlow
+
+
Deprecated.
+
buildMaximumFlow(V, V) - Method in class org.jgrapht.alg.flow.EdmondsKarpMaximumFlow
+
+
Sets current source to source, current sink to sink, + then calculates maximum flow from source to sink.
+
+
buildMaximumFlow(V, V) - Method in class org.jgrapht.alg.flow.PushRelabelMaximumFlow
+
 
+
buildMaximumFlow(V, V) - Method in interface org.jgrapht.alg.interfaces.MaximumFlowAlgorithm
+
+
Builds maximum flow for the supplied network flow, for the supplied + ${source} and ${sink}
+
+
buildUnmodifiable() - Method in class org.jgrapht.graph.builder.AbstractGraphBuilder
+
+
Build an unmodifiable version graph.
+
+
buildUnmodifiable() - Method in class org.jgrapht.graph.builder.DirectedGraphBuilderBase
+
 
+
buildUnmodifiable() - Method in class org.jgrapht.graph.builder.UndirectedGraphBuilderBase
+
 
+
buildVertex(String, Map<String, String>) - Method in interface org.jgrapht.ext.VertexProvider
+
+
Create a vertex
+
+
+ + + +

C

+
+
calculate(V, V, V) - Method in class org.jgrapht.alg.TarjanLowestCommonAncestor
+
+
Calculate the LCM between a and b treating + start as the root we want to search from.
+
+
calculate(V, List<TarjanLowestCommonAncestor.LcaRequestResponse<V>>) - Method in class org.jgrapht.alg.TarjanLowestCommonAncestor
+
+
Calculate the LCMs between a set of pairs (a and + b) treating start as the root we want to search from, + and setting the LCA of each pair in its LCA field
+
+
calculateMaximumFlow(V, V) - Method in class org.jgrapht.alg.EdmondsKarpMaximumFlow
+
+
Deprecated.
+
Sets current source to source, current sink to sink, + then calculates maximum flow from source to sink.
+
+
cameFrom - Variable in class org.jgrapht.alg.AStarShortestPath
+
 
+
cascadingCut(FibonacciHeapNode<T>) - Method in class org.jgrapht.util.FibonacciHeap
+
+
Performs a cascading cut operation.
+
+
CENTER_VERTEX - Static variable in class org.jgrapht.generate.StarGraphGenerator
+
 
+
ChromaticNumber - Class in org.jgrapht.alg
+
+
Allows the + chromatic number of a graph to be calculated.
+
+
ChromaticNumber() - Constructor for class org.jgrapht.alg.ChromaticNumber
+
 
+
ClassBasedEdgeFactory<V,E> - Class in org.jgrapht.graph
+
+
An EdgeFactory for producing edges by using a class as a factory.
+
+
ClassBasedEdgeFactory(Class<? extends E>) - Constructor for class org.jgrapht.graph.ClassBasedEdgeFactory
+
 
+
ClassBasedVertexFactory<V> - Class in org.jgrapht.graph
+
+
A VertexFactory for producing vertices by using a class as a factory.
+
+
ClassBasedVertexFactory(Class<? extends V>) - Constructor for class org.jgrapht.graph.ClassBasedVertexFactory
+
 
+
clear() - Method in class org.jgrapht.ext.IntegerEdgeNameProvider
+
+
Clears all cached identifiers, and resets the unique identifier counter.
+
+
clear() - Method in class org.jgrapht.ext.IntegerNameProvider
+
+
Clears all cached identifiers, and resets the unique identifier counter.
+
+
clear() - Method in class org.jgrapht.util.FibonacciHeap
+
+
Removes all elements from this heap.
+
+
clearVisited(int) - Method in interface org.jgrapht.experimental.dag.DirectedAcyclicGraph.Visited
+
+
Clear the visited state of the given topological index
+
+
clearVisited(int) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayImpl
+
 
+
clearVisited(int) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayListImpl
+
 
+
clearVisited(int) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedBitSetImpl
+
 
+
clearVisited(int) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedHashSetImpl
+
 
+
CliqueMinimalSeparatorDecomposition<V,E> - Class in org.jgrapht.alg
+
+
Clique Minimal Separator Decomposition using MCS-M+ and Atoms algorithm as + described in Berry et al.
+
+
CliqueMinimalSeparatorDecomposition(UndirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.CliqueMinimalSeparatorDecomposition
+
+
Setup a clique minimal separator decomposition on undirected graph + g.
+
+
clone() - Method in class org.jgrapht.graph.AbstractBaseGraph
+
+
Returns a shallow copy of this graph instance.
+
+
clone() - Method in class org.jgrapht.graph.DefaultListenableGraph
+
 
+
closedList - Variable in class org.jgrapht.alg.AStarShortestPath
+
 
+
closeSimpleDirectedGraph(SimpleDirectedGraph<V, E>) - Method in class org.jgrapht.alg.TransitiveClosure
+
+
Computes the transitive closure of the given graph.
+
+
ClosestFirstIterator<V,E> - Class in org.jgrapht.traverse
+
+
A closest-first iterator for a directed or undirected graph.
+
+
ClosestFirstIterator(Graph<V, E>) - Constructor for class org.jgrapht.traverse.ClosestFirstIterator
+
+
Creates a new closest-first iterator for the specified graph.
+
+
ClosestFirstIterator(Graph<V, E>, V) - Constructor for class org.jgrapht.traverse.ClosestFirstIterator
+
+
Creates a new closest-first iterator for the specified graph.
+
+
ClosestFirstIterator(Graph<V, E>, V, double) - Constructor for class org.jgrapht.traverse.ClosestFirstIterator
+
+
Creates a new radius-bounded closest-first iterator for the specified + graph.
+
+
combine(double, double) - Method in interface org.jgrapht.util.WeightCombiner
+
+
Combines two weights.
+
+
compare(T, T) - Method in class org.jgrapht.alg.util.AlwaysEqualComparator
+
 
+
compare(V, V) - Method in class org.jgrapht.alg.util.VertexDegreeComparator
+
+
Compare the degrees of v1 and v2, taking into + account whether ascending or descending order is used.
+
+
compareFlowTo(double, double) - Method in class org.jgrapht.alg.flow.MaximumFlowAlgorithmBase
+
 
+
compareTo(StoerWagnerMinimumCut<V, E>.VertexAndWeight) - Method in class org.jgrapht.alg.StoerWagnerMinimumCut.VertexAndWeight
+
+
compareTo that sorts in reverse order because we need extract-max and + queue provides extract-min.
+
+
compareTo(ModifiableInteger) - Method in class org.jgrapht.util.ModifiableInteger
+
+
Compares two ModifiableInteger objects numerically.
+
+
CompleteBipartiteGraphGenerator<V,E> - Class in org.jgrapht.generate
+
+
Generates a complete + bipartite graph of any size.
+
+
CompleteBipartiteGraphGenerator(int, int) - Constructor for class org.jgrapht.generate.CompleteBipartiteGraphGenerator
+
+
Creates a new CompleteBipartiteGraphGenerator object.
+
+
CompleteGraphDemo - Class in org.jgrapht.demo
+
 
+
CompleteGraphDemo() - Constructor for class org.jgrapht.demo.CompleteGraphDemo
+
 
+
CompleteGraphGenerator<V,E> - Class in org.jgrapht.generate
+
+
Generates a complete graph of any size.
+
+
CompleteGraphGenerator(int) - Constructor for class org.jgrapht.generate.CompleteGraphGenerator
+
+
Construct a new CompleteGraphGenerator.
+
+
ComponentAttributeProvider<T> - Interface in org.jgrapht.ext
+
+
Provides display attributes for vertices and/or edges in a graph.
+
+
composeFlow() - Method in class org.jgrapht.alg.flow.MaximumFlowAlgorithmBase
+
 
+
computeMinCut(V, V) - Method in class org.jgrapht.alg.MinSourceSinkCut
+
+
Compute a minimum s-t cut
+
+
CONNECTED_COMPONENT_FINISHED - Static variable in class org.jgrapht.event.ConnectedComponentTraversalEvent
+
+
Connected component traversal finished event.
+
+
CONNECTED_COMPONENT_STARTED - Static variable in class org.jgrapht.event.ConnectedComponentTraversalEvent
+
+
Connected component traversal started event.
+
+
connectedComponentFinished(ConnectedComponentTraversalEvent) - Method in interface org.jgrapht.event.TraversalListener
+
+
Called to inform listeners that the traversal of the current connected + component has finished.
+
+
connectedComponentFinished(ConnectedComponentTraversalEvent) - Method in class org.jgrapht.event.TraversalListenerAdapter
+
 
+
connectedComponentStarted(ConnectedComponentTraversalEvent) - Method in interface org.jgrapht.event.TraversalListener
+
+
Called to inform listeners that a traversal of a new connected component + has started.
+
+
connectedComponentStarted(ConnectedComponentTraversalEvent) - Method in class org.jgrapht.event.TraversalListenerAdapter
+
 
+
ConnectedComponentTraversalEvent - Class in org.jgrapht.event
+
+
A traversal event with respect to a connected component.
+
+
ConnectedComponentTraversalEvent(Object, int) - Constructor for class org.jgrapht.event.ConnectedComponentTraversalEvent
+
+
Creates a new ConnectedComponentTraversalEvent.
+
+
connectedSetOf(V) - Method in class org.jgrapht.alg.ConnectivityInspector
+
+
Returns a set of all vertices that are in the maximally connected + component together with the specified vertex.
+
+
connectedSets() - Method in class org.jgrapht.alg.ConnectivityInspector
+
+
Returns a list of Set s, where each set contains all + vertices that are in the same maximally connected component.
+
+
ConnectivityInspector<V,E> - Class in org.jgrapht.alg
+
+
Allows obtaining various connectivity aspects of a graph.
+
+
ConnectivityInspector(UndirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.ConnectivityInspector
+
+
Creates a connectivity inspector for the specified undirected graph.
+
+
ConnectivityInspector(DirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.ConnectivityInspector
+
+
Creates a connectivity inspector for the specified directed graph.
+
+
consolidate() - Method in class org.jgrapht.util.FibonacciHeap
+
 
+
containsEdge(E) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
containsEdge(V, V) - Method in class org.jgrapht.graph.AbstractGraph
+
 
+
containsEdge(V, V) - Method in interface org.jgrapht.Graph
+
+
Returns true if and only if this graph contains an edge going + from the source vertex to the target vertex.
+
+
containsEdge(E) - Method in interface org.jgrapht.Graph
+
+
Returns true if this graph contains the specified edge.
+
+
containsEdge(E) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
containsEdge(E) - Method in class org.jgrapht.graph.GraphUnion
+
 
+
containsEdge(E) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
containsEdge(E) - Method in class org.jgrapht.graph.Subgraph
+
 
+
containsVertex(V) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
containsVertex(V) - Method in interface org.jgrapht.Graph
+
+
Returns true if this graph contains the specified vertex.
+
+
containsVertex(V) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
containsVertex(V) - Method in class org.jgrapht.graph.GraphUnion
+
 
+
containsVertex(V) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
containsVertex(V) - Method in class org.jgrapht.graph.Subgraph
+
 
+
CORNER_VERTEX - Static variable in class org.jgrapht.generate.GridGraphGenerator
+
+
Role for the vertices at the corners.
+
+
countSimpleCycles() - Method in class org.jgrapht.alg.cycle.HawickJamesSimpleCycles
+
+
Count the number of simple cycles.
+
+
create() - Method in interface org.jgrapht.alg.util.Extension.ExtensionFactory
+
 
+
createDefaultEdgeAttributes(Graph<V, E>) - Static method in class org.jgrapht.ext.JGraphModelAdapter
+
+
Creates and returns a map of attributes to be used as defaults for edge + attributes, depending on the specified graph.
+
+
createDefaultVertexAttributes() - Static method in class org.jgrapht.ext.JGraphModelAdapter
+
+
Creates and returns a map of attributes to be used as defaults for vertex + attributes.
+
+
createDirectedSpecifics() - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
createEdge(V, V) - Method in interface org.jgrapht.EdgeFactory
+
+
Creates a new edge whose endpoints are the specified source and target + vertices.
+
+
createEdge(V, V) - Method in class org.jgrapht.graph.ClassBasedEdgeFactory
+
 
+
createEdgeCell(EE) - Method in interface org.jgrapht.ext.JGraphModelAdapter.CellFactory
+
+
Creates an edge cell that contains its respective JGraphT edge.
+
+
createEdgeCell(EE) - Method in class org.jgrapht.ext.JGraphModelAdapter.DefaultCellFactory
+
 
+
createEdges(Graph<VV, EE>, Map<Integer, VV>, int, Random) - Method in class org.jgrapht.generate.RandomGraphGenerator.DefaultEdgeTopologyFactory
+
 
+
createEdges(Graph<VV, EE>, Map<Integer, VV>, int, Random) - Method in interface org.jgrapht.generate.RandomGraphGenerator.EdgeTopologyFactory
+
+
Two different calls to the createEdges() with the same parameters + must result in the generation of the same.
+
+
createEdgeSet(V) - Method in interface org.jgrapht.graph.EdgeSetFactory
+
+
Create a new edge set for a particular vertex.
+
+
createInstance() - Method in class org.jgrapht.alg.util.Extension
+
 
+
createUndirectedSpecifics() - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
createVertex() - Method in class org.jgrapht.graph.ClassBasedVertexFactory
+
 
+
createVertex() - Method in interface org.jgrapht.VertexFactory
+
+
Creates a new vertex.
+
+
createVertexCell(VV) - Method in interface org.jgrapht.ext.JGraphModelAdapter.CellFactory
+
+
Creates a vertex cell that contains its respective JGraphT vertex.
+
+
createVertexCell(VV) - Method in class org.jgrapht.ext.JGraphModelAdapter.DefaultCellFactory
+
 
+
CrossComponentIterator<V,E,D> - Class in org.jgrapht.traverse
+
+
Provides a cross-connected-component traversal functionality for iterator + subclasses.
+
+
CrossComponentIterator(Graph<V, E>, V) - Constructor for class org.jgrapht.traverse.CrossComponentIterator
+
+
Creates a new iterator for the specified graph.
+
+
CrossComponentIterator.VisitColor - Enum in org.jgrapht.traverse
+
+
Standard vertex visit state enumeration.
+
+
cut(FibonacciHeapNode<T>, FibonacciHeapNode<T>) - Method in class org.jgrapht.util.FibonacciHeap
+
+
The reverse of the link operation: removes x from the child list of y.
+
+
CycleDetector<V,E> - Class in org.jgrapht.alg
+
+
Performs cycle detection on a graph.
+
+
CycleDetector(DirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.CycleDetector
+
+
Creates a cycle detector for the specified graph.
+
+
+ + + +

D

+
+
decreaseKey(FibonacciHeapNode<T>, double) - Method in class org.jgrapht.util.FibonacciHeap
+
+
Decreases the key value for a heap node, given the new value to take on.
+
+
decrement() - Method in class org.jgrapht.util.ModifiableInteger
+
+
Subtracts one from the value of this modifiable integer.
+
+
DEFAULT_EDGE_WEIGHT - Static variable in interface org.jgrapht.WeightedGraph
+
+
The default weight for an edge.
+
+
DEFAULT_EPSILON - Static variable in class org.jgrapht.alg.EdmondsKarpMaximumFlow
+
+
Deprecated.
+
Default tolerance.
+
+
DEFAULT_EPSILON - Static variable in class org.jgrapht.alg.flow.MaximumFlowAlgorithmBase
+
+
Default tolerance.
+
+
DefaultDirectedGraph<V,E> - Class in org.jgrapht.graph
+
+
A directed graph.
+
+
DefaultDirectedGraph(Class<? extends E>) - Constructor for class org.jgrapht.graph.DefaultDirectedGraph
+
+
Creates a new directed graph.
+
+
DefaultDirectedGraph(EdgeFactory<V, E>) - Constructor for class org.jgrapht.graph.DefaultDirectedGraph
+
+
Creates a new directed graph with the specified edge factory.
+
+
DefaultDirectedWeightedGraph<V,E> - Class in org.jgrapht.graph
+
+
A directed weighted graph.
+
+
DefaultDirectedWeightedGraph(Class<? extends E>) - Constructor for class org.jgrapht.graph.DefaultDirectedWeightedGraph
+
+
Creates a new directed weighted graph.
+
+
DefaultDirectedWeightedGraph(EdgeFactory<V, E>) - Constructor for class org.jgrapht.graph.DefaultDirectedWeightedGraph
+
+
Creates a new directed weighted graph with the specified edge factory.
+
+
DefaultEdge - Class in org.jgrapht.graph
+
+
A default implementation for edges in a Graph.
+
+
DefaultEdge() - Constructor for class org.jgrapht.graph.DefaultEdge
+
 
+
DefaultGraphMapping<V,E> - Class in org.jgrapht.graph
+
+
Implementation of the GraphMapping interface.
+
+
DefaultGraphMapping(Map<V, V>, Map<V, V>, Graph<V, E>, Graph<V, E>) - Constructor for class org.jgrapht.graph.DefaultGraphMapping
+
+
The maps themselves are used.
+
+
DefaultListenableGraph<V,E> - Class in org.jgrapht.graph
+
+
A graph backed by the the graph specified at the constructor, which can be + listened by GraphListener s and by + VertexSetListener s.
+
+
DefaultListenableGraph(Graph<V, E>) - Constructor for class org.jgrapht.graph.DefaultListenableGraph
+
+
Creates a new listenable graph.
+
+
DefaultListenableGraph(Graph<V, E>, boolean) - Constructor for class org.jgrapht.graph.DefaultListenableGraph
+
+
Creates a new listenable graph.
+
+
DefaultWeightedEdge - Class in org.jgrapht.graph
+
+
A default implementation for edges in a WeightedGraph.
+
+
DefaultWeightedEdge() - Constructor for class org.jgrapht.graph.DefaultWeightedEdge
+
 
+
degreeOf(V) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
degreeOf(V) - Method in class org.jgrapht.graph.AbstractBaseGraph.DirectedSpecifics
+
 
+
degreeOf(V) - Method in class org.jgrapht.graph.AbstractBaseGraph.UndirectedSpecifics
+
 
+
degreeOf(V) - Method in class org.jgrapht.graph.AsUndirectedGraph
+
 
+
degreeOf(V) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
degreeOf(V) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
degreeOf(V) - Method in class org.jgrapht.graph.UndirectedGraphUnion
+
 
+
degreeOf(V) - Method in class org.jgrapht.graph.UndirectedSubgraph
+
 
+
degreeOf(V) - Method in interface org.jgrapht.UndirectedGraph
+
+
Returns the degree of the specified vertex.
+
+
delete(FibonacciHeapNode<T>) - Method in class org.jgrapht.util.FibonacciHeap
+
+
Deletes a node from the heap given the reference to the node.
+
+
DepthFirstIterator<V,E> - Class in org.jgrapht.traverse
+
+
A depth-first iterator for a directed and an undirected graph.
+
+
DepthFirstIterator(Graph<V, E>) - Constructor for class org.jgrapht.traverse.DepthFirstIterator
+
+
Creates a new depth-first iterator for the specified graph.
+
+
DepthFirstIterator(Graph<V, E>, V) - Constructor for class org.jgrapht.traverse.DepthFirstIterator
+
+
Creates a new depth-first iterator for the specified graph.
+
+
detectCycles() - Method in class org.jgrapht.alg.CycleDetector
+
+
Performs yes/no cycle detection on the entire graph.
+
+
detectCyclesContainingVertex(V) - Method in class org.jgrapht.alg.CycleDetector
+
+
Performs yes/no cycle detection on an individual vertex.
+
+
DijkstraShortestPath<V,E> - Class in org.jgrapht.alg
+
+
An implementation of Dijkstra's + shortest path algorithm using ClosestFirstIterator.
+
+
DijkstraShortestPath(Graph<V, E>, V, V) - Constructor for class org.jgrapht.alg.DijkstraShortestPath
+
+
Creates and executes a new DijkstraShortestPath algorithm instance.
+
+
DijkstraShortestPath(Graph<V, E>, V, V, double) - Constructor for class org.jgrapht.alg.DijkstraShortestPath
+
+
Creates and executes a new DijkstraShortestPath algorithm instance.
+
+
DirectedAcyclicGraph<V,E> - Class in org.jgrapht.experimental.dag
+
+
DirectedAcyclicGraph implements a DAG that can be modified (vertices & + edges added and removed), is guaranteed to remain acyclic, and provides fast + topological order iteration.
+
+
DirectedAcyclicGraph(Class<? extends E>) - Constructor for class org.jgrapht.experimental.dag.DirectedAcyclicGraph
+
 
+
DirectedAcyclicGraph(EdgeFactory<V, E>) - Constructor for class org.jgrapht.experimental.dag.DirectedAcyclicGraph
+
 
+
DirectedAcyclicGraph.CycleFoundException - Exception in org.jgrapht.experimental.dag
+
+
Exception used in dfsF when a cycle is found
+
+
DirectedAcyclicGraph.CycleFoundException() - Constructor for exception org.jgrapht.experimental.dag.DirectedAcyclicGraph.CycleFoundException
+
 
+
DirectedAcyclicGraph.Region - Class in org.jgrapht.experimental.dag
+
+
Region is an *inclusive* range of indices.
+
+
DirectedAcyclicGraph.Region(int, int) - Constructor for class org.jgrapht.experimental.dag.DirectedAcyclicGraph.Region
+
 
+
DirectedAcyclicGraph.TopoOrderMapping<V> - Interface in org.jgrapht.experimental.dag
+
+
For performance tuning, an interface for storing the topological ordering
+
+
DirectedAcyclicGraph.TopoOrderMappingFactory<V> - Interface in org.jgrapht.experimental.dag
+
 
+
DirectedAcyclicGraph.TopoVertexMap - Class in org.jgrapht.experimental.dag
+
+
For performance and flexibility uses an ArrayList for topological index + to vertex mapping, and a HashMap for vertex to topological index mapping.
+
+
DirectedAcyclicGraph.TopoVertexMap() - Constructor for class org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoVertexMap
+
 
+
DirectedAcyclicGraph.Visited - Interface in org.jgrapht.experimental.dag
+
+
this interface allows specification of a strategy for marking vertices as + visited (based on their topological index, so the vertex type isn't part + of the interface).
+
+
DirectedAcyclicGraph.VisitedArrayImpl - Class in org.jgrapht.experimental.dag
+
+
This implementation, somewhat to my surprise, is slower than the + ArrayList version, probably due to its reallocation of the underlying + array for every topology reorder that is required.
+
+
DirectedAcyclicGraph.VisitedArrayImpl() - Constructor for class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayImpl
+
+
Constructs empty factory instance
+
+
DirectedAcyclicGraph.VisitedArrayImpl(DirectedAcyclicGraph.Region) - Constructor for class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayImpl
+
 
+
DirectedAcyclicGraph.VisitedArrayListImpl - Class in org.jgrapht.experimental.dag
+
+
This implementation seems to offer the best performance in most cases.
+
+
DirectedAcyclicGraph.VisitedArrayListImpl() - Constructor for class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayListImpl
+
 
+
DirectedAcyclicGraph.VisitedBitSetImpl - Class in org.jgrapht.experimental.dag
+
+
This implementation is close to the performance of VisitedArrayListImpl, + with 1/8 the memory usage.
+
+
DirectedAcyclicGraph.VisitedBitSetImpl() - Constructor for class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedBitSetImpl
+
 
+
DirectedAcyclicGraph.VisitedFactory - Interface in org.jgrapht.experimental.dag
+
+
interface for a factory that vends Visited implementations
+
+
DirectedAcyclicGraph.VisitedHashSetImpl - Class in org.jgrapht.experimental.dag
+
+
This implementation doesn't seem to perform as well, though I can imagine + circumstances where it should shine (lots and lots of vertices).
+
+
DirectedAcyclicGraph.VisitedHashSetImpl() - Constructor for class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedHashSetImpl
+
 
+
DirectedGraph<V,E> - Interface in org.jgrapht
+
+
A graph whose all edges are directed.
+
+
DirectedGraphBuilder<V,E,G extends DirectedGraph<V,E>> - Class in org.jgrapht.graph.builder
+
+
A builder class for Graph.
+
+
DirectedGraphBuilder(G) - Constructor for class org.jgrapht.graph.builder.DirectedGraphBuilder
+
+
Creates a builder based on baseGraph.
+
+
DirectedGraphBuilderBase<V,E,G extends DirectedGraph<V,E>,B extends DirectedGraphBuilderBase<V,E,G,B>> - Class in org.jgrapht.graph.builder
+
+
Base class for DirectedGraphBuilder for extending.
+
+
DirectedGraphBuilderBase(G) - Constructor for class org.jgrapht.graph.builder.DirectedGraphBuilderBase
+
+
Creates a builder based on baseGraph.
+
+
DirectedGraphUnion<V,E> - Class in org.jgrapht.graph
+
 
+
DirectedGraphUnion(DirectedGraph<V, E>, DirectedGraph<V, E>, WeightCombiner) - Constructor for class org.jgrapht.graph.DirectedGraphUnion
+
 
+
DirectedGraphUnion(DirectedGraph<V, E>, DirectedGraph<V, E>) - Constructor for class org.jgrapht.graph.DirectedGraphUnion
+
 
+
DirectedMaskSubgraph<V,E> - Class in org.jgrapht.graph
+
+
A directed graph that is a MaskSubgraph on another graph.
+
+
DirectedMaskSubgraph(DirectedGraph<V, E>, MaskFunctor<V, E>) - Constructor for class org.jgrapht.graph.DirectedMaskSubgraph
+
 
+
DirectedMultigraph<V,E> - Class in org.jgrapht.graph
+
+
A directed multigraph.
+
+
DirectedMultigraph(Class<? extends E>) - Constructor for class org.jgrapht.graph.DirectedMultigraph
+
+
Creates a new directed multigraph.
+
+
DirectedMultigraph(EdgeFactory<V, E>) - Constructor for class org.jgrapht.graph.DirectedMultigraph
+
+
Creates a new directed multigraph with the specified edge factory.
+
+
DirectedNeighborIndex<V,E> - Class in org.jgrapht.alg
+
+
Maintains a cache of each vertex's neighbors.
+
+
DirectedNeighborIndex(DirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.DirectedNeighborIndex
+
+
Creates a neighbor index for the specified directed graph.
+
+
DirectedPseudograph<V,E> - Class in org.jgrapht.graph
+
+
A directed pseudograph.
+
+
DirectedPseudograph(Class<? extends E>) - Constructor for class org.jgrapht.graph.DirectedPseudograph
+
 
+
DirectedPseudograph(EdgeFactory<V, E>) - Constructor for class org.jgrapht.graph.DirectedPseudograph
+
 
+
DirectedSimpleCycles<V,E> - Interface in org.jgrapht.alg.cycle
+
+
A common interface for classes implementing algorithms for enumeration of the + simple cycles of a directed graph.
+
+
DirectedSubgraph<V,E> - Class in org.jgrapht.graph
+
+
A directed graph that is a subgraph on other graph.
+
+
DirectedSubgraph(DirectedGraph<V, E>, Set<V>, Set<E>) - Constructor for class org.jgrapht.graph.DirectedSubgraph
+
+
Creates a new directed subgraph.
+
+
DirectedWeightedGraphBuilder<V,E,G extends DirectedGraph<V,E> & WeightedGraph<V,E>> - Class in org.jgrapht.graph.builder
+
+
A builder class for directed weighted graphs}.
+
+
DirectedWeightedGraphBuilder(G) - Constructor for class org.jgrapht.graph.builder.DirectedWeightedGraphBuilder
+
+
Creates a builder based on baseGraph.
+
+
DirectedWeightedGraphBuilderBase<V,E,G extends DirectedGraph<V,E> & WeightedGraph<V,E>,B extends DirectedWeightedGraphBuilderBase<V,E,G,B>> - Class in org.jgrapht.graph.builder
+
+
Base class for DirectedWeightedGraphBuilder for extending.
+
+
DirectedWeightedGraphBuilderBase(G) - Constructor for class org.jgrapht.graph.builder.DirectedWeightedGraphBuilderBase
+
+
Creates a builder based on baseGraph.
+
+
DirectedWeightedMultigraph<V,E> - Class in org.jgrapht.graph
+
+
A directed weighted multigraph.
+
+
DirectedWeightedMultigraph(Class<? extends E>) - Constructor for class org.jgrapht.graph.DirectedWeightedMultigraph
+
+
Creates a new directed weighted multigraph.
+
+
DirectedWeightedMultigraph(EdgeFactory<V, E>) - Constructor for class org.jgrapht.graph.DirectedWeightedMultigraph
+
+
Creates a new directed weighted multigraph with the specified edge + factory.
+
+
DirectedWeightedPseudograph<V,E> - Class in org.jgrapht.graph
+
+
A directed weighted pseudograph.
+
+
DirectedWeightedPseudograph(Class<? extends E>) - Constructor for class org.jgrapht.graph.DirectedWeightedPseudograph
+
+
Creates a new directed weighted pseudograph.
+
+
DirectedWeightedPseudograph(EdgeFactory<V, E>) - Constructor for class org.jgrapht.graph.DirectedWeightedPseudograph
+
+
Creates a new directed weighted pseudograph with the specified edge + factory.
+
+
DirectedWeightedSubgraph<V,E> - Class in org.jgrapht.graph
+
+
A directed weighted graph that is a subgraph on other graph.
+
+
DirectedWeightedSubgraph(WeightedGraph<V, E>, Set<V>, Set<E>) - Constructor for class org.jgrapht.graph.DirectedWeightedSubgraph
+
+
Creates a new weighted directed subgraph.
+
+
DOTExporter<V,E> - Class in org.jgrapht.ext
+
+
Exports a graph into a DOT file.
+
+
DOTExporter() - Constructor for class org.jgrapht.ext.DOTExporter
+
+
Constructs a new DOTExporter object with an integer name provider for the + vertex IDs and null providers for the vertex and edge labels.
+
+
DOTExporter(VertexNameProvider<V>, VertexNameProvider<V>, EdgeNameProvider<E>) - Constructor for class org.jgrapht.ext.DOTExporter
+
+
Constructs a new DOTExporter object with the given ID and label + providers.
+
+
DOTExporter(VertexNameProvider<V>, VertexNameProvider<V>, EdgeNameProvider<E>, ComponentAttributeProvider<V>, ComponentAttributeProvider<E>) - Constructor for class org.jgrapht.ext.DOTExporter
+
+
Constructs a new DOTExporter object with the given ID, label, and + attribute providers.
+
+
DOTImporter<V,E> - Class in org.jgrapht.ext
+
+
Imports a graph from a DOT file.
+
+
DOTImporter(VertexProvider<V>, EdgeProvider<V, E>) - Constructor for class org.jgrapht.ext.DOTImporter
+
+
Constructs a new DOTImporter with the given providers
+
+
DOTImporter(VertexProvider<V>, EdgeProvider<V, E>, VertexUpdater<V>) - Constructor for class org.jgrapht.ext.DOTImporter
+
+
Constructs a new DOTImporter with the given providers
+
+
doubleValue() - Method in class org.jgrapht.util.ModifiableInteger
+
 
+
+ + + +

E

+
+
edge - Variable in class org.jgrapht.event.EdgeTraversalEvent
+
+
The traversed edge.
+
+
edge - Variable in class org.jgrapht.event.GraphEdgeChangeEvent
+
+
The edge that this event is related to.
+
+
EDGE_ADDED - Static variable in class org.jgrapht.event.GraphEdgeChangeEvent
+
+
Edge added event.
+
+
EDGE_REMOVED - Static variable in class org.jgrapht.event.GraphEdgeChangeEvent
+
+
Edge removed event.
+
+
edgeAdded(GraphEdgeChangeEvent<V, E>) - Method in class org.jgrapht.alg.ConnectivityInspector
+
 
+
edgeAdded(GraphEdgeChangeEvent<V, E>) - Method in class org.jgrapht.alg.DirectedNeighborIndex
+
 
+
edgeAdded(GraphEdgeChangeEvent<V, E>) - Method in class org.jgrapht.alg.NeighborIndex
+
 
+
edgeAdded(GraphEdgeChangeEvent<V, E>) - Method in interface org.jgrapht.event.GraphListener
+
+
Notifies that an edge has been added to the graph.
+
+
edgeAdded(GraphEdgeChangeEvent<V, E>) - Method in class org.jgrapht.ext.JGraphXAdapter
+
 
+
edgeClass - Variable in class org.jgrapht.generate.WeightedGraphGenerator
+
 
+
edgeClass(Class<? extends E>) - Method in class org.jgrapht.generate.WeightedGraphGenerator
+
 
+
edgeComparator - Variable in class org.jgrapht.alg.isomorphism.VF2AbstractIsomorphismInspector
+
 
+
edgeExtended(E) - Method in class org.jgrapht.alg.flow.MaximumFlowAlgorithmBase
+
 
+
EdgeFactory<V,E> - Interface in org.jgrapht
+
+
An edge factory used by graphs for creating new edges.
+
+
edgeFactory - Variable in class org.jgrapht.generate.WeightedGraphGenerator
+
 
+
edgeFactory(EdgeFactory<V, E>) - Method in class org.jgrapht.generate.WeightedGraphGenerator
+
 
+
EdgeNameProvider<E> - Interface in org.jgrapht.ext
+
+
Assigns a display name for each of the graph edes.
+
+
EdgeProvider<V,E> - Interface in org.jgrapht.ext
+
+
Defines a provider of edges of type E
+
+
edgeRemoved(GraphEdgeChangeEvent<V, E>) - Method in class org.jgrapht.alg.ConnectivityInspector
+
 
+
edgeRemoved(GraphEdgeChangeEvent<V, E>) - Method in class org.jgrapht.alg.DirectedNeighborIndex
+
 
+
edgeRemoved(GraphEdgeChangeEvent<V, E>) - Method in class org.jgrapht.alg.NeighborIndex
+
 
+
edgeRemoved(GraphEdgeChangeEvent<V, E>) - Method in interface org.jgrapht.event.GraphListener
+
+
Notifies that an edge has been removed from the graph.
+
+
edgeRemoved(GraphEdgeChangeEvent<V, E>) - Method in class org.jgrapht.ext.JGraphXAdapter
+
 
+
EdgeReversedGraph<V,E> - Class in org.jgrapht.graph
+
+
Provides an edge-reversed view g' of a directed graph g.
+
+
EdgeReversedGraph(DirectedGraph<V, E>) - Constructor for class org.jgrapht.graph.EdgeReversedGraph
+
+
Creates a new EdgeReversedGraph.
+
+
edgeSet() - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
edgeSet() - Method in interface org.jgrapht.Graph
+
+
Returns a set of the edges contained in this graph.
+
+
edgeSet() - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
edgeSet() - Method in class org.jgrapht.graph.GraphUnion
+
 
+
edgeSet() - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
edgeSet() - Method in class org.jgrapht.graph.Subgraph
+
 
+
EdgeSetFactory<V,E> - Interface in org.jgrapht.graph
+
+
A factory for edge sets.
+
+
edgesOf(V) - Method in class org.jgrapht.graph.AbstractBaseGraph.DirectedSpecifics
+
 
+
edgesOf(V) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
edgesOf(V) - Method in class org.jgrapht.graph.AbstractBaseGraph.UndirectedSpecifics
+
 
+
edgesOf(V) - Method in interface org.jgrapht.Graph
+
+
Returns a set of all edges touching the specified vertex.
+
+
edgesOf(V) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
edgesOf(V) - Method in class org.jgrapht.graph.GraphUnion
+
 
+
edgesOf(V) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
edgesOf(V) - Method in class org.jgrapht.graph.Subgraph
+
 
+
edgeSource - Variable in class org.jgrapht.event.GraphEdgeChangeEvent
+
+
The source vertex of the edge that this event is related to.
+
+
edgeTarget - Variable in class org.jgrapht.event.GraphEdgeChangeEvent
+
+
The target vertex of the edge that this event is related to.
+
+
EdgeTraversalEvent<V,E> - Class in org.jgrapht.event
+
+
A traversal event for a graph edge.
+
+
EdgeTraversalEvent(Object, E) - Constructor for class org.jgrapht.event.EdgeTraversalEvent
+
+
Creates a new EdgeTraversalEvent.
+
+
edgeTraversed(EdgeTraversalEvent<V, E>) - Method in interface org.jgrapht.event.TraversalListener
+
+
Called to inform the listener that the specified edge have been visited + during the graph traversal.
+
+
edgeTraversed(EdgeTraversalEvent<V, E>) - Method in class org.jgrapht.event.TraversalListenerAdapter
+
 
+
EdmondsBlossomShrinking<V,E> - Class in org.jgrapht.alg
+
+
An implementation of Edmonds Blossom Shrinking algorithm for constructing + maximum matchings on graphs.
+
+
EdmondsBlossomShrinking() - Constructor for class org.jgrapht.alg.EdmondsBlossomShrinking
+
+
Deprecated.
+
+
EdmondsBlossomShrinking(UndirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.EdmondsBlossomShrinking
+
 
+
EdmondsKarpMaximumFlow<V,E> - Class in org.jgrapht.alg
+
+
Deprecated. + +
+
+
EdmondsKarpMaximumFlow(DirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.EdmondsKarpMaximumFlow
+
+
Deprecated.
+
Constructs MaximumFlow instance to work with a copy of + network.
+
+
EdmondsKarpMaximumFlow(DirectedGraph<V, E>, double) - Constructor for class org.jgrapht.alg.EdmondsKarpMaximumFlow
+
+
Deprecated.
+
Constructs MaximumFlow instance to work with a copy of + network.
+
+
EdmondsKarpMaximumFlow<V,E> - Class in org.jgrapht.alg.flow
+
+
A flow network is a + directed graph where each edge has a capacity and each edge receives a flow.
+
+
EdmondsKarpMaximumFlow(DirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.flow.EdmondsKarpMaximumFlow
+
+
Constructs MaximumFlow instance to work with a copy of + network.
+
+
EdmondsKarpMaximumFlow(DirectedGraph<V, E>, double) - Constructor for class org.jgrapht.alg.flow.EdmondsKarpMaximumFlow
+
+
Constructs MaximumFlow instance to work with a copy of + network.
+
+
EmptyGraphGenerator<V,E> - Class in org.jgrapht.generate
+
+
Generates an empty + graph of any size.
+
+
EmptyGraphGenerator(int) - Constructor for class org.jgrapht.generate.EmptyGraphGenerator
+
+
Construct a new EmptyGraphGenerator.
+
+
encounterVertex(V, E) - Method in class org.jgrapht.traverse.BreadthFirstIterator
+
 
+
encounterVertex(V, E) - Method in class org.jgrapht.traverse.ClosestFirstIterator
+
 
+
encounterVertex(V, E) - Method in class org.jgrapht.traverse.CrossComponentIterator
+
+
Update data structures the first time we see a vertex.
+
+
encounterVertex(V, E) - Method in class org.jgrapht.traverse.DepthFirstIterator
+
 
+
encounterVertex(V, E) - Method in class org.jgrapht.traverse.TopologicalOrderIterator
+
 
+
encounterVertexAgain(V, E) - Method in class org.jgrapht.traverse.BreadthFirstIterator
+
 
+
encounterVertexAgain(V, E) - Method in class org.jgrapht.traverse.ClosestFirstIterator
+
+
Override superclass.
+
+
encounterVertexAgain(V, E) - Method in class org.jgrapht.traverse.CrossComponentIterator
+
+
Called whenever we re-encounter a vertex.
+
+
encounterVertexAgain(V, E) - Method in class org.jgrapht.traverse.DepthFirstIterator
+
 
+
encounterVertexAgain(V, E) - Method in class org.jgrapht.traverse.TopologicalOrderIterator
+
 
+
END_VERTEX - Static variable in class org.jgrapht.generate.LinearGraphGenerator
+
+
Role for the last vertex generated.
+
+
equals(Object) - Method in class org.jgrapht.alg.util.Pair
+
 
+
equals(Object) - Method in class org.jgrapht.graph.AbstractGraph
+
+
Indicates whether some other object is "equal to" this graph.
+
+
equals(Object) - Method in class org.jgrapht.util.ArrayUnenforcedSet
+
 
+
equals(Object) - Method in class org.jgrapht.util.ModifiableInteger
+
+
Compares this object to the specified object.
+
+
equals(Object) - Method in class org.jgrapht.util.VertexPair
+
 
+
EulerianCircuit - Class in org.jgrapht.alg
+
+
This algorithm will check whether a graph is Eulerian (hence it contains an + Eulerian + circuit).
+
+
EulerianCircuit() - Constructor for class org.jgrapht.alg.EulerianCircuit
+
 
+
ExactAlgorithm<ResultType,V> - Interface in org.jgrapht.experimental.alg
+
 
+
export(Writer, Graph<V, E>) - Method in class org.jgrapht.ext.DOTExporter
+
+
Exports a graph into a plain text file in DOT format.
+
+
export(Writer, UndirectedGraph<V, E>) - Method in class org.jgrapht.ext.GmlExporter
+
+
Exports an undirected graph into a plain text file in GML format.
+
+
export(Writer, DirectedGraph<V, E>) - Method in class org.jgrapht.ext.GmlExporter
+
+
Exports a directed graph into a plain text file in GML format.
+
+
export(Writer, Graph<V, E>) - Method in class org.jgrapht.ext.GraphMLExporter
+
+
Exports a graph into a plain text file in GraphML format.
+
+
export(OutputStream, Graph<V, E>) - Method in class org.jgrapht.ext.VisioExporter
+
+
Exports the specified graph into a Visio csv file format.
+
+
exportAdjacencyMatrix(Writer, UndirectedGraph<V, E>) - Method in class org.jgrapht.ext.MatrixExporter
+
+
Exports the specified graph into a plain text file format containing a + sparse representation of the graph's adjacency matrix.
+
+
exportAdjacencyMatrix(Writer, DirectedGraph<V, E>) - Method in class org.jgrapht.ext.MatrixExporter
+
+
Exports the specified graph into a plain text file format containing a + sparse representation of the graph's adjacency matrix.
+
+
exportLaplacianMatrix(Writer, UndirectedGraph<V, E>) - Method in class org.jgrapht.ext.MatrixExporter
+
+
Exports the specified graph into a plain text file format containing a + sparse representation of the graph's Laplacian matrix.
+
+
exportNormalizedLaplacianMatrix(Writer, UndirectedGraph<V, E>) - Method in class org.jgrapht.ext.MatrixExporter
+
+
Exports the specified graph into a plain text file format containing a + sparse representation of the graph's normalized Laplacian matrix.
+
+
extend(int) - Method in class org.jgrapht.alg.KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.MatchExtender
+
+
Performs DFS to seek after matching-augmenting path starting at + the initial-vertex
+
+
extendedEdge(E) - Method in class org.jgrapht.alg.flow.EdmondsKarpMaximumFlow
+
 
+
extendedVertex(V) - Method in class org.jgrapht.alg.flow.EdmondsKarpMaximumFlow
+
 
+
Extension<T,E> - Class in org.jgrapht.alg.util
+
+
Abstract extension manager allowing to extend given class-types with supplied + extension's class-type saving source class object references
+
+
Extension(Extension.ExtensionFactory<E>) - Constructor for class org.jgrapht.alg.util.Extension
+
 
+
Extension.BaseExtension - Class in org.jgrapht.alg.util
+
 
+
Extension.BaseExtension() - Constructor for class org.jgrapht.alg.util.Extension.BaseExtension
+
 
+
Extension.ExtensionFactory<E> - Interface in org.jgrapht.alg.util
+
+
Factory capable of producing given extension objects of the given + class-type
+
+
Extension.ExtensionManagerInstantiationException - Exception in org.jgrapht.alg.util
+
 
+
Extension.ExtensionManagerInstantiationException(Exception) - Constructor for exception org.jgrapht.alg.util.Extension.ExtensionManagerInstantiationException
+
 
+
+ + + +

F

+
+
factorial(int) - Static method in class org.jgrapht.util.MathUtil
+
 
+
FibonacciHeap<T> - Class in org.jgrapht.util
+
+
This class implements a Fibonacci heap data structure.
+
+
FibonacciHeap() - Constructor for class org.jgrapht.util.FibonacciHeap
+
+
Constructs a FibonacciHeap object that contains no elements.
+
+
FibonacciHeapNode<T> - Class in org.jgrapht.util
+
+
Implements a node of the Fibonacci heap.
+
+
FibonacciHeapNode(T) - Constructor for class org.jgrapht.util.FibonacciHeapNode
+
+
Default constructor.
+
+
find(T) - Method in class org.jgrapht.alg.util.UnionFind
+
+
Returns the representative element of the set that element is in.
+
+
find2ApproximationCover(Graph<V, E>) - Static method in class org.jgrapht.alg.VertexCovers
+
+
Finds a 2-approximation for a minimal vertex cover of the specified + graph.
+
+
findCycleBase() - Method in class org.jgrapht.alg.cycle.PatonCycleBase
+
+
Finds a cycle base of the graph.
+ Note that the full algorithm is executed on every call since the graph + may have changed between calls.
+
+
findCycleBase() - Method in interface org.jgrapht.alg.cycle.UndirectedCycleBase
+
+
Finds a cycle base of the graph.
+ Note that the full algorithm is executed on every call since the graph + may have changed between calls.
+
+
findCycles() - Method in class org.jgrapht.alg.CycleDetector
+
+
Finds the vertex set for the subgraph of all cycles.
+
+
findCyclesContainingVertex(V) - Method in class org.jgrapht.alg.CycleDetector
+
+
Finds the vertex set for the subgraph of all cycles which contain a + particular vertex.
+
+
findGreedyChromaticNumber(UndirectedGraph<V, E>) - Static method in class org.jgrapht.alg.ChromaticNumber
+
+
Finds the number of colors required for a greedy coloring of the graph.
+
+
findGreedyColoredGroups(UndirectedGraph<V, E>) - Static method in class org.jgrapht.alg.ChromaticNumber
+
+
Finds a greedy coloring of the graph.
+
+
findGreedyCover(UndirectedGraph<V, E>) - Static method in class org.jgrapht.alg.VertexCovers
+
+
Finds a greedy approximation for a minimal vertex cover of a specified + graph.
+
+
findLca(V, V) - Method in class org.jgrapht.alg.NaiveLcaFinder
+
+
Return the first found LCA of a and b
+
+
findLcas(V, V) - Method in class org.jgrapht.alg.NaiveLcaFinder
+
+
Return all the LCA of a and b.
+
+
findMatch(UndirectedGraph<V, E>) - Method in class org.jgrapht.alg.EdmondsBlossomShrinking
+
+
Deprecated.
+
+
findPathBetween(Graph<V, E>, V, V) - Static method in class org.jgrapht.alg.BellmanFordShortestPath
+
+
Convenience method to find the shortest path via a single static method + call.
+
+
findPathBetween(Graph<V, E>, V, V) - Static method in class org.jgrapht.alg.DijkstraShortestPath
+
+
Convenience method to find the shortest path via a single static method + call.
+
+
findSimpleCycles() - Method in interface org.jgrapht.alg.cycle.DirectedSimpleCycles
+
+
Finds the simple cycles of the graph.
+ Note that the full algorithm is executed on every call since the graph + may have changed between calls.
+
+
findSimpleCycles() - Method in class org.jgrapht.alg.cycle.HawickJamesSimpleCycles
+
+
Finds the simple cycles of the graph.
+ Note that the full algorithm is executed on every call since the graph + may have changed between calls.
+
+
findSimpleCycles() - Method in class org.jgrapht.alg.cycle.JohnsonSimpleCycles
+
+
Finds the simple cycles of the graph.
+ Note that the full algorithm is executed on every call since the graph + may have changed between calls.
+
+
findSimpleCycles() - Method in class org.jgrapht.alg.cycle.SzwarcfiterLauerSimpleCycles
+
+
Finds the simple cycles of the graph.
+ Note that the full algorithm is executed on every call since the graph + may have changed between calls.
+
+
findSimpleCycles() - Method in class org.jgrapht.alg.cycle.TarjanSimpleCycles
+
+
Finds the simple cycles of the graph.
+ Note that the full algorithm is executed on every call since the graph + may have changed between calls.
+
+
findSimpleCycles() - Method in class org.jgrapht.alg.cycle.TiernanSimpleCycles
+
+
Finds the simple cycles of the graph.
+ Note that the full algorithm is executed on every call since the graph + may have changed between calls.
+
+
finish - Variable in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.Region
+
 
+
finishVertex(V) - Method in class org.jgrapht.traverse.CrossComponentIterator
+
+
Called when a vertex has been finished (meaning is dependent on traversal + represented by subclass).
+
+
fireConnectedComponentFinished(ConnectedComponentTraversalEvent) - Method in class org.jgrapht.traverse.AbstractGraphIterator
+
+
Informs all listeners that the traversal of the current connected + component finished.
+
+
fireConnectedComponentStarted(ConnectedComponentTraversalEvent) - Method in class org.jgrapht.traverse.AbstractGraphIterator
+
+
Informs all listeners that a traversal of a new connected component has + started.
+
+
fireEdgeAdded(E, V, V) - Method in class org.jgrapht.graph.DefaultListenableGraph
+
+
Notify listeners that the specified edge was added.
+
+
fireEdgeRemoved(E, V, V) - Method in class org.jgrapht.graph.DefaultListenableGraph
+
+
Notify listeners that the specified edge was removed.
+
+
fireEdgeTraversed(EdgeTraversalEvent<V, E>) - Method in class org.jgrapht.traverse.AbstractGraphIterator
+
+
Informs all listeners that a the specified edge was visited.
+
+
fireVertexAdded(V) - Method in class org.jgrapht.graph.DefaultListenableGraph
+
+
Notify listeners that the specified vertex was added.
+
+
fireVertexFinished(VertexTraversalEvent<V>) - Method in class org.jgrapht.traverse.AbstractGraphIterator
+
+
Informs all listeners that a the specified vertex was finished.
+
+
fireVertexRemoved(V) - Method in class org.jgrapht.graph.DefaultListenableGraph
+
+
Notify listeners that the specified vertex was removed.
+
+
fireVertexTraversed(VertexTraversalEvent<V>) - Method in class org.jgrapht.traverse.AbstractGraphIterator
+
+
Informs all listeners that a the specified vertex was visited.
+
+
first - Variable in class org.jgrapht.alg.util.Pair
+
 
+
first(List<? extends V>) - Method in class org.jgrapht.generate.SimpleWeightedBipartiteGraphMatrixGenerator
+
 
+
FIRST - Static variable in interface org.jgrapht.util.WeightCombiner
+
+
First weight.
+
+
floatValue() - Method in class org.jgrapht.util.ModifiableInteger
+
 
+
FloydWarshallShortestPaths<V,E> - Class in org.jgrapht.alg
+
+
The + Floyd-Warshall algorithm finds all shortest paths (all n^2 of them) in + O(n^3) time.
+
+
FloydWarshallShortestPaths(Graph<V, E>) - Constructor for class org.jgrapht.alg.FloydWarshallShortestPaths
+
 
+
+ + + +

G

+
+
GabowStrongConnectivityInspector<V,E> - Class in org.jgrapht.alg
+
+
Allows obtaining the strongly connected components of a directed graph.
+
+
GabowStrongConnectivityInspector(DirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.GabowStrongConnectivityInspector
+
+
The constructor of GabowStrongConnectivityInspector class.
+
+
generateGraph(Graph<V, E>, VertexFactory<V>, Map<String, V>) - Method in class org.jgrapht.experimental.GraphReader
+
+
Generate a graph structure.
+
+
generateGraph(Graph<V, E>, VertexFactory<V>, Map<String, Object[]>) - Method in class org.jgrapht.experimental.PartiteRandomGraphGenerator
+
+
TODO hb 30-nov-05: document me
+
+
generateGraph(Graph, VertexFactory, Map) - Method in class org.jgrapht.experimental.UniformRandomGraphGenerator
+
 
+
generateGraph(Graph<V, E>, VertexFactory<V>, Map<String, V>) - Method in class org.jgrapht.generate.CompleteBipartiteGraphGenerator
+
+
Construct a complete bipartite graph
+
+
generateGraph(Graph<V, E>, VertexFactory<V>, Map<String, V>) - Method in class org.jgrapht.generate.CompleteGraphGenerator
+
+
Generate a graph structure.
+
+
generateGraph(Graph<V, E>, VertexFactory<V>, Map<String, V>) - Method in class org.jgrapht.generate.EmptyGraphGenerator
+
+
Generate a graph structure.
+
+
generateGraph(Graph<V, E>, VertexFactory<V>, Map<String, T>) - Method in interface org.jgrapht.generate.GraphGenerator
+
+
Generate a graph structure.
+
+
generateGraph(Graph<V, E>, VertexFactory<V>, Map<String, V>) - Method in class org.jgrapht.generate.GridGraphGenerator
+
+
Generate a graph structure.
+
+
generateGraph(Graph<V, E>, VertexFactory<V>, Map<String, V>) - Method in class org.jgrapht.generate.HyperCubeGraphGenerator
+
+
This will generate the hypercube graph
+
+
generateGraph(Graph<V, E>, VertexFactory<V>, Map<String, V>) - Method in class org.jgrapht.generate.LinearGraphGenerator
+
+
Generate a graph structure.
+
+
generateGraph(Graph<V, E>, VertexFactory<V>, Map<String, V>) - Method in class org.jgrapht.generate.RandomGraphGenerator
+
+
(non-Javadoc)
+
+
generateGraph(Graph<V, E>, VertexFactory<V>, Map<String, V>) - Method in class org.jgrapht.generate.RingGraphGenerator
+
+
Generate a graph structure.
+
+
generateGraph(Graph<V, E>, VertexFactory<V>, Map<String, V>) - Method in class org.jgrapht.generate.ScaleFreeGraphGenerator
+
+
Generates scale-free network with size passed to the + constructor.
+
+
generateGraph(WeightedGraph<V, E>, VertexFactory<V>, Map<String, V>) - Method in class org.jgrapht.generate.SimpleWeightedBipartiteGraphMatrixGenerator
+
 
+
generateGraph(WeightedGraph<V, E>, VertexFactory<V>, Map<String, V>) - Method in class org.jgrapht.generate.SimpleWeightedGraphMatrixGenerator
+
 
+
generateGraph(Graph<V, E>, VertexFactory<V>, Map<String, V>) - Method in class org.jgrapht.generate.StarGraphGenerator
+
+
Generates a star graph with the designated order from the constructor
+
+
generateGraph(WeightedGraph<V, E>, VertexFactory<V>, Map<String, T>) - Method in class org.jgrapht.generate.WeightedGraphGeneratorAdapter
+
 
+
generateGraph(Graph<V, E>, VertexFactory<V>, Map<String, T>) - Method in class org.jgrapht.generate.WeightedGraphGeneratorAdapter
+
 
+
generateGraph(Graph<V, E>, VertexFactory<V>, Map<String, V>) - Method in class org.jgrapht.generate.WheelGraphGenerator
+
+
Generate a graph structure.
+
+
get(T) - Method in class org.jgrapht.alg.util.Extension
+
 
+
getA() - Method in class org.jgrapht.alg.TarjanLowestCommonAncestor.LcaRequestResponse
+
 
+
getAllEdges(V, V) - Method in class org.jgrapht.graph.AbstractBaseGraph.DirectedSpecifics
+
 
+
getAllEdges(V, V) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
getAllEdges(V, V) - Method in class org.jgrapht.graph.AbstractBaseGraph.UndirectedSpecifics
+
 
+
getAllEdges(V, V) - Method in class org.jgrapht.graph.AsUndirectedGraph
+
 
+
getAllEdges(V, V) - Method in class org.jgrapht.graph.EdgeReversedGraph
+
 
+
getAllEdges(V, V) - Method in interface org.jgrapht.Graph
+
+
Returns a set of all edges connecting source vertex to target vertex if + such vertices exist in this graph.
+
+
getAllEdges(V, V) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
getAllEdges(V, V) - Method in class org.jgrapht.graph.GraphUnion
+
 
+
getAllEdges(V, V) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
getAllEdges(V, V) - Method in class org.jgrapht.graph.Subgraph
+
 
+
getAllMaximalCliques() - Method in class org.jgrapht.alg.BronKerboschCliqueFinder
+
+
Finds all maximal cliques of the graph.
+
+
getAllPaths(V, V, boolean, Integer) - Method in class org.jgrapht.alg.AllDirectedPaths
+
+
Calculate (and return) all paths from the source vertex to the target + vertex.
+
+
getAllPaths(Set<V>, Set<V>, boolean, Integer) - Method in class org.jgrapht.alg.AllDirectedPaths
+
+
Calculate (and return) all paths from the source vertices to the target + vertices.
+
+
getApproximateOptimalForCompleteGraph(SimpleWeightedGraph<V, E>) - Static method in class org.jgrapht.alg.HamiltonianCycle
+
+
This method will return an approximate minimal traveling salesman tour + (hamiltonian cycle).
+
+
getAtoms() - Method in class org.jgrapht.alg.CliqueMinimalSeparatorDecomposition
+
+
Get the atoms generated by the decomposition.
+
+
getB() - Method in class org.jgrapht.alg.TarjanLowestCommonAncestor.LcaRequestResponse
+
 
+
getBase() - Method in class org.jgrapht.graph.Subgraph
+
 
+
getBiconnectedVertexComponents() - Method in class org.jgrapht.alg.BiconnectivityInspector
+
+
Returns the biconnected vertex-components of the graph.
+
+
getBiconnectedVertexComponents(V) - Method in class org.jgrapht.alg.BiconnectivityInspector
+
+
Returns the biconnected vertex-components containing the vertex.
+
+
getBiggestMaximalCliques() - Method in class org.jgrapht.alg.BronKerboschCliqueFinder
+
+
Finds the biggest maximal cliques of the graph.
+
+
getBlock(V) - Method in class org.jgrapht.alg.BlockCutpointGraph
+
+
Returns the vertex if vertex is a cutpoint, and otherwise returns the + block (biconnected component) containing the vertex.
+
+
getCellFactory() - Method in class org.jgrapht.ext.JGraphModelAdapter
+
+
Returns the cell factory used to create the JGraph cells.
+
+
getCellToEdgeMap() - Method in class org.jgrapht.ext.JGraphXAdapter
+
+
Returns Hashmap which maps the visualization mxICells onto their edges.
+
+
getCellToVertexMap() - Method in class org.jgrapht.ext.JGraphXAdapter
+
+
Returns Hashmap which maps the visualization mxICells onto their + vertices.
+
+
getComponentAttributes(T) - Method in interface org.jgrapht.ext.ComponentAttributeProvider
+
+
Returns a set of attribute key/value pairs for a vertex or edge.
+
+
getCost(V) - Method in class org.jgrapht.alg.BellmanFordShortestPath
+
 
+
getCostEstimate(V, V) - Method in interface org.jgrapht.alg.interfaces.AStarAdmissibleHeuristic
+
+
An admissible "heuristic estimate" of the distance from x, the + sourceVertex, to the goal (usually denoted h(x)).
+
+
getCurrentSink() - Method in class org.jgrapht.alg.EdmondsKarpMaximumFlow
+
+
Deprecated.
+
Returns current sink vertex, or null if there was no + calculateMaximumFlow calls.
+
+
getCurrentSink() - Method in class org.jgrapht.alg.flow.EdmondsKarpMaximumFlow
+
+
Returns current sink vertex, or null if there was no + calculateMaximumFlow calls.
+
+
getCurrentSink() - Method in class org.jgrapht.alg.MinSourceSinkCut
+
+
Returns the sink of the last call
+
+
getCurrentSource() - Method in class org.jgrapht.alg.EdmondsKarpMaximumFlow
+
+
Deprecated.
+
Returns current source vertex, or null if there was no + calculateMaximumFlow calls.
+
+
getCurrentSource() - Method in class org.jgrapht.alg.flow.EdmondsKarpMaximumFlow
+
+
Returns current source vertex, or null if there was no + calculateMaximumFlow calls.
+
+
getCurrentSource() - Method in class org.jgrapht.alg.MinSourceSinkCut
+
+
Returns the source of the last call
+
+
getCutEdges() - Method in class org.jgrapht.alg.MinSourceSinkCut
+
+
Let S be the set containing the source, and T be the set containing the + sink, i.e.
+
+
getCutpoints() - Method in class org.jgrapht.alg.BiconnectivityInspector
+
+
Returns the cutpoints of the graph.
+
+
getCutpoints() - Method in class org.jgrapht.alg.BlockCutpointGraph
+
+
Returns the cutpoints of the initial graph.
+
+
getCutWeight() - Method in class org.jgrapht.alg.MinSourceSinkCut
+
+
Get the cut weight.
+
+
getData() - Method in class org.jgrapht.util.FibonacciHeapNode
+
+
Obtain the data for this node.
+
+
getDefaultEdgeAttributes() - Method in class org.jgrapht.ext.JGraphModelAdapter
+
+
Returns the default edge attributes used for creating new JGraph edges.
+
+
getDefaultVertexAttributes() - Method in class org.jgrapht.ext.JGraphModelAdapter
+
+
Returns the default vertex attributes used for creating new JGraph + vertices.
+
+
getDiameter() - Method in class org.jgrapht.alg.FloydWarshallShortestPaths
+
 
+
getEdge() - Method in class org.jgrapht.event.EdgeTraversalEvent
+
+
Returns the traversed edge.
+
+
getEdge() - Method in class org.jgrapht.event.GraphEdgeChangeEvent
+
+
Returns the edge that this event is related to.
+
+
getEdge(V, V) - Method in class org.jgrapht.graph.AbstractBaseGraph.DirectedSpecifics
+
 
+
getEdge(V, V) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
getEdge(V, V) - Method in class org.jgrapht.graph.AbstractBaseGraph.UndirectedSpecifics
+
 
+
getEdge(V, V) - Method in class org.jgrapht.graph.AsUndirectedGraph
+
 
+
getEdge(V, V) - Method in class org.jgrapht.graph.EdgeReversedGraph
+
 
+
getEdge(V, V) - Method in interface org.jgrapht.Graph
+
+
Returns an edge connecting source vertex to target vertex if such + vertices and such edge exist in this graph.
+
+
getEdge(V, V) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
getEdge(V, V) - Method in class org.jgrapht.graph.GraphUnion
+
 
+
getEdge(V, V) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
getEdge(V, V) - Method in class org.jgrapht.graph.Subgraph
+
 
+
getEdgeCell(E) - Method in class org.jgrapht.ext.JGraphModelAdapter
+
+
Returns the JGraph edge cell that corresponds to the specified JGraphT + edge.
+
+
getEdgeCorrespondence(E, boolean) - Method in class org.jgrapht.alg.isomorphism.IsomorphicGraphMapping
+
 
+
getEdgeCorrespondence(E, boolean) - Method in class org.jgrapht.graph.DefaultGraphMapping
+
 
+
getEdgeCorrespondence(E, boolean) - Method in interface org.jgrapht.GraphMapping
+
+
Gets the mapped value where the key is edge
+
+
getEdgeFactory() - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
getEdgeFactory() - Method in interface org.jgrapht.Graph
+
+
Returns the edge factory using which this graph creates new edges.
+
+
getEdgeFactory() - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
getEdgeFactory() - Method in class org.jgrapht.graph.GraphUnion
+
+
Throws UnsupportedOperationException, because + GraphUnion is read-only.
+
+
getEdgeFactory() - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
getEdgeFactory() - Method in class org.jgrapht.graph.Subgraph
+
 
+
getEdgeList() - Method in class org.jgrapht.graph.GraphPathImpl
+
 
+
getEdgeList() - Method in class org.jgrapht.graph.SimpleGraphPath
+
 
+
getEdgeList() - Method in interface org.jgrapht.GraphPath
+
+
Returns the edges making up the path.
+
+
getEdgeName(E) - Method in interface org.jgrapht.ext.EdgeNameProvider
+
+
Returns a unique name for an edge.
+
+
getEdgeName(E) - Method in class org.jgrapht.ext.IntegerEdgeNameProvider
+
+
Returns the String representation of an edge.
+
+
getEdgeName(E) - Method in class org.jgrapht.ext.StringEdgeNameProvider
+
+
Returns the String representation an edge.
+
+
getEdgeSet() - Method in class org.jgrapht.alg.KruskalMinimumSpanningTree
+
+
Deprecated.
+
+
getEdgeSource() - Method in class org.jgrapht.event.GraphEdgeChangeEvent
+
+
Returns the source vertex that this event is related to.
+
+
getEdgeSource(E) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
getEdgeSource(E) - Method in class org.jgrapht.graph.EdgeReversedGraph
+
 
+
getEdgeSource(E) - Method in interface org.jgrapht.Graph
+
+
Returns the source vertex of an edge.
+
+
getEdgeSource(E) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
getEdgeSource(E) - Method in class org.jgrapht.graph.GraphUnion
+
 
+
getEdgeSource(E) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
getEdgeSource(E) - Method in class org.jgrapht.graph.Subgraph
+
 
+
getEdgeTarget() - Method in class org.jgrapht.event.GraphEdgeChangeEvent
+
+
Returns the target vertex that this event is related to.
+
+
getEdgeTarget(E) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
getEdgeTarget(E) - Method in class org.jgrapht.graph.EdgeReversedGraph
+
 
+
getEdgeTarget(E) - Method in interface org.jgrapht.Graph
+
+
Returns the target vertex of an edge.
+
+
getEdgeTarget(E) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
getEdgeTarget(E) - Method in class org.jgrapht.graph.GraphUnion
+
 
+
getEdgeTarget(E) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
getEdgeTarget(E) - Method in class org.jgrapht.graph.Subgraph
+
 
+
getEdgeToCellMap() - Method in class org.jgrapht.ext.JGraphXAdapter
+
+
Returns Hashmap which maps the edges onto their visualization mxICells.
+
+
getEdgeWeight(E) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
getEdgeWeight(E) - Method in class org.jgrapht.graph.AsUnweightedGraph
+
 
+
getEdgeWeight(E) - Method in class org.jgrapht.graph.AsWeightedGraph
+
 
+
getEdgeWeight(E) - Method in interface org.jgrapht.Graph
+
+
Returns the weight assigned to a given edge.
+
+
getEdgeWeight(E) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
getEdgeWeight(E) - Method in class org.jgrapht.graph.GraphUnion
+
 
+
getEdgeWeight(E) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
getEdgeWeight(E) - Method in class org.jgrapht.graph.Subgraph
+
 
+
getEndVertex() - Method in class org.jgrapht.graph.GraphPathImpl
+
 
+
getEndVertex() - Method in class org.jgrapht.graph.SimpleGraphPath
+
 
+
getEndVertex() - Method in interface org.jgrapht.GraphPath
+
+
Returns the end vertex in the path.
+
+
getEulerianCircuitVertices(UndirectedGraph<V, E>) - Static method in class org.jgrapht.alg.EulerianCircuit
+
+
This method will return a list of vertices which represents the Eulerian + circuit of the graph.
+
+
getFillEdges() - Method in class org.jgrapht.alg.CliqueMinimalSeparatorDecomposition
+
+
Get the fill edges generated by the triangulation.
+
+
getFirst() - Method in class org.jgrapht.util.VertexPair
+
 
+
getFlow() - Method in interface org.jgrapht.alg.interfaces.MaximumFlowAlgorithm.MaximumFlow
+
+
Returns mapping from edge to flow value through this particular edge
+
+
getFlow() - Method in class org.jgrapht.alg.interfaces.MaximumFlowAlgorithm.MaximumFlowImpl
+
 
+
getFullComponentCount() - Method in class org.jgrapht.alg.CliqueMinimalSeparatorDecomposition
+
+
Get a map to know for each separator how many components it produces.
+
+
getG1() - Method in class org.jgrapht.graph.GraphUnion
+
 
+
getG2() - Method in class org.jgrapht.graph.GraphUnion
+
 
+
getGenerators() - Method in class org.jgrapht.alg.CliqueMinimalSeparatorDecomposition
+
+
Get the generators of the separators of the triangulated graph, i.e.
+
+
getGraph() - Method in class org.jgrapht.alg.CliqueMinimalSeparatorDecomposition
+
+
Get the original graph.
+
+
getGraph() - Method in interface org.jgrapht.alg.cycle.DirectedSimpleCycles
+
+
Returns the graph on which the simple cycle search algorithm is executed + by this object.
+
+
getGraph() - Method in class org.jgrapht.alg.cycle.HawickJamesSimpleCycles
+
+
Returns the graph on which the simple cycle search algorithm is executed + by this object.
+
+
getGraph() - Method in class org.jgrapht.alg.cycle.JohnsonSimpleCycles
+
+
Returns the graph on which the simple cycle search algorithm is executed + by this object.
+
+
getGraph() - Method in class org.jgrapht.alg.cycle.PatonCycleBase
+
+
Returns the graph on which the cycle base search algorithm is executed by + this object.
+
+
getGraph() - Method in class org.jgrapht.alg.cycle.SzwarcfiterLauerSimpleCycles
+
+
Returns the graph on which the simple cycle search algorithm is executed + by this object.
+
+
getGraph() - Method in class org.jgrapht.alg.cycle.TarjanSimpleCycles
+
+
Returns the graph on which the simple cycle search algorithm is executed + by this object.
+
+
getGraph() - Method in class org.jgrapht.alg.cycle.TiernanSimpleCycles
+
+
Returns the graph on which the simple cycle search algorithm is executed + by this object.
+
+
getGraph() - Method in interface org.jgrapht.alg.cycle.UndirectedCycleBase
+
+
Returns the graph on which the cycle base search algorithm is executed by + this object.
+
+
getGraph() - Method in class org.jgrapht.alg.FloydWarshallShortestPaths
+
 
+
getGraph() - Method in class org.jgrapht.alg.GabowStrongConnectivityInspector
+
+
Returns the graph inspected
+
+
getGraph() - Method in interface org.jgrapht.alg.interfaces.StrongConnectivityAlgorithm
+
+
Returns the graph inspected by the StrongConnectivityAlgorithm.
+
+
getGraph() - Method in class org.jgrapht.alg.KosarajuStrongConnectivityInspector
+
+
Returns the graph inspected by the StrongConnectivityAlgorithm.
+
+
getGraph() - Method in class org.jgrapht.alg.StrongConnectivityInspector
+
+
Deprecated.
+
Returns the graph inspected by the StrongConnectivityAlgorithm.
+
+
getGraph() - Method in class org.jgrapht.graph.GraphPathImpl
+
 
+
getGraph() - Method in class org.jgrapht.graph.SimpleGraphPath
+
 
+
getGraph() - Method in interface org.jgrapht.GraphPath
+
+
Returns the graph over which this path is defined.
+
+
getGraph() - Method in class org.jgrapht.traverse.CrossComponentIterator
+
 
+
getInstance(DirectedAcyclicGraph.Region) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayImpl
+
 
+
getInstance(DirectedAcyclicGraph.Region) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayListImpl
+
 
+
getInstance(DirectedAcyclicGraph.Region) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedBitSetImpl
+
 
+
getInstance(DirectedAcyclicGraph.Region) - Method in interface org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedFactory
+
 
+
getInstance(DirectedAcyclicGraph.Region) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedHashSetImpl
+
 
+
getKey() - Method in class org.jgrapht.util.FibonacciHeapNode
+
+
Obtain the key for this node.
+
+
getLca() - Method in class org.jgrapht.alg.TarjanLowestCommonAncestor.LcaRequestResponse
+
 
+
getLowerBound(Map<V, Object>) - Method in interface org.jgrapht.experimental.alg.ApproximationAlgorithm
+
 
+
getLowerBound(Map<V, Object>) - Method in class org.jgrapht.experimental.alg.color.GreedyColoring
+
 
+
getMappings() - Method in interface org.jgrapht.alg.isomorphism.IsomorphismInspector
+
 
+
getMappings() - Method in class org.jgrapht.alg.isomorphism.VF2AbstractIsomorphismInspector
+
 
+
getMappings() - Method in class org.jgrapht.alg.isomorphism.VF2GraphIsomorphismInspector
+
 
+
getMappings() - Method in class org.jgrapht.alg.isomorphism.VF2SubgraphIsomorphismInspector
+
 
+
getMatching() - Method in class org.jgrapht.alg.EdmondsBlossomShrinking
+
 
+
getMatching() - Method in class org.jgrapht.alg.HopcroftKarpBipartiteMatching
+
 
+
getMatching() - Method in interface org.jgrapht.alg.interfaces.MatchingAlgorithm
+
+
Returns set of edges making up the matching
+
+
getMatching() - Method in class org.jgrapht.alg.KuhnMunkresMinimalWeightBipartitePerfectMatching
+
 
+
getMatching() - Method in class org.jgrapht.alg.MaximumWeightBipartiteMatching
+
 
+
getMatchingWeight() - Method in interface org.jgrapht.alg.interfaces.WeightedMatchingAlgorithm
+
+
Returns weight of a matching found
+
+
getMatchingWeight() - Method in class org.jgrapht.alg.KuhnMunkresMinimalWeightBipartitePerfectMatching
+
 
+
getMatchingWeight() - Method in class org.jgrapht.alg.MaximumWeightBipartiteMatching
+
 
+
getMaxEdgesForVertexNum(Graph<VV, EE>) - Method in class org.jgrapht.generate.RandomGraphGenerator.DefaultEdgeTopologyFactory
+
+
Return max edges for that graph.
+
+
getMaximumFlow() - Method in class org.jgrapht.alg.EdmondsKarpMaximumFlow
+
+
Deprecated.
+
Returns maximum flow, that was calculated during last + calculateMaximumFlow call, or null, if there was no + calculateMaximumFlow calls.
+
+
getMaximumFlowValue() - Method in class org.jgrapht.alg.EdmondsKarpMaximumFlow
+
+
Deprecated.
+
Returns maximum flow value, that was calculated during last + calculateMaximumFlow call, or null, if there was no + calculateMaximumFlow calls.
+
+
getMeo() - Method in class org.jgrapht.alg.CliqueMinimalSeparatorDecomposition
+
+
Get the minimal elimination ordering produced by the triangulation.
+
+
getMinimalTriangulation() - Method in class org.jgrapht.alg.CliqueMinimalSeparatorDecomposition
+
+
Get the minimal triangulation of the graph.
+
+
getMinimumSpanningTreeEdgeSet() - Method in interface org.jgrapht.alg.interfaces.MinimumSpanningTree
+
+
Returns edges set constituting the minimum spanning tree/forest
+
+
getMinimumSpanningTreeEdgeSet() - Method in class org.jgrapht.alg.KruskalMinimumSpanningTree
+
 
+
getMinimumSpanningTreeEdgeSet() - Method in class org.jgrapht.alg.PrimMinimumSpanningTree
+
 
+
getMinimumSpanningTreeTotalWeight() - Method in interface org.jgrapht.alg.interfaces.MinimumSpanningTree
+
+
Returns total weight of the minimum spanning tree/forest.
+
+
getMinimumSpanningTreeTotalWeight() - Method in class org.jgrapht.alg.KruskalMinimumSpanningTree
+
 
+
getMinimumSpanningTreeTotalWeight() - Method in class org.jgrapht.alg.PrimMinimumSpanningTree
+
 
+
getNumberOfExpandedNodes() - Method in class org.jgrapht.alg.AStarShortestPath
+
+
Returns how many nodes have been expanded in the A* search procedure in + its last invocation.
+
+
getOppositeVertex(Graph<V, E>, E, V) - Static method in class org.jgrapht.Graphs
+
+
Gets the vertex opposite another vertex across an edge.
+
+
getOther(V) - Method in class org.jgrapht.util.VertexPair
+
 
+
getParentMap() - Method in class org.jgrapht.alg.util.UnionFind
+
 
+
getPath() - Method in class org.jgrapht.alg.DijkstraShortestPath
+
+
Return the path found.
+
+
getPathEdgeList(V) - Method in class org.jgrapht.alg.BellmanFordShortestPath
+
 
+
getPathEdgeList() - Method in class org.jgrapht.alg.DijkstraShortestPath
+
+
Return the edges making up the path found.
+
+
getPathLength() - Method in class org.jgrapht.alg.DijkstraShortestPath
+
+
Return the weighted length of the path found.
+
+
getPaths(V) - Method in class org.jgrapht.alg.KShortestPaths
+
+
Returns the k shortest simple paths in increasing order of weight.
+
+
getPathVertexList(GraphPath<V, E>) - Static method in class org.jgrapht.Graphs
+
+
Gets the list of vertices visited by a path.
+
+
getPrintLabels() - Method in class org.jgrapht.ext.GmlExporter
+
+
Get whether to export the vertex and edge labels.
+
+
getRandomSeed() - Method in class org.jgrapht.generate.RandomGraphGenerator
+
 
+
getRankMap() - Method in class org.jgrapht.alg.util.UnionFind
+
 
+
getResult(Map<V, Object>) - Method in class org.jgrapht.experimental.alg.color.BrownBacktrackColoring
+
 
+
getResult(Map<V, Object>) - Method in interface org.jgrapht.experimental.alg.ExactAlgorithm
+
 
+
getSecond() - Method in class org.jgrapht.util.VertexPair
+
 
+
getSeenData(V) - Method in class org.jgrapht.traverse.CrossComponentIterator
+
+
Access the data stored for a seen vertex.
+
+
getSeparators() - Method in class org.jgrapht.alg.CliqueMinimalSeparatorDecomposition
+
+
Get the clique minimal separators.
+
+
getShortestPath(V, V, AStarAdmissibleHeuristic<V>) - Method in class org.jgrapht.alg.AStarShortestPath
+
+
Calculates (and returns) the shortest path from the sourceVertex to the + targetVertex.
+
+
getShortestPath(V, V) - Method in class org.jgrapht.alg.FloydWarshallShortestPaths
+
+
Get the shortest path between two vertices.
+
+
getShortestPathAsVertexList(V, V) - Method in class org.jgrapht.alg.FloydWarshallShortestPaths
+
 
+
getShortestPathLength(V) - Method in class org.jgrapht.traverse.ClosestFirstIterator
+
+
Get the weighted length of the shortest path known to the given vertex.
+
+
getShortestPaths(V) - Method in class org.jgrapht.alg.FloydWarshallShortestPaths
+
+
Get shortest paths from a vertex to all other vertices in the graph.
+
+
getShortestPaths() - Method in class org.jgrapht.alg.FloydWarshallShortestPaths
+
+
Get all shortest paths in the graph.
+
+
getShortestPathsCount() - Method in class org.jgrapht.alg.FloydWarshallShortestPaths
+
 
+
getSinkPartition() - Method in class org.jgrapht.alg.MinSourceSinkCut
+
+
Returns the min cut partition containing the sink
+
+
getSize() - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.Region
+
 
+
getSource() - Method in class org.jgrapht.graph.DefaultEdge
+
+
Retrieves the source of this edge.
+
+
getSourcePartition() - Method in class org.jgrapht.alg.MinSourceSinkCut
+
 
+
getSpanningTreeCost() - Method in class org.jgrapht.alg.KruskalMinimumSpanningTree
+
+
Deprecated.
+
+
getSpanningTreeEdge(V) - Method in class org.jgrapht.traverse.ClosestFirstIterator
+
+
Get the spanning tree edge reaching a vertex which has been seen already + in this traversal.
+
+
getStack() - Method in class org.jgrapht.traverse.DepthFirstIterator
+
+
Retrieves the LIFO stack of vertices which have been encountered but not + yet visited (WHITE).
+
+
getStartVertex() - Method in class org.jgrapht.graph.GraphPathImpl
+
 
+
getStartVertex() - Method in class org.jgrapht.graph.SimpleGraphPath
+
 
+
getStartVertex() - Method in interface org.jgrapht.GraphPath
+
+
Returns the start vertex in the path.
+
+
getTarget() - Method in class org.jgrapht.graph.DefaultEdge
+
+
Retrieves the target of this edge.
+
+
getTopologicalIndex(V) - Method in interface org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoOrderMapping
+
+
get the topological index of the given vertex.
+
+
getTopologicalIndex(V) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoVertexMap
+
 
+
getTopoOrderMapping() - Method in interface org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoOrderMappingFactory
+
 
+
getTopoOrderMapping() - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoVertexMap
+
 
+
getType() - Method in class org.jgrapht.event.ConnectedComponentTraversalEvent
+
+
Returns the event type.
+
+
getType() - Method in class org.jgrapht.event.GraphChangeEvent
+
+
Returns the event type.
+
+
getUnmodifiableIncomingEdges() - Method in class org.jgrapht.graph.AbstractBaseGraph.DirectedEdgeContainer
+
+
A lazy build of unmodifiable incoming edge set.
+
+
getUnmodifiableOutgoingEdges() - Method in class org.jgrapht.graph.AbstractBaseGraph.DirectedEdgeContainer
+
+
A lazy build of unmodifiable outgoing edge set.
+
+
getUpperBound(Map<V, Object>) - Method in interface org.jgrapht.experimental.alg.ApproximationAlgorithm
+
 
+
getUpperBound(Map<V, Object>) - Method in class org.jgrapht.experimental.alg.color.GreedyColoring
+
 
+
getValue() - Method in interface org.jgrapht.alg.interfaces.MaximumFlowAlgorithm.MaximumFlow
+
+
Returns value of the maximum-flow for the given network
+
+
getValue() - Method in class org.jgrapht.alg.interfaces.MaximumFlowAlgorithm.MaximumFlowImpl
+
 
+
getValue() - Method in class org.jgrapht.util.ModifiableInteger
+
+
Returns the value of this object, similarly to ModifiableInteger.intValue().
+
+
getVertex() - Method in class org.jgrapht.event.GraphVertexChangeEvent
+
+
Returns the vertex that this event is related to.
+
+
getVertex() - Method in class org.jgrapht.event.VertexTraversalEvent
+
+
Returns the traversed vertex.
+
+
getVertex(Integer) - Method in interface org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoOrderMapping
+
+
get the vertex at the given topological index.
+
+
getVertex(Integer) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoVertexMap
+
 
+
getVertexCell(Object) - Method in class org.jgrapht.ext.JGraphModelAdapter
+
+
Returns the JGraph vertex cell that corresponds to the specified JGraphT + vertex.
+
+
getVertexCorrespondence(V, boolean) - Method in class org.jgrapht.alg.isomorphism.IsomorphicGraphMapping
+
 
+
getVertexCorrespondence(V, boolean) - Method in class org.jgrapht.graph.DefaultGraphMapping
+
 
+
getVertexCorrespondence(V, boolean) - Method in interface org.jgrapht.GraphMapping
+
+
Gets the mapped value where the key is vertex
+
+
getVertexList() - Method in class org.jgrapht.graph.SimpleGraphPath
+
 
+
getVertexName(V) - Method in class org.jgrapht.ext.IntegerNameProvider
+
+
Returns the String representation of the unique integer representing a + vertex.
+
+
getVertexName(V) - Method in class org.jgrapht.ext.StringNameProvider
+
+
Returns the String representation of the unique integer representing a + vertex.
+
+
getVertexName(V) - Method in interface org.jgrapht.ext.VertexNameProvider
+
+
Returns a unique name for a vertex.
+
+
getVertexPort(Object) - Method in class org.jgrapht.ext.JGraphModelAdapter
+
+
Returns the JGraph port cell that corresponds to the specified JGraphT + vertex.
+
+
getVertexSet() - Method in class org.jgrapht.graph.AbstractBaseGraph.DirectedSpecifics
+
 
+
getVertexSet() - Method in class org.jgrapht.graph.AbstractBaseGraph.UndirectedSpecifics
+
 
+
getVertexToCellMap() - Method in class org.jgrapht.ext.JGraphXAdapter
+
+
Returns Hashmap which maps the vertices onto their visualization + mxICells.
+
+
getVisited(int) - Method in interface org.jgrapht.experimental.dag.DirectedAcyclicGraph.Visited
+
+
has the given topological index been visited?
+
+
getVisited(int) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayImpl
+
 
+
getVisited(int) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayListImpl
+
 
+
getVisited(int) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedBitSetImpl
+
 
+
getVisited(int) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedHashSetImpl
+
 
+
getWeight() - Method in class org.jgrapht.graph.DefaultWeightedEdge
+
+
Retrieves the weight of this edge.
+
+
getWeight() - Method in class org.jgrapht.graph.GraphPathImpl
+
 
+
getWeight() - Method in class org.jgrapht.graph.SimpleGraphPath
+
 
+
getWeight() - Method in interface org.jgrapht.GraphPath
+
+
Returns the weight assigned to the path.
+
+
GmlExporter<V,E> - Class in org.jgrapht.ext
+
+
Exports a graph into a GML file (Graph Modelling Language).
+
+
GmlExporter() - Constructor for class org.jgrapht.ext.GmlExporter
+
+
Creates a new GmlExporter object with integer name providers for the + vertex and edge IDs and null providers for the vertex and edge labels.
+
+
GmlExporter(VertexNameProvider<V>, VertexNameProvider<V>, EdgeNameProvider<E>, EdgeNameProvider<E>) - Constructor for class org.jgrapht.ext.GmlExporter
+
+
Constructs a new GmlExporter object with the given ID and label + providers.
+
+
graph - Variable in class org.jgrapht.alg.BellmanFordShortestPath
+
+
Graph on which shortest paths are searched.
+
+
Graph<V,E> - Interface in org.jgrapht
+
+
The root interface in the graph hierarchy.
+
+
graph - Variable in class org.jgrapht.graph.builder.AbstractGraphBuilder
+
 
+
graph1 - Variable in class org.jgrapht.alg.isomorphism.VF2AbstractIsomorphismInspector
+
 
+
graph2 - Variable in class org.jgrapht.alg.isomorphism.VF2AbstractIsomorphismInspector
+
 
+
GraphChangeEvent - Class in org.jgrapht.event
+
+
An event which indicates that a graph has changed.
+
+
GraphChangeEvent(Object, int) - Constructor for class org.jgrapht.event.GraphChangeEvent
+
+
Creates a new graph change event.
+
+
GraphDelegator<V,E> - Class in org.jgrapht.graph
+
+
A graph backed by the the graph specified at the constructor, which delegates + all its methods to the backing graph.
+
+
GraphDelegator(Graph<V, E>) - Constructor for class org.jgrapht.graph.GraphDelegator
+
+
Constructor for GraphDelegator.
+
+
GraphEdgeChangeEvent<V,E> - Class in org.jgrapht.event
+
+
An event which indicates that a graph edge has changed, or is about to + change.
+
+
GraphEdgeChangeEvent(Object, int, E) - Constructor for class org.jgrapht.event.GraphEdgeChangeEvent
+
+
Deprecated. +
Use new constructor which takes vertex parameters.
+
+
+
GraphEdgeChangeEvent(Object, int, E, V, V) - Constructor for class org.jgrapht.event.GraphEdgeChangeEvent
+
+
Constructor for GraphEdgeChangeEvent.
+
+
GraphGenerator<V,E,T> - Interface in org.jgrapht.generate
+
+
GraphGenerator defines an interface for generating new graph structures.
+
+
GraphHelper - Class in org.jgrapht
+
+
Deprecated. +
Use Graphs instead.
+
+
+
GraphHelper() - Constructor for class org.jgrapht.GraphHelper
+
+
Deprecated.
+
GraphIterator<V,E> - Interface in org.jgrapht.traverse
+
+
A graph iterator.
+
+
GraphListener<V,E> - Interface in org.jgrapht.event
+
+
A listener that is notified when the graph changes.
+
+
GraphMapping<V,E> - Interface in org.jgrapht
+
+
GraphMapping represents a bidirectional mapping between two graphs (called + graph1 and graph2), which allows the caller to obtain the matching vertex or + edge in either direction, from graph1 to graph2, or from graph2 to graph1.
+
+
GraphMLExporter<V,E> - Class in org.jgrapht.ext
+
+
Exports a graph into a GraphML file.
+
+
GraphMLExporter() - Constructor for class org.jgrapht.ext.GraphMLExporter
+
+
Constructs a new GraphMLExporter object with integer name providers for + the vertex and edge IDs and null providers for the vertex and edge + labels.
+
+
GraphMLExporter(VertexNameProvider<V>, VertexNameProvider<V>, EdgeNameProvider<E>, EdgeNameProvider<E>) - Constructor for class org.jgrapht.ext.GraphMLExporter
+
+
Constructs a new GraphMLExporter object with the given ID and label + providers.
+
+
GraphPath<V,E> - Interface in org.jgrapht
+
+
A GraphPath represents a + path in a Graph.
+
+
GraphPathImpl<V,E> - Class in org.jgrapht.graph
+
+
GraphPathImpl is a default implementation of GraphPath.
+
+
GraphPathImpl(Graph<V, E>, V, V, List<E>, double) - Constructor for class org.jgrapht.graph.GraphPathImpl
+
 
+
GraphReader<V,E> - Class in org.jgrapht.experimental
+
 
+
GraphReader(Reader) - Constructor for class org.jgrapht.experimental.GraphReader
+
+
Construct a new GraphReader.
+
+
GraphReader(Reader, double) - Constructor for class org.jgrapht.experimental.GraphReader
+
+
Construct a new GraphReader.
+
+
Graphs - Class in org.jgrapht
+
+
A collection of utilities to assist with graph manipulation.
+
+
Graphs() - Constructor for class org.jgrapht.Graphs
+
 
+
GraphSquare<V,E> - Class in org.jgrapht.experimental
+
+
DOCUMENT ME!
+
+
GraphSquare(Graph<V, E>, boolean) - Constructor for class org.jgrapht.experimental.GraphSquare
+
+
Constructor for GraphSquare.
+
+
GraphTests<V,E> - Class in org.jgrapht.experimental
+
 
+
GraphUnion<V,E,G extends Graph<V,E>> - Class in org.jgrapht.graph
+
+
Read-only union of two graphs: G1 and G2.
+
+
GraphUnion(G, G, WeightCombiner) - Constructor for class org.jgrapht.graph.GraphUnion
+
 
+
GraphUnion(G, G) - Constructor for class org.jgrapht.graph.GraphUnion
+
 
+
GraphVertexChangeEvent<V> - Class in org.jgrapht.event
+
+
An event which indicates that a graph vertex has changed, or is about to + change.
+
+
GraphVertexChangeEvent(Object, int, V) - Constructor for class org.jgrapht.event.GraphVertexChangeEvent
+
+
Creates a new GraphVertexChangeEvent object.
+
+
GreedyColoring<V,E> - Class in org.jgrapht.experimental.alg.color
+
 
+
GreedyColoring(Graph<V, E>) - Constructor for class org.jgrapht.experimental.alg.color.GreedyColoring
+
 
+
GreedyColoring(Graph<V, E>, int) - Constructor for class org.jgrapht.experimental.alg.color.GreedyColoring
+
 
+
GridGraphGenerator<V,E> - Class in org.jgrapht.generate
+
+
Generates a bidirectional grid graph of any + size.
+
+
GridGraphGenerator(int, int) - Constructor for class org.jgrapht.generate.GridGraphGenerator
+
+
Creates a new GridGraphGenerator object with rows x cols dimension.
+
+
gScoreMap - Variable in class org.jgrapht.alg.AStarShortestPath
+
 
+
+ + + +

H

+
+
HamiltonianCycle - Class in org.jgrapht.alg
+
+
This class will deal with finding the optimal or approximately optimal + minimum tour (hamiltonian cycle) or commonly known as the Traveling + Salesman Problem.
+
+
HamiltonianCycle() - Constructor for class org.jgrapht.alg.HamiltonianCycle
+
 
+
hasEdgeCorrespondence(E) - Method in class org.jgrapht.alg.isomorphism.IsomorphicGraphMapping
+
+
Checks if a edge e from the first graph has a corresponding edge in the + second graph
+
+
hashCode() - Method in class org.jgrapht.alg.util.Pair
+
 
+
hashCode() - Method in class org.jgrapht.graph.AbstractGraph
+
+
Returns a hash code value for this graph.
+
+
hashCode() - Method in class org.jgrapht.util.ArrayUnenforcedSet
+
 
+
hashCode() - Method in class org.jgrapht.util.ModifiableInteger
+
+
Returns a hash code for this ModifiableInteger.
+
+
hashCode() - Method in class org.jgrapht.util.VertexPair
+
 
+
hasMoreElements() - Method in class org.jgrapht.util.PrefetchIterator
+
+
If (isGetNextLastResultUpToDate==true) returns true else 1.
+
+
hasNext() - Method in class org.jgrapht.traverse.CrossComponentIterator
+
 
+
hasNext() - Method in class org.jgrapht.util.PrefetchIterator
+
 
+
hasVertex(V) - Method in class org.jgrapht.util.VertexPair
+
+
Assess if this pair contains the vertex.
+
+
hasVertexCorrespondence(V) - Method in class org.jgrapht.alg.isomorphism.IsomorphicGraphMapping
+
+
Checks if a vertex v from the first graph has a corresponding vertex in + the second graph
+
+
HawickJamesSimpleCycles<V,E> - Class in org.jgrapht.alg.cycle
+
+
Find all simple cycles of a directed graph using the algorithm described by + Hawick and James.
+
+
HawickJamesSimpleCycles() - Constructor for class org.jgrapht.alg.cycle.HawickJamesSimpleCycles
+
+
Create a simple cycle finder with an unspecified graph.
+
+
HawickJamesSimpleCycles(DirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.cycle.HawickJamesSimpleCycles
+
+
Create a simple cycle finder for the specified graph.
+
+
HelloJGraphT - Class in org.jgrapht.demo
+
+
A simple introduction to using JGraphT.
+
+
HopcroftKarpBipartiteMatching<V,E> - Class in org.jgrapht.alg
+
+
This class is an implementation of the Hopcroft-Karp algorithm which finds a + maximum matching in an undirected simple bipartite graph.
+
+
HopcroftKarpBipartiteMatching(UndirectedGraph<V, E>, Set<V>, Set<V>) - Constructor for class org.jgrapht.alg.HopcroftKarpBipartiteMatching
+
 
+
HUB_VERTEX - Static variable in class org.jgrapht.generate.WheelGraphGenerator
+
+
Role for the hub vertex.
+
+
HyperCubeGraphGenerator<V,E> - Class in org.jgrapht.generate
+
+
Generates a hyper + cube graph of any size.
+
+
HyperCubeGraphGenerator(int) - Constructor for class org.jgrapht.generate.HyperCubeGraphGenerator
+
+
Creates a new HyperCubeGraphGenerator object.
+
+
+ + + +

I

+
+
ImportException - Exception in org.jgrapht.ext
+
+
Used to show problems with importing a graph.
+
+
ImportException(String) - Constructor for exception org.jgrapht.ext.ImportException
+
 
+
ImportException(String, Throwable) - Constructor for exception org.jgrapht.ext.ImportException
+
 
+
incomingEdgesOf(V) - Method in interface org.jgrapht.DirectedGraph
+
+
Returns a set of all edges incoming into the specified vertex.
+
+
incomingEdgesOf(V) - Method in class org.jgrapht.graph.AbstractBaseGraph.DirectedSpecifics
+
 
+
incomingEdgesOf(V) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
incomingEdgesOf(V) - Method in class org.jgrapht.graph.AbstractBaseGraph.UndirectedSpecifics
+
 
+
incomingEdgesOf(V) - Method in class org.jgrapht.graph.AsUndirectedGraph
+
 
+
incomingEdgesOf(V) - Method in class org.jgrapht.graph.DirectedGraphUnion
+
 
+
incomingEdgesOf(V) - Method in class org.jgrapht.graph.DirectedSubgraph
+
 
+
incomingEdgesOf(V) - Method in class org.jgrapht.graph.EdgeReversedGraph
+
 
+
incomingEdgesOf(V) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
incomingEdgesOf(V) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
incomingEdgesOf(V) - Method in class org.jgrapht.graph.MixedGraphUnion
+
 
+
increment() - Method in class org.jgrapht.util.ModifiableInteger
+
+
Adds one to the value of this modifiable integer.
+
+
inDegreeOf(V) - Method in interface org.jgrapht.DirectedGraph
+
+
Returns the "in degree" of the specified vertex.
+
+
inDegreeOf(V) - Method in class org.jgrapht.graph.AbstractBaseGraph.DirectedSpecifics
+
 
+
inDegreeOf(V) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
inDegreeOf(V) - Method in class org.jgrapht.graph.AbstractBaseGraph.UndirectedSpecifics
+
 
+
inDegreeOf(V) - Method in class org.jgrapht.graph.AsUndirectedGraph
+
 
+
inDegreeOf(V) - Method in class org.jgrapht.graph.DirectedGraphUnion
+
 
+
inDegreeOf(V) - Method in class org.jgrapht.graph.DirectedSubgraph
+
 
+
inDegreeOf(V) - Method in class org.jgrapht.graph.EdgeReversedGraph
+
 
+
inDegreeOf(V) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
inDegreeOf(V) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
inDegreeOf(V) - Method in class org.jgrapht.graph.MixedGraphUnion
+
 
+
init() - Method in class org.jgrapht.demo.JGraphAdapterDemo
+
init() - Method in class org.jgrapht.demo.JGraphXAdapterDemo
+
initialize(PushRelabelMaximumFlow<V, E>.VertexExtension, PushRelabelMaximumFlow<V, E>.VertexExtension, Queue<PushRelabelMaximumFlow<V, E>.VertexExtension>) - Method in class org.jgrapht.alg.flow.PushRelabelMaximumFlow
+
 
+
insert(FibonacciHeapNode<T>, double) - Method in class org.jgrapht.util.FibonacciHeap
+
+
Inserts a new data element into the heap.
+
+
INSTANCE - Static variable in class org.jgrapht.alg.TransitiveClosure
+
+
Singleton instance.
+
+
INSTANCE - Static variable in class org.jgrapht.alg.TransitiveReduction
+
+
Singleton instance.
+
+
IntArrayGraphAlgorithm<V,E> - Class in org.jgrapht.experimental.alg
+
 
+
IntArrayGraphAlgorithm(Graph<V, E>) - Constructor for class org.jgrapht.experimental.alg.IntArrayGraphAlgorithm
+
 
+
IntegerEdgeNameProvider<E> - Class in org.jgrapht.ext
+
+
Assigns a unique integer to represent each edge.
+
+
IntegerEdgeNameProvider() - Constructor for class org.jgrapht.ext.IntegerEdgeNameProvider
+
 
+
IntegerNameProvider<V> - Class in org.jgrapht.ext
+
+
Assigns a unique integer to represent each vertex.
+
+
IntegerNameProvider() - Constructor for class org.jgrapht.ext.IntegerNameProvider
+
 
+
intValue() - Method in class org.jgrapht.util.ModifiableInteger
+
 
+
isAllowingLoops() - Method in class org.jgrapht.graph.AbstractBaseGraph
+
+
Returns true if and only if self-loops are allowed in this + graph.
+
+
isAllowingMultipleEdges() - Method in class org.jgrapht.graph.AbstractBaseGraph
+
+
Returns true if and only if multiple edges are allowed in + this graph.
+
+
isBiconnected() - Method in class org.jgrapht.alg.BiconnectivityInspector
+
+
Returns true if the graph is biconnected (no cutpoint), + false otherwise.
+
+
isBipartite(Graph<V, E>) - Static method in class org.jgrapht.experimental.GraphTests
+
 
+
isChordal() - Method in class org.jgrapht.alg.CliqueMinimalSeparatorDecomposition
+
+
Check if the graph is chordal.
+
+
isComplete(Graph<V, E>) - Static method in class org.jgrapht.experimental.GraphTests
+
 
+
isConnected(Graph<V, E>) - Static method in class org.jgrapht.experimental.GraphTests
+
 
+
isConnectedComponentExhausted() - Method in class org.jgrapht.traverse.BreadthFirstIterator
+
 
+
isConnectedComponentExhausted() - Method in class org.jgrapht.traverse.ClosestFirstIterator
+
 
+
isConnectedComponentExhausted() - Method in class org.jgrapht.traverse.CrossComponentIterator
+
+
Returns true if there are no more uniterated vertices in the + currently iterated connected component; false otherwise.
+
+
isConnectedComponentExhausted() - Method in class org.jgrapht.traverse.DepthFirstIterator
+
 
+
isConnectedComponentExhausted() - Method in class org.jgrapht.traverse.TopologicalOrderIterator
+
 
+
isCrossComponentTraversal() - Method in class org.jgrapht.traverse.AbstractGraphIterator
+
+
Test whether this iterator is set to traverse the graph across connected + components.
+
+
isCrossComponentTraversal() - Method in interface org.jgrapht.traverse.GraphIterator
+
+
Test whether this iterator is set to traverse the grpah across connected + components.
+
+
isCutpoint(V) - Method in class org.jgrapht.alg.BlockCutpointGraph
+
+
Returns true if the vertex is a cutpoint, false + otherwise.
+
+
isEdgeMasked(E) - Method in interface org.jgrapht.graph.MaskFunctor
+
+
Returns true if the edge is masked, false + otherwise.
+
+
isEmpty(Graph<V, E>) - Static method in class org.jgrapht.experimental.GraphTests
+
 
+
isEmpty() - Method in class org.jgrapht.util.FibonacciHeap
+
+
Tests if the Fibonacci heap is empty or not.
+
+
isEnumerationStartedEmpty() - Method in class org.jgrapht.util.PrefetchIterator
+
+
Tests whether the enumeration started as an empty one.
+
+
isEqualMapping(GraphMapping<V, E>) - Method in class org.jgrapht.alg.isomorphism.IsomorphicGraphMapping
+
+
Checks for equality.
+
+
isEulerian(UndirectedGraph<V, E>) - Static method in class org.jgrapht.alg.EulerianCircuit
+
+
This method will check whether the graph passed in is Eulerian or not.
+
+
isExact() - Method in interface org.jgrapht.experimental.alg.ApproximationAlgorithm
+
 
+
isExact() - Method in class org.jgrapht.experimental.alg.color.GreedyColoring
+
 
+
isGraphConnected() - Method in class org.jgrapht.alg.ConnectivityInspector
+
+
Test if the inspected graph is connected.
+
+
isIn(int) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.Region
+
 
+
isNumberOfEdgesValid(Graph<VV, EE>, int) - Method in class org.jgrapht.generate.RandomGraphGenerator.DefaultEdgeTopologyFactory
+
+
checks if the numOfEdges is smaller than the Max edges according to + the following table:
+
+
isNumberOfEdgesValid(Graph<VV, EE>, int) - Method in interface org.jgrapht.generate.RandomGraphGenerator.EdgeTopologyFactory
+
+
Checks if the graph can contain the givven numberOfEdges according to + the graph type restrictions.
+
+
IsomorphicGraphMapping<V,E> - Class in org.jgrapht.alg.isomorphism
+
+
This class represents a GraphMapping between two (subgraph)isomorphic graphs.
+
+
IsomorphicGraphMapping(GraphOrdering<V, E>, GraphOrdering<V, E>, int[], int[]) - Constructor for class org.jgrapht.alg.isomorphism.IsomorphicGraphMapping
+
 
+
isomorphismExists() - Method in interface org.jgrapht.alg.isomorphism.IsomorphismInspector
+
 
+
isomorphismExists() - Method in class org.jgrapht.alg.isomorphism.VF2AbstractIsomorphismInspector
+
 
+
IsomorphismInspector<V,E> - Interface in org.jgrapht.alg.isomorphism
+
+
This is a general interface for graph and subgraph isomorphism.
+
+
isReuseEvents() - Method in class org.jgrapht.graph.DefaultListenableGraph
+
+
Tests whether the reuseEvents flag is set.
+
+
isReuseEvents() - Method in class org.jgrapht.traverse.AbstractGraphIterator
+
 
+
isReuseEvents() - Method in interface org.jgrapht.traverse.GraphIterator
+
+
Tests whether the reuseEvents flag is set.
+
+
isSeenVertex(Object) - Method in class org.jgrapht.traverse.CrossComponentIterator
+
+
Determines whether a vertex has been seen yet by this traversal.
+
+
isStronglyConnected() - Method in class org.jgrapht.alg.GabowStrongConnectivityInspector
+
+
Returns true if the graph instance is strongly connected.
+
+
isStronglyConnected() - Method in interface org.jgrapht.alg.interfaces.StrongConnectivityAlgorithm
+
+
Returns true if the graph of this + StrongConnectivityAlgorithm instance is strongly connected.
+
+
isStronglyConnected() - Method in class org.jgrapht.alg.KosarajuStrongConnectivityInspector
+
+
Returns true if the graph of this + StronglyConnectivityInspector instance is strongly connected.
+
+
isStronglyConnected() - Method in class org.jgrapht.alg.StrongConnectivityInspector
+
+
Deprecated.
+
Returns true if the graph of this + StronglyConnectivityInspector instance is strongly connected.
+
+
isTree(Graph<V, E>) - Static method in class org.jgrapht.experimental.GraphTests
+
 
+
isVertexMasked(V) - Method in interface org.jgrapht.graph.MaskFunctor
+
+
Returns true if the vertex is masked, false + otherwise.
+
+
iterator() - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph
+
+
iterator will traverse the vertices in topological order, meaning that + for a directed graph G = (V,E), if there exists a path from vertex va to + vertex vb then va is guaranteed to come before vertex vb in the iteration + order.
+
+
+ + + +

J

+
+
JGraphAdapterDemo - Class in org.jgrapht.demo
+
+
A demo applet that shows how to use JGraph to visualize JGraphT graphs.
+
+
JGraphAdapterDemo() - Constructor for class org.jgrapht.demo.JGraphAdapterDemo
+
 
+
JGraphModelAdapter<V,E> - Class in org.jgrapht.ext
+
+
An adapter that reflects a JGraphT graph as a JGraph graph.
+
+
JGraphModelAdapter(Graph<V, E>) - Constructor for class org.jgrapht.ext.JGraphModelAdapter
+
+
Constructs a new JGraph model adapter for the specified JGraphT graph.
+
+
JGraphModelAdapter(Graph<V, E>, AttributeMap, AttributeMap) - Constructor for class org.jgrapht.ext.JGraphModelAdapter
+
+
Constructs a new JGraph model adapter for the specified JGraphT graph.
+
+
JGraphModelAdapter(Graph<V, E>, AttributeMap, AttributeMap, JGraphModelAdapter.CellFactory<V, E>) - Constructor for class org.jgrapht.ext.JGraphModelAdapter
+
+
Constructs a new JGraph model adapter for the specified JGraphT graph.
+
+
JGraphModelAdapter.CellFactory<VV,EE> - Interface in org.jgrapht.ext
+
+
Creates the JGraph cells that reflect the respective JGraphT elements.
+
+
JGraphModelAdapter.DefaultCellFactory<VV,EE> - Class in org.jgrapht.ext
+
+
A simple default cell factory.
+
+
JGraphModelAdapter.DefaultCellFactory() - Constructor for class org.jgrapht.ext.JGraphModelAdapter.DefaultCellFactory
+
 
+
JGraphXAdapter<V,E> - Class in org.jgrapht.ext
+
+
Adapter to draw a JGraphT graph with the JGraphX drawing library.
+
+
JGraphXAdapter(ListenableGraph<V, E>) - Constructor for class org.jgrapht.ext.JGraphXAdapter
+
+
Constructs and draws a new ListenableGraph.
+
+
JGraphXAdapter(Graph<V, E>) - Constructor for class org.jgrapht.ext.JGraphXAdapter
+
+
Constructs and draws a new mxGraph from a jGraphT graph.
+
+
JGraphXAdapterDemo - Class in org.jgrapht.demo
+
+
A demo applet that shows how to use JGraphX to visualize JGraphT graphs.
+
+
JGraphXAdapterDemo() - Constructor for class org.jgrapht.demo.JGraphXAdapterDemo
+
 
+
JohnsonSimpleCycles<V,E> - Class in org.jgrapht.alg.cycle
+
+
Find all simple cycles of a directed graph using the Johnson's algorithm.
+
+
JohnsonSimpleCycles() - Constructor for class org.jgrapht.alg.cycle.JohnsonSimpleCycles
+
+
Create a simple cycle finder with an unspecified graph.
+
+
JohnsonSimpleCycles(DirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.cycle.JohnsonSimpleCycles
+
+
Create a simple cycle finder for the specified graph.
+
+
+ + + +

K

+
+
KosarajuStrongConnectivityInspector<V,E> - Class in org.jgrapht.alg
+
+
Complements the ConnectivityInspector class with + the capability to compute the strongly connected components of a directed + graph.
+
+
KosarajuStrongConnectivityInspector(DirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.KosarajuStrongConnectivityInspector
+
+
The constructor of the StrongConnectivityAlgorithm class.
+
+
KruskalMinimumSpanningTree<V,E> - Class in org.jgrapht.alg
+
+ +
+
KruskalMinimumSpanningTree(Graph<V, E>) - Constructor for class org.jgrapht.alg.KruskalMinimumSpanningTree
+
+
Creates and executes a new KruskalMinimumSpanningTree algorithm instance.
+
+
KShortestPaths<V,E> - Class in org.jgrapht.alg
+
+
The algorithm determines the k shortest simple paths in increasing order of + weight.
+
+
KShortestPaths(Graph<V, E>, V, int) - Constructor for class org.jgrapht.alg.KShortestPaths
+
+
Creates an object to compute ranking shortest paths between the start + vertex and others vertices.
+
+
KShortestPaths(Graph<V, E>, V, int, int) - Constructor for class org.jgrapht.alg.KShortestPaths
+
+
Creates an object to calculate ranking shortest paths between the start + vertex and others vertices.
+
+
KuhnMunkresMinimalWeightBipartitePerfectMatching<V,E> - Class in org.jgrapht.alg
+
+
Kuhn-Munkres algorithm (named in honor of Harold Kuhn and James Munkres) + solving assignment problem also known as hungarian algorithm + (in the honor of hungarian mathematicians Dénes K?nig and Jen? Egerváry).
+
+
KuhnMunkresMinimalWeightBipartitePerfectMatching(WeightedGraph<V, E>, List<? extends V>, List<? extends V>) - Constructor for class org.jgrapht.alg.KuhnMunkresMinimalWeightBipartitePerfectMatching
+
 
+
KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation<V,E> - Class in org.jgrapht.alg
+
+
...
+
+
KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation(WeightedGraph<V, E>, List<? extends V>, List<? extends V>) - Constructor for class org.jgrapht.alg.KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation
+
 
+
KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.MatchExtender - Class in org.jgrapht.alg
+
+
Aggregates utilities to extend matching
+
+
+ + + +

L

+
+
LARGEST_SATURATION_FIRST_ORDER - Static variable in class org.jgrapht.experimental.alg.color.GreedyColoring
+
 
+
LinearGraphGenerator<V,E> - Class in org.jgrapht.generate
+
+
Generates a linear graph of any size.
+
+
LinearGraphGenerator(int) - Constructor for class org.jgrapht.generate.LinearGraphGenerator
+
+
Construct a new LinearGraphGenerator.
+
+
link(FibonacciHeapNode<T>, FibonacciHeapNode<T>) - Method in class org.jgrapht.util.FibonacciHeap
+
+
Make node y a child of node x.
+
+
ListenableDirectedGraph<V,E> - Class in org.jgrapht.graph
+
+
A directed graph which is also ListenableGraph.
+
+
ListenableDirectedGraph(Class<? extends E>) - Constructor for class org.jgrapht.graph.ListenableDirectedGraph
+
+
Creates a new listenable directed graph.
+
+
ListenableDirectedGraph(DirectedGraph<V, E>) - Constructor for class org.jgrapht.graph.ListenableDirectedGraph
+
+
Creates a new listenable directed graph.
+
+
ListenableDirectedWeightedGraph<V,E> - Class in org.jgrapht.graph
+
+
A directed weighted graph which is also ListenableGraph.
+
+
ListenableDirectedWeightedGraph(Class<? extends E>) - Constructor for class org.jgrapht.graph.ListenableDirectedWeightedGraph
+
+
Creates a new listenable directed weighted graph.
+
+
ListenableDirectedWeightedGraph(WeightedGraph<V, E>) - Constructor for class org.jgrapht.graph.ListenableDirectedWeightedGraph
+
+
Creates a new listenable directed weighted graph.
+
+
ListenableGraph<V,E> - Interface in org.jgrapht
+
+
A graph that supports listeners on structural change events.
+
+
ListenableUndirectedGraph<V,E> - Class in org.jgrapht.graph
+
+
An undirected graph which is also ListenableGraph.
+
+
ListenableUndirectedGraph(Class<? extends E>) - Constructor for class org.jgrapht.graph.ListenableUndirectedGraph
+
+
Creates a new listenable undirected simple graph.
+
+
ListenableUndirectedGraph(UndirectedGraph<V, E>) - Constructor for class org.jgrapht.graph.ListenableUndirectedGraph
+
+
Creates a new listenable undirected graph.
+
+
ListenableUndirectedWeightedGraph<V,E> - Class in org.jgrapht.graph
+
+
An undirected weighted graph which is also ListenableGraph.
+
+
ListenableUndirectedWeightedGraph(Class<? extends E>) - Constructor for class org.jgrapht.graph.ListenableUndirectedWeightedGraph
+
+
Creates a new listenable undirected weighted graph.
+
+
ListenableUndirectedWeightedGraph(WeightedGraph<V, E>) - Constructor for class org.jgrapht.graph.ListenableUndirectedWeightedGraph
+
+
Creates a new listenable undirected weighted graph.
+
+
longValue() - Method in class org.jgrapht.util.ModifiableInteger
+
 
+
+ + + +

M

+
+
main(String[]) - Static method in class org.jgrapht.demo.CompleteGraphDemo
+
 
+
main(String[]) - Static method in class org.jgrapht.demo.HelloJGraphT
+
+
The starting point for the demo.
+
+
main(String[]) - Static method in class org.jgrapht.demo.JGraphAdapterDemo
+
+
An alternative starting point for this demo, to also allow running this + applet as an application.
+
+
main(String[]) - Static method in class org.jgrapht.demo.JGraphXAdapterDemo
+
+
An alternative starting point for this demo, to also allow running this + applet as an application.
+
+
main(String[]) - Static method in class org.jgrapht.demo.PerformanceDemo
+
+
The starting point for the demo.
+
+
MaskFunctor<V,E> - Interface in org.jgrapht.graph
+
+
A functor interface for masking out vertices and edges of a graph.
+
+
MaskSubgraph<V,E> - Class in org.jgrapht.graph
+
+
An unmodifiable subgraph induced by a vertex/edge masking function.
+
+
MaskSubgraph(Graph<V, E>, MaskFunctor<V, E>) - Constructor for class org.jgrapht.graph.MaskSubgraph
+
+
Creates a new induced subgraph.
+
+
MatchingAlgorithm<V,E> - Interface in org.jgrapht.alg.interfaces
+
+
Allows to derive matching from + given graph
+
+
MathUtil - Class in org.jgrapht.util
+
+
Math Utilities.
+
+
MathUtil() - Constructor for class org.jgrapht.util.MathUtil
+
 
+
MatrixExporter<V,E> - Class in org.jgrapht.ext
+
+
Exports a graph to a plain text matrix format, which can be processed by + matrix manipulation software, such as + MTJ or MATLAB.
+
+
MatrixExporter() - Constructor for class org.jgrapht.ext.MatrixExporter
+
+
Creates a new MatrixExporter object.
+
+
MAX - Static variable in interface org.jgrapht.util.WeightCombiner
+
+
Maximum weight.
+
+
MaximumFlowAlgorithm<V,E> - Interface in org.jgrapht.alg.interfaces
+
+
Allows to derive maximum-flow + from the supplied flow + network
+
+
MaximumFlowAlgorithm.MaximumFlow<V,E> - Interface in org.jgrapht.alg.interfaces
+
 
+
MaximumFlowAlgorithm.MaximumFlowImpl<V,E> - Class in org.jgrapht.alg.interfaces
+
 
+
MaximumFlowAlgorithm.MaximumFlowImpl(Double, Map<E, Double>) - Constructor for class org.jgrapht.alg.interfaces.MaximumFlowAlgorithm.MaximumFlowImpl
+
 
+
MaximumFlowAlgorithmBase<V,E> - Class in org.jgrapht.alg.flow
+
+
Base class backing algorithms allowing to derive maximum-flow + from the supplied flow + network
+
+
MaximumFlowAlgorithmBase() - Constructor for class org.jgrapht.alg.flow.MaximumFlowAlgorithmBase
+
 
+
MaximumWeightBipartiteMatching<V,E> - Class in org.jgrapht.alg
+
+
This class finds a maximum weight matching of a simple undirected weighted + bipartite graph.
+
+
MaximumWeightBipartiteMatching(WeightedGraph<V, E>, Set<V>, Set<V>) - Constructor for class org.jgrapht.alg.MaximumWeightBipartiteMatching
+
+
Creates a new MaximumWeightBipartiteMatching algorithm instance.
+
+
mergeVertices(Set<V>, Set<V>) - Method in class org.jgrapht.alg.StoerWagnerMinimumCut
+
+
Merges vertex t into vertex s, summing the weights as required.
+
+
min() - Method in class org.jgrapht.util.FibonacciHeap
+
+
Returns the smallest element in the heap.
+
+
MIN - Static variable in interface org.jgrapht.util.WeightCombiner
+
+
Minimum weight.
+
+
minCut() - Method in class org.jgrapht.alg.StoerWagnerMinimumCut
+
+
Return a set of vertices on one side of the cut
+
+
minCutWeight() - Method in class org.jgrapht.alg.StoerWagnerMinimumCut
+
+
Return the weight of the minimum cut
+
+
minimumCutPhase(Set<V>) - Method in class org.jgrapht.alg.StoerWagnerMinimumCut
+
+
Implements the MinimumCutPhase function of Stoer and Wagner
+
+
MinimumSpanningTree<V,E> - Interface in org.jgrapht.alg.interfaces
+
+
Allows to derive + minimum spanning tree from given undirected connected graph.
+
+
MinSourceSinkCut<V,E> - Class in org.jgrapht.alg
+
+
Given a directed, weighted graph G(V,E).
+
+
MinSourceSinkCut(DirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.MinSourceSinkCut
+
 
+
MinSourceSinkCut(DirectedGraph<V, E>, double) - Constructor for class org.jgrapht.alg.MinSourceSinkCut
+
 
+
MixedGraphUnion<V,E> - Class in org.jgrapht.graph
+
 
+
MixedGraphUnion(UndirectedGraph<V, E>, DirectedGraph<V, E>, WeightCombiner) - Constructor for class org.jgrapht.graph.MixedGraphUnion
+
 
+
MixedGraphUnion(UndirectedGraph<V, E>, DirectedGraph<V, E>) - Constructor for class org.jgrapht.graph.MixedGraphUnion
+
 
+
ModifiableInteger - Class in org.jgrapht.util
+
+
The ModifiableInteger class wraps a value of the primitive type + int in an object, similarly to Integer.
+
+
ModifiableInteger() - Constructor for class org.jgrapht.util.ModifiableInteger
+
+
Deprecated. +
not really deprecated, just marked so to avoid mistaken use.
+
+
+
ModifiableInteger(int) - Constructor for class org.jgrapht.util.ModifiableInteger
+
+
Constructs a newly allocated ModifiableInteger object that + represents the specified int value.
+
+
MULT - Static variable in interface org.jgrapht.util.WeightCombiner
+
+
Multiplication of weights.
+
+
Multigraph<V,E> - Class in org.jgrapht.graph
+
+
A multigraph.
+
+
Multigraph(Class<? extends E>) - Constructor for class org.jgrapht.graph.Multigraph
+
+
Creates a new multigraph.
+
+
Multigraph(EdgeFactory<V, E>) - Constructor for class org.jgrapht.graph.Multigraph
+
+
Creates a new multigraph with the specified edge factory.
+
+
+ + + +

N

+
+
NaiveLcaFinder<V,E> - Class in org.jgrapht.alg
+
 
+
NaiveLcaFinder(DirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.NaiveLcaFinder
+
+
Find the Lowest Common Ancestor of a directed graph.
+
+
NATURAL_ORDER - Static variable in class org.jgrapht.experimental.alg.color.GreedyColoring
+
 
+
NeighborIndex<V,E> - Class in org.jgrapht.alg
+
+
Maintains a cache of each vertex's neighbors.
+
+
NeighborIndex(Graph<V, E>) - Constructor for class org.jgrapht.alg.NeighborIndex
+
+
Creates a neighbor index for the specified undirected graph.
+
+
neighborListOf(V) - Method in class org.jgrapht.alg.NeighborIndex
+
+
Returns a list of vertices which are adjacent to a specified vertex.
+
+
neighborListOf(Graph<V, E>, V) - Static method in class org.jgrapht.Graphs
+
+
Returns a list of vertices that are the neighbors of a specified vertex.
+
+
neighborsOf(V) - Method in class org.jgrapht.alg.NeighborIndex
+
+
Returns the set of vertices which are adjacent to a specified vertex.
+
+
next() - Method in class org.jgrapht.traverse.CrossComponentIterator
+
 
+
next() - Method in class org.jgrapht.util.PrefetchIterator
+
 
+
nextElement() - Method in class org.jgrapht.util.PrefetchIterator
+
+
1.
+
+
nextElement() - Method in interface org.jgrapht.util.PrefetchIterator.NextElementFunctor
+
+
You must implement that NoSuchElementException is thrown on + nextElement() if it is out of bound.
+
+
nListeners - Variable in class org.jgrapht.traverse.AbstractGraphIterator
+
 
+
numberOfExpandedNodes - Variable in class org.jgrapht.alg.AStarShortestPath
+
 
+
numOfEdges - Variable in class org.jgrapht.generate.RandomGraphGenerator
+
 
+
numOfVertexes - Variable in class org.jgrapht.generate.RandomGraphGenerator
+
 
+
+ + + +

O

+
+
of(A, B) - Static method in class org.jgrapht.alg.util.Pair
+
+
Creates new pair of elements pulling of the necessity to provide + corresponding types of the elements supplied
+
+
openList - Variable in class org.jgrapht.alg.AStarShortestPath
+
 
+
ordering1 - Variable in class org.jgrapht.alg.isomorphism.VF2AbstractIsomorphismInspector
+
 
+
ordering2 - Variable in class org.jgrapht.alg.isomorphism.VF2AbstractIsomorphismInspector
+
 
+
org.jgrapht - package org.jgrapht
+
+
The front-end API's interfaces and classes, including Graph, +DirectedGraph and UndirectedGraph.
+
+
org.jgrapht.alg - package org.jgrapht.alg
+
+
Algorithms provided with JGraphT.
+
+
org.jgrapht.alg.cycle - package org.jgrapht.alg.cycle
+
+
Algorithms for enumeration of simple cycles in graphs.
+
+
org.jgrapht.alg.flow - package org.jgrapht.alg.flow
+
 
+
org.jgrapht.alg.interfaces - package org.jgrapht.alg.interfaces
+
 
+
org.jgrapht.alg.isomorphism - package org.jgrapht.alg.isomorphism
+
 
+
org.jgrapht.alg.util - package org.jgrapht.alg.util
+
+
Utilities used by JGraphT algorithms.
+
+
org.jgrapht.demo - package org.jgrapht.demo
+
+
Demo programs that help to get started with JGraphT.
+
+
org.jgrapht.event - package org.jgrapht.event
+
+
Event classes and listener interfaces, used to provide a change +notification mechanism on graph modification events.
+
+
org.jgrapht.experimental - package org.jgrapht.experimental
+
+
A package that contains experimental work or work-in-progress that +is not yet ready to be included in a release.
+
+
org.jgrapht.experimental.alg - package org.jgrapht.experimental.alg
+
 
+
org.jgrapht.experimental.alg.color - package org.jgrapht.experimental.alg.color
+
 
+
org.jgrapht.experimental.dag - package org.jgrapht.experimental.dag
+
 
+
org.jgrapht.ext - package org.jgrapht.ext
+
+
+Extensions and integration means to other products.
+
+
org.jgrapht.generate - package org.jgrapht.generate
+
+
Generators for graphs of various topologies.
+
+
org.jgrapht.graph - package org.jgrapht.graph
+
+
Implementations of various graphs.
+
+
org.jgrapht.graph.builder - package org.jgrapht.graph.builder
+
+
Various builder for graphs.
+
+
org.jgrapht.traverse - package org.jgrapht.traverse
+
+
Graph traversal means.
+
+
org.jgrapht.util - package org.jgrapht.util
+
+
Non-graph-specific data structures, algorithms, and utilities used by +JGraphT.
+
+
outDegreeOf(V) - Method in interface org.jgrapht.DirectedGraph
+
+
Returns the "out degree" of the specified vertex.
+
+
outDegreeOf(V) - Method in class org.jgrapht.graph.AbstractBaseGraph.DirectedSpecifics
+
 
+
outDegreeOf(V) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
outDegreeOf(V) - Method in class org.jgrapht.graph.AbstractBaseGraph.UndirectedSpecifics
+
 
+
outDegreeOf(V) - Method in class org.jgrapht.graph.AsUndirectedGraph
+
 
+
outDegreeOf(V) - Method in class org.jgrapht.graph.DirectedGraphUnion
+
 
+
outDegreeOf(V) - Method in class org.jgrapht.graph.DirectedSubgraph
+
 
+
outDegreeOf(V) - Method in class org.jgrapht.graph.EdgeReversedGraph
+
 
+
outDegreeOf(V) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
outDegreeOf(V) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
outDegreeOf(V) - Method in class org.jgrapht.graph.MixedGraphUnion
+
 
+
outgoingEdgesOf(V) - Method in interface org.jgrapht.DirectedGraph
+
+
Returns a set of all edges outgoing from the specified vertex.
+
+
outgoingEdgesOf(V) - Method in class org.jgrapht.graph.AbstractBaseGraph.DirectedSpecifics
+
 
+
outgoingEdgesOf(V) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
outgoingEdgesOf(V) - Method in class org.jgrapht.graph.AbstractBaseGraph.UndirectedSpecifics
+
 
+
outgoingEdgesOf(V) - Method in class org.jgrapht.graph.AsUndirectedGraph
+
 
+
outgoingEdgesOf(V) - Method in class org.jgrapht.graph.DirectedGraphUnion
+
 
+
outgoingEdgesOf(V) - Method in class org.jgrapht.graph.DirectedSubgraph
+
 
+
outgoingEdgesOf(V) - Method in class org.jgrapht.graph.EdgeReversedGraph
+
 
+
outgoingEdgesOf(V) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
outgoingEdgesOf(V) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
outgoingEdgesOf(V) - Method in class org.jgrapht.graph.MixedGraphUnion
+
 
+
+ + + +

P

+
+
Pair<A,B> - Class in org.jgrapht.alg.util
+
+
Generic pair.
+ Although the instances of this class are immutable, it is impossible to + ensure that the references passed to the constructor will not be modified by + the caller.
+
+
Pair(A, B) - Constructor for class org.jgrapht.alg.util.Pair
+
 
+
ParanoidGraph<V,E> - Class in org.jgrapht.graph
+
+
ParanoidGraph provides a way to verify that objects added to a graph obey the + standard equals/hashCode contract.
+
+
ParanoidGraph(Graph<V, E>) - Constructor for class org.jgrapht.graph.ParanoidGraph
+
 
+
PartiteRandomGraphGenerator<V,E> - Class in org.jgrapht.experimental
+
+
PartiteRandomGraphGenerator generates a partite uniform random + graph of any size.
+
+
PartiteRandomGraphGenerator(int, int, int) - Constructor for class org.jgrapht.experimental.PartiteRandomGraphGenerator
+
+
Construct a new PartiteRandomGraphGenerator for a bipartite graph.
+
+
PartiteRandomGraphGenerator(int[], int) - Constructor for class org.jgrapht.experimental.PartiteRandomGraphGenerator
+
+
Construct a new PartiteRandomGraphGenerator for a k-partite graph.
+
+
pathExists(V, V) - Method in class org.jgrapht.alg.ConnectivityInspector
+
+
Tests if there is a path from the specified source vertex to the + specified target vertices.
+
+
PatonCycleBase<V,E> - Class in org.jgrapht.alg.cycle
+
+
Find a cycle base of an undirected graph using the Paton's algorithm.
+
+
PatonCycleBase() - Constructor for class org.jgrapht.alg.cycle.PatonCycleBase
+
+
Create a cycle base finder with an unspecified graph.
+
+
PatonCycleBase(UndirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.cycle.PatonCycleBase
+
+
Create a cycle base finder for the specified graph.
+
+
PerformanceDemo - Class in org.jgrapht.demo
+
+
A simple demo to test memory and CPU consumption on a graph with 3 million + elements.
+
+
PerformanceDemo() - Constructor for class org.jgrapht.demo.PerformanceDemo
+
 
+
predecessorListOf(V) - Method in class org.jgrapht.alg.DirectedNeighborIndex
+
+
Returns the set of vertices which are the predecessors of a specified + vertex.
+
+
predecessorListOf(DirectedGraph<V, E>, V) - Static method in class org.jgrapht.Graphs
+
+
Returns a list of vertices that are the direct predecessors of a + specified vertex.
+
+
predecessorsOf(V) - Method in class org.jgrapht.alg.DirectedNeighborIndex
+
+
Returns the set of vertices which are the predecessors of a specified + vertex.
+
+
PrefetchIterator<E> - Class in org.jgrapht.util
+
+
Utility class to help implement an iterator/enumerator in which the hasNext() + method needs to calculate the next elements ahead of time.
+
+
PrefetchIterator(PrefetchIterator.NextElementFunctor<E>) - Constructor for class org.jgrapht.util.PrefetchIterator
+
 
+
PrefetchIterator.NextElementFunctor<EE> - Interface in org.jgrapht.util
+
 
+
PrimMinimumSpanningTree<V,E> - Class in org.jgrapht.alg
+
+
An implementation of + Prim's algorithm that finds a minimum spanning tree/forest subject to + connectivity of the supplied weighted undirected graph.
+
+
PrimMinimumSpanningTree(Graph<V, E>) - Constructor for class org.jgrapht.alg.PrimMinimumSpanningTree
+
 
+
PRINT_EDGE_LABELS - Static variable in class org.jgrapht.ext.GmlExporter
+
+
Option to export only the edge labels.
+
+
PRINT_EDGE_VERTEX_LABELS - Static variable in class org.jgrapht.ext.GmlExporter
+
+
Option to export both edge and vertex labels.
+
+
PRINT_NO_LABELS - Static variable in class org.jgrapht.ext.GmlExporter
+
+
Option to export no vertex or edge labels.
+
+
PRINT_VERTEX_LABELS - Static variable in class org.jgrapht.ext.GmlExporter
+
+
Option to export only the vertex labels.
+
+
printSimpleCycles() - Method in class org.jgrapht.alg.cycle.HawickJamesSimpleCycles
+
+
Print to the standard output all simple cycles without building a list to + keep them, thus avoiding high memory consumption when investigating large + and much connected graphs.
+
+
provideNextVertex() - Method in class org.jgrapht.traverse.BreadthFirstIterator
+
 
+
provideNextVertex() - Method in class org.jgrapht.traverse.ClosestFirstIterator
+
 
+
provideNextVertex() - Method in class org.jgrapht.traverse.CrossComponentIterator
+
+
Returns the vertex to be returned in the following call to the iterator + next method.
+
+
provideNextVertex() - Method in class org.jgrapht.traverse.DepthFirstIterator
+
 
+
provideNextVertex() - Method in class org.jgrapht.traverse.TopologicalOrderIterator
+
 
+
Pseudograph<V,E> - Class in org.jgrapht.graph
+
+
A pseudograph.
+
+
Pseudograph(Class<? extends E>) - Constructor for class org.jgrapht.graph.Pseudograph
+
+
Creates a new pseudograph.
+
+
Pseudograph(EdgeFactory<V, E>) - Constructor for class org.jgrapht.graph.Pseudograph
+
+
Creates a new pseudograph with the specified edge factory.
+
+
pushFlowThrough(MaximumFlowAlgorithmBase<V, E>.EdgeExtensionBase, double) - Method in class org.jgrapht.alg.flow.MaximumFlowAlgorithmBase
+
 
+
pushFlowThrough(PushRelabelMaximumFlow<V, E>.EdgeExtension, double) - Method in class org.jgrapht.alg.flow.PushRelabelMaximumFlow
+
 
+
PushRelabelMaximumFlow<V,E> - Class in org.jgrapht.alg.flow
+
+
+ Push-relabel maximum flow algorithm designed by Andrew V.
+
+
PushRelabelMaximumFlow(DirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.flow.PushRelabelMaximumFlow
+
 
+
PushRelabelMaximumFlow.EdgeExtension - Class in org.jgrapht.alg.flow
+
 
+
PushRelabelMaximumFlow.EdgeExtension() - Constructor for class org.jgrapht.alg.flow.PushRelabelMaximumFlow.EdgeExtension
+
 
+
PushRelabelMaximumFlow.VertexExtension - Class in org.jgrapht.alg.flow
+
 
+
PushRelabelMaximumFlow.VertexExtension() - Constructor for class org.jgrapht.alg.flow.PushRelabelMaximumFlow.VertexExtension
+
 
+
putSeenData(V, D) - Method in class org.jgrapht.traverse.CrossComponentIterator
+
+
Stores iterator-dependent data for a vertex that has been seen.
+
+
putVertex(Integer, V) - Method in interface org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoOrderMapping
+
+
add a vertex at the given topological index.
+
+
putVertex(Integer, V) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoVertexMap
+
 
+
+ + + +

R

+
+
RandomGraphGenerator<V,E> - Class in org.jgrapht.generate
+
+
This Generator creates a random-topology graph of a specified number of + vertexes and edges.
+
+
RandomGraphGenerator(int, int) - Constructor for class org.jgrapht.generate.RandomGraphGenerator
+
 
+
RandomGraphGenerator(int, int, long) - Constructor for class org.jgrapht.generate.RandomGraphGenerator
+
 
+
RandomGraphGenerator.DefaultEdgeTopologyFactory<VV,EE> - Class in org.jgrapht.generate
+
+
Default implementation of the EdgeTopologyFactory interface.
+
+
RandomGraphGenerator.DefaultEdgeTopologyFactory() - Constructor for class org.jgrapht.generate.RandomGraphGenerator.DefaultEdgeTopologyFactory
+
 
+
RandomGraphGenerator.EdgeTopologyFactory<VV,EE> - Interface in org.jgrapht.generate
+
+
This class is used to generate the edge topology for a graph.
+
+
RandomGraphHelper - Class in org.jgrapht.experimental
+
+
UniformRandomGraphGenerator generates a uniform random graph + of any size.
+
+
randomizer - Variable in class org.jgrapht.generate.RandomGraphGenerator
+
 
+
range(int, int) - Static method in class org.jgrapht.generate.SimpleWeightedGraphMatrixGenerator
+
 
+
read(String, AbstractBaseGraph<V, E>) - Method in class org.jgrapht.ext.DOTImporter
+
+
Read a dot formatted string and populate the provided graph.
+
+
reduce(DirectedGraph<V, E>) - Method in class org.jgrapht.alg.TransitiveReduction
+
+
This method will remove all transitive edges from the graph passed as + input parameter.
+
+
remove() - Method in class org.jgrapht.traverse.AbstractGraphIterator
+
+
Unsupported.
+
+
remove() - Method in interface org.jgrapht.traverse.GraphIterator
+
+
Unsupported.
+
+
remove() - Method in class org.jgrapht.util.PrefetchIterator
+
+
Always throws UnsupportedOperationException.
+
+
removeAllEdges(Collection<? extends E>) - Method in class org.jgrapht.experimental.GraphSquare
+
 
+
removeAllEdges(V, V) - Method in class org.jgrapht.experimental.GraphSquare
+
 
+
removeAllEdges(Collection<? extends E>) - Method in class org.jgrapht.graph.AbstractGraph
+
 
+
removeAllEdges(V, V) - Method in class org.jgrapht.graph.AbstractGraph
+
 
+
removeAllEdges(E[]) - Method in class org.jgrapht.graph.AbstractGraph
+
+
Removes all the edges in this graph that are also contained in the + specified edge array.
+
+
removeAllEdges(Collection<? extends E>) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
removeAllEdges(V, V) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
removeAllEdges(Collection<? extends E>) - Method in interface org.jgrapht.Graph
+
+
Removes all the edges in this graph that are also contained in the + specified edge collection.
+
+
removeAllEdges(V, V) - Method in interface org.jgrapht.Graph
+
+
Removes all the edges going from the specified source vertex to the + specified target vertex, and returns a set of all removed edges.
+
+
removeAllEdges(Collection<? extends E>) - Method in class org.jgrapht.graph.UnmodifiableGraph
+
 
+
removeAllEdges(V, V) - Method in class org.jgrapht.graph.UnmodifiableGraph
+
 
+
removeAllVertices(Collection<? extends V>) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph
+
 
+
removeAllVertices() - Method in interface org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoOrderMapping
+
+
remove all vertices from the topological ordering
+
+
removeAllVertices() - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoVertexMap
+
 
+
removeAllVertices(Collection<? extends V>) - Method in class org.jgrapht.experimental.GraphSquare
+
 
+
removeAllVertices(Collection<? extends V>) - Method in class org.jgrapht.graph.AbstractGraph
+
 
+
removeAllVertices(Collection<? extends V>) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
removeAllVertices(Collection<? extends V>) - Method in interface org.jgrapht.Graph
+
+
Removes all the vertices in this graph that are also contained in the + specified vertex collection.
+
+
removeAllVertices(Collection<? extends V>) - Method in class org.jgrapht.graph.UnmodifiableGraph
+
 
+
removeEdge(E) - Method in class org.jgrapht.experimental.GraphSquare
+
 
+
removeEdge(V, V) - Method in class org.jgrapht.experimental.GraphSquare
+
 
+
removeEdge(V, V) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
removeEdge(E) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
removeEdge(V, V) - Method in class org.jgrapht.graph.builder.AbstractGraphBuilder
+
+
Removes an edge going from source vertex to target vertex from the graph + being built, if such vertices and such edge exist in the graph.
+
+
removeEdge(V, V) - Method in class org.jgrapht.graph.DefaultListenableGraph
+
 
+
removeEdge(E) - Method in class org.jgrapht.graph.DefaultListenableGraph
+
 
+
removeEdge(V, V) - Method in class org.jgrapht.graph.EdgeReversedGraph
+
 
+
removeEdge(E) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
removeEdge(V, V) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
removeEdge(V, V) - Method in class org.jgrapht.graph.GraphUnion
+
+
Throws UnsupportedOperationException, because + GraphUnion is read-only.
+
+
removeEdge(E) - Method in class org.jgrapht.graph.GraphUnion
+
+
Throws UnsupportedOperationException, because + GraphUnion is read-only.
+
+
removeEdge(E) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
removeEdge(V, V) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
removeEdge(V, V) - Method in interface org.jgrapht.Graph
+
+
Removes an edge going from source vertex to target vertex, if such + vertices and such edge exist in this graph.
+
+
removeEdge(E) - Method in interface org.jgrapht.Graph
+
+
Removes the specified edge from the graph.
+
+
removeEdge(E) - Method in class org.jgrapht.graph.Subgraph
+
 
+
removeEdge(V, V) - Method in class org.jgrapht.graph.Subgraph
+
 
+
removeEdge(E) - Method in class org.jgrapht.graph.UnmodifiableGraph
+
 
+
removeEdge(V, V) - Method in class org.jgrapht.graph.UnmodifiableGraph
+
 
+
removeEdgeFromTouchingVertices(E) - Method in class org.jgrapht.graph.AbstractBaseGraph.DirectedSpecifics
+
 
+
removeEdgeFromTouchingVertices(E) - Method in class org.jgrapht.graph.AbstractBaseGraph.UndirectedSpecifics
+
 
+
removeGraphListener(GraphListener<V, E>) - Method in class org.jgrapht.graph.DefaultListenableGraph
+
 
+
removeGraphListener(GraphListener<V, E>) - Method in interface org.jgrapht.ListenableGraph
+
+
Removes the specified graph listener from this graph, if present.
+
+
removeIncomingEdge(EE) - Method in class org.jgrapht.graph.AbstractBaseGraph.DirectedEdgeContainer
+
+
.
+
+
removeMin() - Method in class org.jgrapht.util.FibonacciHeap
+
+
Removes the smallest element from the heap.
+
+
removeOutgoingEdge(EE) - Method in class org.jgrapht.graph.AbstractBaseGraph.DirectedEdgeContainer
+
+
.
+
+
removeTraversalListener(TraversalListener<V, E>) - Method in class org.jgrapht.traverse.AbstractGraphIterator
+
+
Removes the specified traversal listener from this iterator.
+
+
removeTraversalListener(TraversalListener<V, E>) - Method in interface org.jgrapht.traverse.GraphIterator
+
+
Removes the specified traversal listener from this iterator.
+
+
removeVertex(V) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph
+
 
+
removeVertex(V) - Method in interface org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoOrderMapping
+
+
remove the given vertex from the topological ordering
+
+
removeVertex(V) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoVertexMap
+
 
+
removeVertex(V) - Method in class org.jgrapht.experimental.GraphSquare
+
 
+
removeVertex(V) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
removeVertex(V) - Method in class org.jgrapht.graph.builder.AbstractGraphBuilder
+
+
Removes vertex from the graph being built, if such vertex exist + in graph.
+
+
removeVertex(V) - Method in class org.jgrapht.graph.DefaultListenableGraph
+
 
+
removeVertex(V) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
removeVertex(V) - Method in class org.jgrapht.graph.GraphUnion
+
+
Throws UnsupportedOperationException, because + GraphUnion is read-only.
+
+
removeVertex(V) - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
removeVertex(V) - Method in interface org.jgrapht.Graph
+
+
Removes the specified vertex from this graph including all its touching + edges if present.
+
+
removeVertex(V) - Method in class org.jgrapht.graph.Subgraph
+
 
+
removeVertex(V) - Method in class org.jgrapht.graph.UnmodifiableGraph
+
 
+
removeVertexSetListener(VertexSetListener<V>) - Method in class org.jgrapht.graph.DefaultListenableGraph
+
 
+
removeVertexSetListener(VertexSetListener<V>) - Method in interface org.jgrapht.ListenableGraph
+
+
Removes the specified vertex set listener from this graph, if present.
+
+
removeVertices(V...) - Method in class org.jgrapht.graph.builder.AbstractGraphBuilder
+
+
Removes each vertex of vertices from the graph being built, if + such vertices exist in graph.
+
+
replaceVertex(Object, Object) - Static method in class org.jgrapht.demo.CompleteGraphDemo
+
 
+
RingGraphGenerator<V,E> - Class in org.jgrapht.generate
+
+
Generates a ring graph of any size.
+
+
RingGraphGenerator(int) - Constructor for class org.jgrapht.generate.RingGraphGenerator
+
+
Construct a new RingGraphGenerator.
+
+
+ + + +

S

+
+
ScaleFreeGraphGenerator<V,E> - Class in org.jgrapht.generate
+
+
Generates directed or undirected scale-free network + of any size.
+
+
ScaleFreeGraphGenerator(int) - Constructor for class org.jgrapht.generate.ScaleFreeGraphGenerator
+
+
Constructs a new ScaleFreeGraphGenerator.
+
+
ScaleFreeGraphGenerator(int, long) - Constructor for class org.jgrapht.generate.ScaleFreeGraphGenerator
+
+
Constructs a new ScaleFreeGraphGenerator using fixed + seed for the random generator.
+
+
second - Variable in class org.jgrapht.alg.util.Pair
+
 
+
second(List<? extends V>) - Method in class org.jgrapht.generate.SimpleWeightedBipartiteGraphMatrixGenerator
+
 
+
SECOND - Static variable in interface org.jgrapht.util.WeightCombiner
+
+
Second weight.
+
+
self() - Method in class org.jgrapht.graph.builder.AbstractGraphBuilder
+
 
+
self() - Method in class org.jgrapht.graph.builder.DirectedGraphBuilder
+
 
+
self() - Method in class org.jgrapht.graph.builder.DirectedWeightedGraphBuilder
+
 
+
self() - Method in class org.jgrapht.graph.builder.UndirectedGraphBuilder
+
 
+
self() - Method in class org.jgrapht.graph.builder.UndirectedWeightedGraphBuilder
+
 
+
SENTINEL - Static variable in class org.jgrapht.traverse.DepthFirstIterator
+
+
Sentinel object.
+
+
setCrossComponentTraversal(boolean) - Method in class org.jgrapht.traverse.AbstractGraphIterator
+
+
Sets the cross component traversal flag - indicates whether to traverse + the graph across connected components.
+
+
setCrossComponentTraversal(boolean) - Method in class org.jgrapht.traverse.ClosestFirstIterator
+
 
+
setDefaultEdgeAttributes(AttributeMap) - Method in class org.jgrapht.ext.JGraphModelAdapter
+
+
Sets the default edge attributes used for creating new JGraph edges.
+
+
setDefaultVertexAttributes(AttributeMap) - Method in class org.jgrapht.ext.JGraphModelAdapter
+
+
Sets the default vertex attributes used for creating new JGraph vertices.
+
+
setEdgeSetFactory(EdgeSetFactory<V, E>) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
+
Set the EdgeSetFactory to use for this graph.
+
+
setEdgeWeight(E, double) - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
setEdgeWeight(E, double) - Method in class org.jgrapht.graph.AsWeightedGraph
+
 
+
setEdgeWeight(E, double) - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
setEdgeWeight(E, double) - Method in class org.jgrapht.graph.Subgraph
+
 
+
setEdgeWeight(E, double) - Method in interface org.jgrapht.WeightedGraph
+
+
Assigns a weight to an edge.
+
+
setGraph(DirectedGraph<V, E>) - Method in interface org.jgrapht.alg.cycle.DirectedSimpleCycles
+
+
Sets the graph on which the simple cycle search algorithm is executed by + this object.
+
+
setGraph(DirectedGraph<V, E>) - Method in class org.jgrapht.alg.cycle.HawickJamesSimpleCycles
+
+
Sets the graph on which the simple cycle search algorithm is executed by + this object.
+
+
setGraph(DirectedGraph<V, E>) - Method in class org.jgrapht.alg.cycle.JohnsonSimpleCycles
+
+
Sets the graph on which the simple cycle search algorithm is executed by + this object.
+
+
setGraph(UndirectedGraph<V, E>) - Method in class org.jgrapht.alg.cycle.PatonCycleBase
+
+
Sets the graph on which the cycle base search algorithm is executed by + this object.
+
+
setGraph(DirectedGraph<V, E>) - Method in class org.jgrapht.alg.cycle.SzwarcfiterLauerSimpleCycles
+
+
Sets the graph on which the simple cycle search algorithm is executed by + this object.
+
+
setGraph(DirectedGraph<V, E>) - Method in class org.jgrapht.alg.cycle.TarjanSimpleCycles
+
+
Sets the graph on which the simple cycle search algorithm is executed by + this object.
+
+
setGraph(DirectedGraph<V, E>) - Method in class org.jgrapht.alg.cycle.TiernanSimpleCycles
+
+
Sets the graph on which the simple cycle search algorithm is executed by + this object.
+
+
setGraph(UndirectedGraph<V, E>) - Method in interface org.jgrapht.alg.cycle.UndirectedCycleBase
+
+
Sets the graph on which the cycle base search algorithm is executed by + this object.
+
+
setPrintLabels(Integer) - Method in class org.jgrapht.ext.GmlExporter
+
+
Set whether to export the vertex and edge labels.
+
+
setReuseEvents(boolean) - Method in class org.jgrapht.graph.DefaultListenableGraph
+
+
If the reuseEvents flag is set to true this + class will reuse previously fired events and will not create a new object + for each event.
+
+
setReuseEvents(boolean) - Method in class org.jgrapht.traverse.AbstractGraphIterator
+
 
+
setReuseEvents(boolean) - Method in interface org.jgrapht.traverse.GraphIterator
+
+
Sets a value the reuseEvents flag.
+
+
setValue(int) - Method in class org.jgrapht.util.ModifiableInteger
+
+
Sets a new value for this modifiable integer.
+
+
setVisited(int) - Method in interface org.jgrapht.experimental.dag.DirectedAcyclicGraph.Visited
+
+
mark the given topological index as visited
+
+
setVisited(int) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayImpl
+
 
+
setVisited(int) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayListImpl
+
 
+
setVisited(int) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedBitSetImpl
+
 
+
setVisited(int) - Method in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedHashSetImpl
+
 
+
shortestDistance(V, V) - Method in class org.jgrapht.alg.FloydWarshallShortestPaths
+
+
Get the length of a shortest path.
+
+
SimpleDirectedGraph<V,E> - Class in org.jgrapht.graph
+
+
A simple directed graph.
+
+
SimpleDirectedGraph(Class<? extends E>) - Constructor for class org.jgrapht.graph.SimpleDirectedGraph
+
+
Creates a new simple directed graph.
+
+
SimpleDirectedGraph(EdgeFactory<V, E>) - Constructor for class org.jgrapht.graph.SimpleDirectedGraph
+
+
Creates a new simple directed graph with the specified edge factory.
+
+
SimpleDirectedWeightedGraph<V,E> - Class in org.jgrapht.graph
+
+
A simple directed weighted graph.
+
+
SimpleDirectedWeightedGraph(EdgeFactory<V, E>) - Constructor for class org.jgrapht.graph.SimpleDirectedWeightedGraph
+
+
Creates a new simple directed weighted graph with the specified edge + factory.
+
+
SimpleDirectedWeightedGraph(Class<? extends E>) - Constructor for class org.jgrapht.graph.SimpleDirectedWeightedGraph
+
+
Creates a new simple directed weighted graph.
+
+
SimpleGraph<V,E> - Class in org.jgrapht.graph
+
+
A simple graph.
+
+
SimpleGraph(EdgeFactory<V, E>) - Constructor for class org.jgrapht.graph.SimpleGraph
+
+
Creates a new simple graph with the specified edge factory.
+
+
SimpleGraph(Class<? extends E>) - Constructor for class org.jgrapht.graph.SimpleGraph
+
+
Creates a new simple graph.
+
+
SimpleGraphPath<V,E> - Class in org.jgrapht.graph
+
+
A vertex-based representation of a simple path.
+
+
SimpleGraphPath(SimpleGraph<V, E>, List<V>, double) - Constructor for class org.jgrapht.graph.SimpleGraphPath
+
 
+
SimpleWeightedBipartiteGraphMatrixGenerator<V,E> - Class in org.jgrapht.generate
+
 
+
SimpleWeightedBipartiteGraphMatrixGenerator() - Constructor for class org.jgrapht.generate.SimpleWeightedBipartiteGraphMatrixGenerator
+
 
+
SimpleWeightedGraph<V,E> - Class in org.jgrapht.graph
+
+
A simple weighted graph.
+
+
SimpleWeightedGraph(EdgeFactory<V, E>) - Constructor for class org.jgrapht.graph.SimpleWeightedGraph
+
+
Creates a new simple weighted graph with the specified edge factory.
+
+
SimpleWeightedGraph(Class<? extends E>) - Constructor for class org.jgrapht.graph.SimpleWeightedGraph
+
+
Creates a new simple weighted graph.
+
+
SimpleWeightedGraphMatrixGenerator<V,E> - Class in org.jgrapht.generate
+
 
+
SimpleWeightedGraphMatrixGenerator() - Constructor for class org.jgrapht.generate.SimpleWeightedGraphMatrixGenerator
+
 
+
size() - Method in class org.jgrapht.util.FibonacciHeap
+
+
Returns the size of the heap which is measured in the number of elements + contained in the heap.
+
+
SMALLEST_DEGREE_LAST_ORDER - Static variable in class org.jgrapht.experimental.alg.color.GreedyColoring
+
 
+
StarGraphGenerator<V,E> - Class in org.jgrapht.generate
+
+
Generates a star + graph of any size.
+
+
StarGraphGenerator(int) - Constructor for class org.jgrapht.generate.StarGraphGenerator
+
+
Creates a new StarGraphGenerator object.
+
+
start - Variable in class org.jgrapht.experimental.dag.DirectedAcyclicGraph.Region
+
 
+
START_VERTEX - Static variable in class org.jgrapht.generate.LinearGraphGenerator
+
+
Role for the first vertex generated.
+
+
startVertex - Variable in class org.jgrapht.alg.BellmanFordShortestPath
+
+
Start vertex.
+
+
StoerWagnerMinimumCut<V,E> - Class in org.jgrapht.alg
+
+ +
+
StoerWagnerMinimumCut(UndirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.StoerWagnerMinimumCut
+
+
Will compute the minimum cut in graph.
+
+
StoerWagnerMinimumCut.VertexAndWeight - Class in org.jgrapht.alg
+
+
Class for weighted vertices
+
+
StoerWagnerMinimumCut.VertexAndWeight(Set<V>, double, boolean) - Constructor for class org.jgrapht.alg.StoerWagnerMinimumCut.VertexAndWeight
+
 
+
StringEdgeNameProvider<E> - Class in org.jgrapht.ext
+
+
Generates edge names by invoking Object.toString() on them.
+
+
StringEdgeNameProvider() - Constructor for class org.jgrapht.ext.StringEdgeNameProvider
+
 
+
StringNameProvider<V> - Class in org.jgrapht.ext
+
+
Generates vertex names by invoking Object.toString() on them.
+
+
StringNameProvider() - Constructor for class org.jgrapht.ext.StringNameProvider
+
 
+
StrongConnectivityAlgorithm<V,E> - Interface in org.jgrapht.alg.interfaces
+
+
An interface to the StrongConnectivityInspector algorithm classes.
+
+
StrongConnectivityInspector<V,E> - Class in org.jgrapht.alg
+
+
Deprecated. + +
+
+
StrongConnectivityInspector(DirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.StrongConnectivityInspector
+
+
Deprecated.
+
The constructor of the StrongConnectivityAlgorithm class.
+
+
stronglyConnectedSets() - Method in class org.jgrapht.alg.GabowStrongConnectivityInspector
+
+
Computes a List of Sets, where each set contains vertices + which together form a strongly connected component within the given + graph.
+
+
stronglyConnectedSets() - Method in interface org.jgrapht.alg.interfaces.StrongConnectivityAlgorithm
+
+
Computes a List of Sets, where each set contains vertices + which together form a strongly connected component within the given + graph.
+
+
stronglyConnectedSets() - Method in class org.jgrapht.alg.KosarajuStrongConnectivityInspector
+
+
Computes a List of Sets, where each set contains vertices + which together form a strongly connected component within the given + graph.
+
+
stronglyConnectedSets() - Method in class org.jgrapht.alg.StrongConnectivityInspector
+
+
Deprecated.
+
Computes a List of Sets, where each set contains vertices + which together form a strongly connected component within the given + graph.
+
+
stronglyConnectedSubgraphs() - Method in class org.jgrapht.alg.GabowStrongConnectivityInspector
+
+
Computes a list of DirectedSubgraphs of the given graph.
+
+
stronglyConnectedSubgraphs() - Method in interface org.jgrapht.alg.interfaces.StrongConnectivityAlgorithm
+
+
Computes a list of DirectedSubgraphs of the given graph.
+
+
stronglyConnectedSubgraphs() - Method in class org.jgrapht.alg.KosarajuStrongConnectivityInspector
+
+
Computes a list of DirectedSubgraphs of the given graph.
+
+
stronglyConnectedSubgraphs() - Method in class org.jgrapht.alg.StrongConnectivityInspector
+
+
Deprecated.
+
Computes a list of DirectedSubgraphs of the given graph.
+
+
Subgraph<V,E,G extends Graph<V,E>> - Class in org.jgrapht.graph
+
+
A subgraph is a graph that has a subset of vertices and a subset of edges + with respect to some base graph.
+
+
Subgraph(G, Set<V>, Set<E>) - Constructor for class org.jgrapht.graph.Subgraph
+
+
Creates a new Subgraph.
+
+
Subgraph(G, Set<V>) - Constructor for class org.jgrapht.graph.Subgraph
+
+
Creates a new induced Subgraph.
+
+
successorListOf(V) - Method in class org.jgrapht.alg.DirectedNeighborIndex
+
+
Returns the set of vertices which are the successors of a specified + vertex.
+
+
successorListOf(DirectedGraph<V, E>, V) - Static method in class org.jgrapht.Graphs
+
+
Returns a list of vertices that are the direct successors of a specified + vertex.
+
+
successorsOf(V) - Method in class org.jgrapht.alg.DirectedNeighborIndex
+
+
Returns the set of vertices which are the successors of a specified + vertex.
+
+
SUM - Static variable in interface org.jgrapht.util.WeightCombiner
+
+
Sum of weights.
+
+
SzwarcfiterLauerSimpleCycles<V,E> - Class in org.jgrapht.alg.cycle
+
+
Find all simple cycles of a directed graph using the Schwarcfiter and Lauer's + algorithm.
+
+
SzwarcfiterLauerSimpleCycles() - Constructor for class org.jgrapht.alg.cycle.SzwarcfiterLauerSimpleCycles
+
+
Create a simple cycle finder with an unspecified graph.
+
+
SzwarcfiterLauerSimpleCycles(DirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.cycle.SzwarcfiterLauerSimpleCycles
+
+
Create a simple cycle finder for the specified graph.
+
+
+ + + +

T

+
+
TarjanLowestCommonAncestor<V,E> - Class in org.jgrapht.alg
+
+
Used to calculate Tarjan's Lowest Common Ancestors Algorithm
+
+
TarjanLowestCommonAncestor(Graph<V, E>) - Constructor for class org.jgrapht.alg.TarjanLowestCommonAncestor
+
+
Create an instance with a reference to the graph that we will find LCAs + for
+
+
TarjanLowestCommonAncestor.LcaRequestResponse<V> - Class in org.jgrapht.alg
+
 
+
TarjanLowestCommonAncestor.LcaRequestResponse(V, V) - Constructor for class org.jgrapht.alg.TarjanLowestCommonAncestor.LcaRequestResponse
+
 
+
TarjanSimpleCycles<V,E> - Class in org.jgrapht.alg.cycle
+
+
Find all simple cycles of a directed graph using the Tarjan's algorithm.
+
+
TarjanSimpleCycles() - Constructor for class org.jgrapht.alg.cycle.TarjanSimpleCycles
+
+
Create a simple cycle finder with an unspecified graph.
+
+
TarjanSimpleCycles(DirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.cycle.TarjanSimpleCycles
+
+
Create a simple cycle finder for the specified graph.
+
+
testIncidence(Graph<V, E>, E, V) - Static method in class org.jgrapht.Graphs
+
+
Tests whether an edge is incident to a vertex.
+
+
TiernanSimpleCycles<V,E> - Class in org.jgrapht.alg.cycle
+
+
Find all simple cycles of a directed graph using the Tiernan's algorithm.
+
+
TiernanSimpleCycles() - Constructor for class org.jgrapht.alg.cycle.TiernanSimpleCycles
+
+
Create a simple cycle finder with an unspecified graph.
+
+
TiernanSimpleCycles(DirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.cycle.TiernanSimpleCycles
+
+
Create a simple cycle finder for the specified graph.
+
+
toInteger() - Method in class org.jgrapht.util.ModifiableInteger
+
+
Returns an Integer object representing this + ModifiableInteger's value.
+
+
TopologicalOrderIterator<V,E> - Class in org.jgrapht.traverse
+
+
Implements topological order traversal for a directed acyclic graph.
+
+
TopologicalOrderIterator(DirectedGraph<V, E>) - Constructor for class org.jgrapht.traverse.TopologicalOrderIterator
+
+
Creates a new topological order iterator over the directed graph + specified, with arbitrary tie-breaking in case of partial order.
+
+
TopologicalOrderIterator(DirectedGraph<V, E>, Queue<V>) - Constructor for class org.jgrapht.traverse.TopologicalOrderIterator
+
+
Creates a new topological order iterator over the directed graph + specified, with a user-supplied queue implementation to allow customized + control over tie-breaking in case of partial order.
+
+
toString() - Method in class org.jgrapht.alg.flow.PushRelabelMaximumFlow.EdgeExtension
+
 
+
toString() - Method in class org.jgrapht.alg.flow.PushRelabelMaximumFlow.VertexExtension
+
 
+
toString() - Method in class org.jgrapht.alg.isomorphism.IsomorphicGraphMapping
+
 
+
toString() - Method in class org.jgrapht.alg.StoerWagnerMinimumCut.VertexAndWeight
+
 
+
toString() - Method in class org.jgrapht.graph.AbstractGraph
+
+
Returns a string of the parenthesized pair (V, E) representing this + G=(V,E) graph.
+
+
toString() - Method in class org.jgrapht.graph.AsUndirectedGraph
+
 
+
toString() - Method in class org.jgrapht.graph.DefaultEdge
+
 
+
toString() - Method in class org.jgrapht.graph.EdgeReversedGraph
+
 
+
toString() - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
toString() - Method in class org.jgrapht.graph.GraphPathImpl
+
 
+
toString() - Method in class org.jgrapht.util.FibonacciHeap
+
+
Creates a String representation of this Fibonacci heap.
+
+
toString() - Method in class org.jgrapht.util.FibonacciHeapNode
+
+
Return the string representation of this object.
+
+
toString() - Method in class org.jgrapht.util.ModifiableInteger
+
+
Returns a String object representing this + ModifiableInteger's value.
+
+
toString() - Method in class org.jgrapht.util.VertexPair
+
 
+
toStringFromSets(Collection<? extends V>, Collection<? extends E>, boolean) - Method in class org.jgrapht.graph.AbstractGraph
+
+
Helper for subclass implementations of toString( ).
+
+
TransitiveClosure - Class in org.jgrapht.alg
+
+
Constructs the transitive closure of the input graph.
+
+
TransitiveReduction - Class in org.jgrapht.alg
+
+
An implementation of Harry Hsu's transitive + reduction algorithm.
+
+
TraversalListener<V,E> - Interface in org.jgrapht.event
+
+
A listener on graph iterator or on a graph traverser.
+
+
TraversalListenerAdapter<V,E> - Class in org.jgrapht.event
+
+
An empty do-nothing implementation of the TraversalListener interface + used for subclasses.
+
+
TraversalListenerAdapter() - Constructor for class org.jgrapht.event.TraversalListenerAdapter
+
 
+
type - Variable in class org.jgrapht.event.GraphChangeEvent
+
+
The type of graph change this event indicates.
+
+
TypeUtil<T> - Class in org.jgrapht.util
+
+
TypeUtil isolates type-unsafety so that code which uses it for legitimate + reasons can stay warning-free.
+
+
TypeUtil() - Constructor for class org.jgrapht.util.TypeUtil
+
 
+
+ + + +

U

+
+
uncheckedCast(Object, TypeUtil<T>) - Static method in class org.jgrapht.util.TypeUtil
+
+
Casts an object to a type.
+
+
UndirectedCycleBase<V,E> - Interface in org.jgrapht.alg.cycle
+
+
A common interface for classes implementing algorithms for finding a cycle + base of an undirected graph.
+
+
undirectedGraph(Graph<V, E>) - Static method in class org.jgrapht.Graphs
+
+
Returns an undirected view of the specified graph.
+
+
UndirectedGraph<V,E> - Interface in org.jgrapht
+
+
A graph whose all edges are undirected.
+
+
UndirectedGraphBuilder<V,E,G extends UndirectedGraph<V,E>> - Class in org.jgrapht.graph.builder
+
+
A builder class for Graph.
+
+
UndirectedGraphBuilder(G) - Constructor for class org.jgrapht.graph.builder.UndirectedGraphBuilder
+
+
Creates a builder based on baseGraph.
+
+
UndirectedGraphBuilderBase<V,E,G extends UndirectedGraph<V,E>,B extends UndirectedGraphBuilderBase<V,E,G,B>> - Class in org.jgrapht.graph.builder
+
+
Base class for UndirectedGraphBuilder for extending.
+
+
UndirectedGraphBuilderBase(G) - Constructor for class org.jgrapht.graph.builder.UndirectedGraphBuilderBase
+
+
Creates a builder based on baseGraph.
+
+
UndirectedGraphUnion<V,E> - Class in org.jgrapht.graph
+
 
+
UndirectedMaskSubgraph<V,E> - Class in org.jgrapht.graph
+
+
An undirected graph that is a MaskSubgraph on another graph.
+
+
UndirectedMaskSubgraph(UndirectedGraph<V, E>, MaskFunctor<V, E>) - Constructor for class org.jgrapht.graph.UndirectedMaskSubgraph
+
 
+
UndirectedSubgraph<V,E> - Class in org.jgrapht.graph
+
+
An undirected graph that is a subgraph on other graph.
+
+
UndirectedSubgraph(UndirectedGraph<V, E>, Set<V>, Set<E>) - Constructor for class org.jgrapht.graph.UndirectedSubgraph
+
+
Creates a new undirected subgraph.
+
+
UndirectedWeightedGraphBuilder<V,E,G extends UndirectedGraph<V,E> & WeightedGraph<V,E>> - Class in org.jgrapht.graph.builder
+
+
A builder class for undirected weighted graphs.
+
+
UndirectedWeightedGraphBuilder(G) - Constructor for class org.jgrapht.graph.builder.UndirectedWeightedGraphBuilder
+
+
Creates a builder based on baseGraph.
+
+
UndirectedWeightedGraphBuilderBase<V,E,G extends UndirectedGraph<V,E> & WeightedGraph<V,E>,B extends UndirectedWeightedGraphBuilderBase<V,E,G,B>> - Class in org.jgrapht.graph.builder
+
+
Base class for UndirectedWeightedGraphBuilder for extending.
+
+
UndirectedWeightedGraphBuilderBase(G) - Constructor for class org.jgrapht.graph.builder.UndirectedWeightedGraphBuilderBase
+
+
Creates a builder based on baseGraph.
+
+
UndirectedWeightedSubgraph<V,E> - Class in org.jgrapht.graph
+
+
An undirected weighted graph that is a subgraph on other graph.
+
+
UndirectedWeightedSubgraph(WeightedGraph<V, E>, Set<V>, Set<E>) - Constructor for class org.jgrapht.graph.UndirectedWeightedSubgraph
+
+
Creates a new undirected weighted subgraph.
+
+
UniformRandomGraphGenerator - Class in org.jgrapht.experimental
+
+
UniformRandomGraphGenerator generates a uniform random graph + of any size.
+
+
UniformRandomGraphGenerator(int, int) - Constructor for class org.jgrapht.experimental.UniformRandomGraphGenerator
+
+
Construct a new UniformRandomGraphGenerator.
+
+
union(T, T) - Method in class org.jgrapht.alg.util.UnionFind
+
+
Merges the sets which contain element1 and element2.
+
+
union(FibonacciHeap<T>, FibonacciHeap<T>) - Static method in class org.jgrapht.util.FibonacciHeap
+
+
Joins two Fibonacci heaps into a new one.
+
+
UnionFind<T> - Class in org.jgrapht.alg.util
+
+
An implementation of Union + Find data structure.
+
+
UnionFind(Set<T>) - Constructor for class org.jgrapht.alg.util.UnionFind
+
+
Creates a UnionFind instance with all of the elements of elements in + seperate sets.
+
+
UnmodifiableDirectedGraph<V,E> - Class in org.jgrapht.graph
+
+
A directed graph that cannot be modified.
+
+
UnmodifiableDirectedGraph(DirectedGraph<V, E>) - Constructor for class org.jgrapht.graph.UnmodifiableDirectedGraph
+
+
Creates a new unmodifiable directed graph based on the specified backing + graph.
+
+
UnmodifiableGraph<V,E> - Class in org.jgrapht.graph
+
+
An unmodifiable view of the backing graph specified in the constructor.
+
+
UnmodifiableGraph(Graph<V, E>) - Constructor for class org.jgrapht.graph.UnmodifiableGraph
+
+
Creates a new unmodifiable graph based on the specified backing graph.
+
+
UnmodifiableUndirectedGraph<V,E> - Class in org.jgrapht.graph
+
+
An undirected graph that cannot be modified.
+
+
UnmodifiableUndirectedGraph(UndirectedGraph<V, E>) - Constructor for class org.jgrapht.graph.UnmodifiableUndirectedGraph
+
+
Creates a new unmodifiable undirected graph based on the specified + backing graph.
+
+
updateVertex(V, Map<String, String>) - Method in interface org.jgrapht.ext.VertexUpdater
+
+
Update vertex with the extra attributes.
+
+
+ + + +

V

+
+
value - Variable in class org.jgrapht.util.ModifiableInteger
+
+
The int value represented by this ModifiableInteger.
+
+
valueOf(String) - Static method in enum org.jgrapht.traverse.CrossComponentIterator.VisitColor
+
+
Returns the enum constant of this type with the specified name.
+
+
values() - Static method in enum org.jgrapht.traverse.CrossComponentIterator.VisitColor
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
vertex - Variable in class org.jgrapht.alg.StoerWagnerMinimumCut.VertexAndWeight
+
 
+
vertex - Variable in class org.jgrapht.event.GraphVertexChangeEvent
+
+
The vertex that this event is related to.
+
+
vertex - Variable in class org.jgrapht.event.VertexTraversalEvent
+
+
The traversed vertex.
+
+
VERTEX_ADDED - Static variable in class org.jgrapht.event.GraphVertexChangeEvent
+
+
Vertex added event.
+
+
VERTEX_REMOVED - Static variable in class org.jgrapht.event.GraphVertexChangeEvent
+
+
Vertex removed event.
+
+
vertexAdded(GraphVertexChangeEvent<V>) - Method in class org.jgrapht.alg.ConnectivityInspector
+
 
+
vertexAdded(GraphVertexChangeEvent<V>) - Method in class org.jgrapht.alg.DirectedNeighborIndex
+
 
+
vertexAdded(GraphVertexChangeEvent<V>) - Method in class org.jgrapht.alg.NeighborIndex
+
 
+
vertexAdded(GraphVertexChangeEvent<V>) - Method in interface org.jgrapht.event.VertexSetListener
+
+
Notifies that a vertex has been added to the graph.
+
+
vertexAdded(GraphVertexChangeEvent<V>) - Method in class org.jgrapht.ext.JGraphXAdapter
+
 
+
vertexComparator - Variable in class org.jgrapht.alg.isomorphism.VF2AbstractIsomorphismInspector
+
 
+
VertexCovers - Class in org.jgrapht.alg
+
+
Algorithms to find a vertex cover for a graph.
+
+
VertexCovers() - Constructor for class org.jgrapht.alg.VertexCovers
+
 
+
VertexDegreeComparator<V,E> - Class in org.jgrapht.alg.util
+
+
Compares two vertices based on their degree.
+
+
VertexDegreeComparator(UndirectedGraph<V, E>) - Constructor for class org.jgrapht.alg.util.VertexDegreeComparator
+
+
Creates a comparator for comparing the degrees of vertices in the + specified graph.
+
+
VertexDegreeComparator(UndirectedGraph<V, E>, boolean) - Constructor for class org.jgrapht.alg.util.VertexDegreeComparator
+
+
Creates a comparator for comparing the degrees of vertices in the + specified graph.
+
+
vertexExtended(V) - Method in class org.jgrapht.alg.flow.MaximumFlowAlgorithmBase
+
 
+
VertexFactory<V> - Interface in org.jgrapht
+
+
A vertex factory used by graph algorithms for creating new vertices.
+
+
vertexFinished(VertexTraversalEvent<V>) - Method in interface org.jgrapht.event.TraversalListener
+
+
Called to inform the listener that the specified vertex have been + finished during the graph traversal.
+
+
vertexFinished(VertexTraversalEvent<V>) - Method in class org.jgrapht.event.TraversalListenerAdapter
+
 
+
vertexMapDirected - Variable in class org.jgrapht.graph.AbstractBaseGraph.DirectedSpecifics
+
 
+
VertexNameProvider<V> - Interface in org.jgrapht.ext
+
+
Assigns a display name for each of the graph vertices.
+
+
VertexPair<V> - Class in org.jgrapht.util
+
+
Representation of a pair of vertices; to be replaced by Pair<V,V> if + Sun ever gets around to adding Pair to java.util.
+
+
VertexPair(V, V) - Constructor for class org.jgrapht.util.VertexPair
+
 
+
VertexProvider<V> - Interface in org.jgrapht.ext
+
+
Creates a Vertex of type V
+
+
vertexRemoved(GraphVertexChangeEvent<V>) - Method in class org.jgrapht.alg.ConnectivityInspector
+
 
+
vertexRemoved(GraphVertexChangeEvent<V>) - Method in class org.jgrapht.alg.DirectedNeighborIndex
+
 
+
vertexRemoved(GraphVertexChangeEvent<V>) - Method in class org.jgrapht.alg.NeighborIndex
+
 
+
vertexRemoved(GraphVertexChangeEvent<V>) - Method in interface org.jgrapht.event.VertexSetListener
+
+
Notifies that a vertex has been removed from the graph.
+
+
vertexRemoved(GraphVertexChangeEvent<V>) - Method in class org.jgrapht.ext.JGraphXAdapter
+
 
+
vertexSet() - Method in class org.jgrapht.graph.AbstractBaseGraph
+
 
+
vertexSet() - Method in class org.jgrapht.graph.GraphDelegator
+
 
+
vertexSet() - Method in class org.jgrapht.graph.GraphUnion
+
 
+
vertexSet() - Method in class org.jgrapht.graph.MaskSubgraph
+
 
+
vertexSet() - Method in class org.jgrapht.graph.Subgraph
+
 
+
vertexSet() - Method in interface org.jgrapht.Graph
+
+
Returns a set of the vertices contained in this graph.
+
+
VertexSetListener<V> - Interface in org.jgrapht.event
+
+
A listener that is notified when the graph's vertex set changes.
+
+
vertexToHeapNodeMap - Variable in class org.jgrapht.alg.AStarShortestPath
+
 
+
VertexTraversalEvent<V> - Class in org.jgrapht.event
+
+
A traversal event for a graph vertex.
+
+
VertexTraversalEvent(Object, V) - Constructor for class org.jgrapht.event.VertexTraversalEvent
+
+
Creates a new VertexTraversalEvent.
+
+
vertexTraversed(VertexTraversalEvent<V>) - Method in interface org.jgrapht.event.TraversalListener
+
+
Called to inform the listener that the specified vertex have been visited + during the graph traversal.
+
+
vertexTraversed(VertexTraversalEvent<V>) - Method in class org.jgrapht.event.TraversalListenerAdapter
+
 
+
VertexUpdater<V> - Interface in org.jgrapht.ext
+
+
Type to handle updates to a vertex when an import gets more information about + a vertex after it has been created.
+
+
vertexWeight(Set<V>) - Method in class org.jgrapht.alg.StoerWagnerMinimumCut
+
+
Compute the sum of the weights entering a vertex
+
+
vertices - Variable in class org.jgrapht.generate.SimpleWeightedGraphMatrixGenerator
+
 
+
vertices(List<V>) - Method in class org.jgrapht.generate.SimpleWeightedGraphMatrixGenerator
+
 
+
VF2AbstractIsomorphismInspector<V,E> - Class in org.jgrapht.alg.isomorphism
+
 
+
VF2AbstractIsomorphismInspector(Graph<V, E>, Graph<V, E>, Comparator<V>, Comparator<E>, boolean) - Constructor for class org.jgrapht.alg.isomorphism.VF2AbstractIsomorphismInspector
+
+
This implementation of the VF2 algorithm does not support graphs with + multiple edges.
+
+
VF2AbstractIsomorphismInspector(Graph<V, E>, Graph<V, E>, Comparator<V>, Comparator<E>) - Constructor for class org.jgrapht.alg.isomorphism.VF2AbstractIsomorphismInspector
+
 
+
VF2AbstractIsomorphismInspector(Graph<V, E>, Graph<V, E>, boolean) - Constructor for class org.jgrapht.alg.isomorphism.VF2AbstractIsomorphismInspector
+
 
+
VF2AbstractIsomorphismInspector(Graph<V, E>, Graph<V, E>) - Constructor for class org.jgrapht.alg.isomorphism.VF2AbstractIsomorphismInspector
+
 
+
VF2GraphIsomorphismInspector<V,E> - Class in org.jgrapht.alg.isomorphism
+
+
This is an implementation of the VF2 algorithm using its feature of detecting + isomorphism + between two graphs as described in Cordella et al.
+
+
VF2GraphIsomorphismInspector(Graph<V, E>, Graph<V, E>, Comparator<V>, Comparator<E>, boolean) - Constructor for class org.jgrapht.alg.isomorphism.VF2GraphIsomorphismInspector
+
+
This implementation of the VF2 algorithm does not support graphs with + multiple edges.
+
+
VF2GraphIsomorphismInspector(Graph<V, E>, Graph<V, E>, Comparator<V>, Comparator<E>) - Constructor for class org.jgrapht.alg.isomorphism.VF2GraphIsomorphismInspector
+
 
+
VF2GraphIsomorphismInspector(Graph<V, E>, Graph<V, E>, boolean) - Constructor for class org.jgrapht.alg.isomorphism.VF2GraphIsomorphismInspector
+
 
+
VF2GraphIsomorphismInspector(Graph<V, E>, Graph<V, E>) - Constructor for class org.jgrapht.alg.isomorphism.VF2GraphIsomorphismInspector
+
 
+
VF2SubgraphIsomorphismInspector<V,E> - Class in org.jgrapht.alg.isomorphism
+
+
This is an implementation of the VF2 algorithm using its feature of detecting + subgraph + isomorphism between two graphs as described in Cordella et al.
+
+
VF2SubgraphIsomorphismInspector(Graph<V, E>, Graph<V, E>, Comparator<V>, Comparator<E>, boolean) - Constructor for class org.jgrapht.alg.isomorphism.VF2SubgraphIsomorphismInspector
+
+
This implementation of the VF2 algorithm does not support graphs with + multiple edges.
+
+
VF2SubgraphIsomorphismInspector(Graph<V, E>, Graph<V, E>, Comparator<V>, Comparator<E>) - Constructor for class org.jgrapht.alg.isomorphism.VF2SubgraphIsomorphismInspector
+
 
+
VF2SubgraphIsomorphismInspector(Graph<V, E>, Graph<V, E>, boolean) - Constructor for class org.jgrapht.alg.isomorphism.VF2SubgraphIsomorphismInspector
+
 
+
VF2SubgraphIsomorphismInspector(Graph<V, E>, Graph<V, E>) - Constructor for class org.jgrapht.alg.isomorphism.VF2SubgraphIsomorphismInspector
+
 
+
VisioExporter<V,E> - Class in org.jgrapht.ext
+
+
Exports a graph to a csv format that can be imported into MS Visio.
+
+
VisioExporter(VertexNameProvider<V>) - Constructor for class org.jgrapht.ext.VisioExporter
+
+
Creates a new VisioExporter object with the specified naming policy.
+
+
VisioExporter() - Constructor for class org.jgrapht.ext.VisioExporter
+
+
Creates a new VisioExporter object.
+
+
+ + + +

W

+
+
weight - Variable in class org.jgrapht.alg.StoerWagnerMinimumCut.VertexAndWeight
+
 
+
WeightCombiner - Interface in org.jgrapht.util
+
+
Binary operator for edge weights.
+
+
WeightedGraph<V,E> - Interface in org.jgrapht
+
+
An interface for a graph whose edges have non-uniform weights.
+
+
WeightedGraphGenerator<V,E> - Class in org.jgrapht.generate
+
 
+
WeightedGraphGenerator() - Constructor for class org.jgrapht.generate.WeightedGraphGenerator
+
 
+
WeightedGraphGeneratorAdapter<V,E,T> - Class in org.jgrapht.generate
+
+
WeightedGraphGenerator defines an interface for generating graph structures + having edges weighted with real values.
+
+
WeightedGraphGeneratorAdapter() - Constructor for class org.jgrapht.generate.WeightedGraphGeneratorAdapter
+
 
+
WeightedMatchingAlgorithm<V,E> - Interface in org.jgrapht.alg.interfaces
+
+
Allows to derive weighted matching from general graph
+
+
WeightedMultigraph<V,E> - Class in org.jgrapht.graph
+
+
A weighted multigraph.
+
+
WeightedMultigraph(EdgeFactory<V, E>) - Constructor for class org.jgrapht.graph.WeightedMultigraph
+
+
Creates a new weighted multigraph with the specified edge factory.
+
+
WeightedMultigraph(Class<? extends E>) - Constructor for class org.jgrapht.graph.WeightedMultigraph
+
+
Creates a new weighted multigraph.
+
+
WeightedPseudograph<V,E> - Class in org.jgrapht.graph
+
+
A weighted pseudograph.
+
+
WeightedPseudograph(EdgeFactory<V, E>) - Constructor for class org.jgrapht.graph.WeightedPseudograph
+
+
Creates a new weighted pseudograph with the specified edge factory.
+
+
WeightedPseudograph(Class<? extends E>) - Constructor for class org.jgrapht.graph.WeightedPseudograph
+
+
Creates a new weighted pseudograph.
+
+
weightMap - Variable in class org.jgrapht.graph.AsWeightedGraph
+
 
+
weights - Variable in class org.jgrapht.generate.WeightedGraphGenerator
+
 
+
weights(double[][]) - Method in class org.jgrapht.generate.WeightedGraphGenerator
+
 
+
weights - Variable in class org.jgrapht.generate.WeightedGraphGeneratorAdapter
+
 
+
weights(double[][]) - Method in class org.jgrapht.generate.WeightedGraphGeneratorAdapter
+
 
+
WheelGraphGenerator<V,E> - Class in org.jgrapht.generate
+
+
Generates a wheel + graph of any size.
+
+
WheelGraphGenerator(int) - Constructor for class org.jgrapht.generate.WheelGraphGenerator
+
+
Creates a new WheelGraphGenerator object.
+
+
WheelGraphGenerator(int, boolean) - Constructor for class org.jgrapht.generate.WheelGraphGenerator
+
+
Construct a new WheelGraphGenerator.
+
+
+ + + +

_

+
+
_neighbors - Variable in class org.jgrapht.experimental.alg.IntArrayGraphAlgorithm
+
 
+
_vertexToPos - Variable in class org.jgrapht.experimental.alg.IntArrayGraphAlgorithm
+
 
+
_vertices - Variable in class org.jgrapht.experimental.alg.IntArrayGraphAlgorithm
+
 
+
+A B C D E F G H I J K L M N O P R S T U V W _ 
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/index.html b/javadoc/index.html new file mode 100644 index 0000000..ca3f9c1 --- /dev/null +++ b/javadoc/index.html @@ -0,0 +1,75 @@ + + + + + + +JGraphT : a free Java graph library + + + + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> + + + diff --git a/javadoc/org/jgrapht/DirectedGraph.html b/javadoc/org/jgrapht/DirectedGraph.html new file mode 100644 index 0000000..48c7d06 --- /dev/null +++ b/javadoc/org/jgrapht/DirectedGraph.html @@ -0,0 +1,309 @@ + + + + + + +DirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht
+

Interface DirectedGraph<V,E>

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        inDegreeOf

        +
        int inDegreeOf(V vertex)
        +
        Returns the "in degree" of the specified vertex. An in degree of a vertex + in a directed graph is the number of inward directed edges from that + vertex. See + http://mathworld.wolfram.com/Indegree.html.
        +
        Parameters:
        vertex - vertex whose degree is to be calculated.
        +
        Returns:
        the degree of the specified vertex.
        +
      • +
      + + + + + +
        +
      • +

        incomingEdgesOf

        +
        Set<E> incomingEdgesOf(V vertex)
        +
        Returns a set of all edges incoming into the specified vertex.
        +
        Parameters:
        vertex - the vertex for which the list of incoming edges to be + returned.
        +
        Returns:
        a set of all edges incoming into the specified vertex.
        +
      • +
      + + + + + +
        +
      • +

        outDegreeOf

        +
        int outDegreeOf(V vertex)
        +
        Returns the "out degree" of the specified vertex. An out degree of a + vertex in a directed graph is the number of outward directed edges from + that vertex. See + http://mathworld.wolfram.com/Outdegree.html.
        +
        Parameters:
        vertex - vertex whose degree is to be calculated.
        +
        Returns:
        the degree of the specified vertex.
        +
      • +
      + + + + + +
        +
      • +

        outgoingEdgesOf

        +
        Set<E> outgoingEdgesOf(V vertex)
        +
        Returns a set of all edges outgoing from the specified vertex.
        +
        Parameters:
        vertex - the vertex for which the list of outgoing edges to be + returned.
        +
        Returns:
        a set of all edges outgoing from the specified vertex.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/EdgeFactory.html b/javadoc/org/jgrapht/EdgeFactory.html new file mode 100644 index 0000000..34ea824 --- /dev/null +++ b/javadoc/org/jgrapht/EdgeFactory.html @@ -0,0 +1,229 @@ + + + + + + +EdgeFactory (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht
+

Interface EdgeFactory<V,E>

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    ClassBasedEdgeFactory
    +
    +
    +
    +
    public interface EdgeFactory<V,E>
    +
    An edge factory used by graphs for creating new edges.
    +
    Since:
    +
    Jul 14, 2003
    +
    Author:
    +
    Barak Naveh
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      EcreateEdge(V sourceVertex, + V targetVertex) +
      Creates a new edge whose endpoints are the specified source and target + vertices.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        createEdge

        +
        E createEdge(V sourceVertex,
        +           V targetVertex)
        +
        Creates a new edge whose endpoints are the specified source and target + vertices.
        +
        Parameters:
        sourceVertex - the source vertex.
        targetVertex - the target vertex.
        +
        Returns:
        a new edge whose endpoints are the specified source and target + vertices.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/Graph.html b/javadoc/org/jgrapht/Graph.html new file mode 100644 index 0000000..a911dab --- /dev/null +++ b/javadoc/org/jgrapht/Graph.html @@ -0,0 +1,814 @@ + + + + + + +Graph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht
+

Interface Graph<V,E>

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      EaddEdge(V sourceVertex, + V targetVertex) +
      Creates a new edge in this graph, going from the source vertex to the + target vertex, and returns the created edge.
      +
      booleanaddEdge(V sourceVertex, + V targetVertex, + E e) +
      Adds the specified edge to this graph, going from the source vertex to + the target vertex.
      +
      booleanaddVertex(V v) +
      Adds the specified vertex to this graph if not already present.
      +
      booleancontainsEdge(E e) +
      Returns true if this graph contains the specified edge.
      +
      booleancontainsEdge(V sourceVertex, + V targetVertex) +
      Returns true if and only if this graph contains an edge going + from the source vertex to the target vertex.
      +
      booleancontainsVertex(V v) +
      Returns true if this graph contains the specified vertex.
      +
      Set<E>edgeSet() +
      Returns a set of the edges contained in this graph.
      +
      Set<E>edgesOf(V vertex) +
      Returns a set of all edges touching the specified vertex.
      +
      Set<E>getAllEdges(V sourceVertex, + V targetVertex) +
      Returns a set of all edges connecting source vertex to target vertex if + such vertices exist in this graph.
      +
      EgetEdge(V sourceVertex, + V targetVertex) +
      Returns an edge connecting source vertex to target vertex if such + vertices and such edge exist in this graph.
      +
      EdgeFactory<V,E>getEdgeFactory() +
      Returns the edge factory using which this graph creates new edges.
      +
      VgetEdgeSource(E e) +
      Returns the source vertex of an edge.
      +
      VgetEdgeTarget(E e) +
      Returns the target vertex of an edge.
      +
      doublegetEdgeWeight(E e) +
      Returns the weight assigned to a given edge.
      +
      booleanremoveAllEdges(Collection<? extends E> edges) +
      Removes all the edges in this graph that are also contained in the + specified edge collection.
      +
      Set<E>removeAllEdges(V sourceVertex, + V targetVertex) +
      Removes all the edges going from the specified source vertex to the + specified target vertex, and returns a set of all removed edges.
      +
      booleanremoveAllVertices(Collection<? extends V> vertices) +
      Removes all the vertices in this graph that are also contained in the + specified vertex collection.
      +
      booleanremoveEdge(E e) +
      Removes the specified edge from the graph.
      +
      EremoveEdge(V sourceVertex, + V targetVertex) +
      Removes an edge going from source vertex to target vertex, if such + vertices and such edge exist in this graph.
      +
      booleanremoveVertex(V v) +
      Removes the specified vertex from this graph including all its touching + edges if present.
      +
      Set<V>vertexSet() +
      Returns a set of the vertices contained in this graph.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getAllEdges

        +
        Set<E> getAllEdges(V sourceVertex,
        +                 V targetVertex)
        +
        Returns a set of all edges connecting source vertex to target vertex if + such vertices exist in this graph. If any of the vertices does not exist + or is null, returns null. If both vertices + exist but no edges found, returns an empty set. + +

        In undirected graphs, some of the returned edges may have their source + and target vertices in the opposite order. In simple graphs the returned + set is either singleton set or empty set.

        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        a set of all edges connecting source vertex to target vertex.
        +
      • +
      + + + + + +
        +
      • +

        getEdge

        +
        E getEdge(V sourceVertex,
        +        V targetVertex)
        +
        Returns an edge connecting source vertex to target vertex if such + vertices and such edge exist in this graph. Otherwise returns + null. If any of the specified vertices is null + returns null + +

        In undirected graphs, the returned edge may have its source and target + vertices in the opposite order.

        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        an edge connecting source vertex to target vertex.
        +
      • +
      + + + +
        +
      • +

        getEdgeFactory

        +
        EdgeFactory<V,E> getEdgeFactory()
        +
        Returns the edge factory using which this graph creates new edges. The + edge factory is defined when the graph is constructed and must not be + modified.
        +
        Returns:
        the edge factory using which this graph creates new edges.
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        E addEdge(V sourceVertex,
        +        V targetVertex)
        +
        Creates a new edge in this graph, going from the source vertex to the + target vertex, and returns the created edge. Some graphs do not allow + edge-multiplicity. In such cases, if the graph already contains an edge + from the specified source to the specified target, than this method does + not change the graph and returns null. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        + +

        This method creates the new edge e using this graph's + EdgeFactory. For the new edge to be added e + must not be equal to any other edge the graph (even if the graph + allows edge-multiplicity). More formally, the graph must not contain any + edge e2 such that e2.equals(e). If such + e2 is found then the newly created edge e is + abandoned, the method leaves this graph unchanged returns + null.

        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The newly created edge if added to the graph, otherwise + null.
        +
        Throws:
        +
        IllegalArgumentException - if source or target vertices are not + found in the graph.
        +
        NullPointerException - if any of the specified vertices is + null.
        See Also:
        getEdgeFactory()
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        boolean addEdge(V sourceVertex,
        +              V targetVertex,
        +              E e)
        +
        Adds the specified edge to this graph, going from the source vertex to + the target vertex. More formally, adds the specified edge, + e, to this graph if this graph contains no edge e2 + such that e2.equals(e). If this graph already contains such + an edge, the call leaves this graph unchanged and returns false. + Some graphs do not allow edge-multiplicity. In such cases, if the graph + already contains an edge from the specified source to the specified + target, than this method does not change the graph and returns + false. If the edge was added to the graph, returns + true. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        e - edge to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + edge.
        +
        Throws:
        +
        IllegalArgumentException - if source or target vertices are not + found in the graph.
        +
        ClassCastException - if the specified edge is not assignment + compatible with the class of edges produced by the edge factory of this + graph.
        +
        NullPointerException - if any of the specified vertices is + null.
        See Also:
        addEdge(Object, Object), +getEdgeFactory()
        +
      • +
      + + + + + +
        +
      • +

        addVertex

        +
        boolean addVertex(V v)
        +
        Adds the specified vertex to this graph if not already present. More + formally, adds the specified vertex, v, to this graph if + this graph contains no vertex u such that + u.equals(v). If this graph already contains such vertex, the call + leaves this graph unchanged and returns false. In combination + with the restriction on constructors, this ensures that graphs never + contain duplicate vertices.
        +
        Parameters:
        v - vertex to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + vertex.
        +
        Throws:
        +
        NullPointerException - if the specified vertex is + null.
        +
      • +
      + + + + + +
        +
      • +

        containsEdge

        +
        boolean containsEdge(V sourceVertex,
        +                   V targetVertex)
        +
        Returns true if and only if this graph contains an edge going + from the source vertex to the target vertex. In undirected graphs the + same result is obtained when source and target are inverted. If any of + the specified vertices does not exist in the graph, or if is + null, returns false.
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        true if this graph contains the specified edge.
        +
      • +
      + + + + + +
        +
      • +

        containsEdge

        +
        boolean containsEdge(E e)
        +
        Returns true if this graph contains the specified edge. More + formally, returns true if and only if this graph contains an + edge e2 such that e.equals(e2). If the + specified edge is null returns false.
        +
        Parameters:
        e - edge whose presence in this graph is to be tested.
        +
        Returns:
        true if this graph contains the specified edge.
        +
      • +
      + + + + + +
        +
      • +

        containsVertex

        +
        boolean containsVertex(V v)
        +
        Returns true if this graph contains the specified vertex. More + formally, returns true if and only if this graph contains a + vertex u such that u.equals(v). If the + specified vertex is null returns false.
        +
        Parameters:
        v - vertex whose presence in this graph is to be tested.
        +
        Returns:
        true if this graph contains the specified vertex.
        +
      • +
      + + + +
        +
      • +

        edgeSet

        +
        Set<E> edgeSet()
        +
        Returns a set of the edges contained in this graph. The set is backed by + the graph, so changes to the graph are reflected in the set. If the graph + is modified while an iteration over the set is in progress, the results + of the iteration are undefined. + +

        The graph implementation may maintain a particular set ordering (e.g. + via LinkedHashSet) for deterministic iteration, but + this is not required. It is the responsibility of callers who rely on + this behavior to only use graph implementations which support it.

        +
        Returns:
        a set of the edges contained in this graph.
        +
      • +
      + + + + + +
        +
      • +

        edgesOf

        +
        Set<E> edgesOf(V vertex)
        +
        Returns a set of all edges touching the specified vertex. If no edges are + touching the specified vertex returns an empty set.
        +
        Parameters:
        vertex - the vertex for which a set of touching edges is to be + returned.
        +
        Returns:
        a set of all edges touching the specified vertex.
        +
        Throws:
        +
        IllegalArgumentException - if vertex is not found in the graph.
        +
        NullPointerException - if vertex is null.
        +
      • +
      + + + +
        +
      • +

        removeAllEdges

        +
        boolean removeAllEdges(Collection<? extends E> edges)
        +
        Removes all the edges in this graph that are also contained in the + specified edge collection. After this call returns, this graph will + contain no edges in common with the specified edges. This method will + invoke the removeEdge(Object) method.
        +
        Parameters:
        edges - edges to be removed from this graph.
        +
        Returns:
        true if this graph changed as a result of the call
        +
        Throws:
        +
        NullPointerException - if the specified edge collection is + null.
        See Also:
        removeEdge(Object), +containsEdge(Object)
        +
      • +
      + + + + + +
        +
      • +

        removeAllEdges

        +
        Set<E> removeAllEdges(V sourceVertex,
        +                    V targetVertex)
        +
        Removes all the edges going from the specified source vertex to the + specified target vertex, and returns a set of all removed edges. Returns + null if any of the specified vertices does not exist in the + graph. If both vertices exist but no edge is found, returns an empty set. + This method will either invoke the removeEdge(Object) method, or + the removeEdge(Object, Object) method.
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        the removed edges, or null if either vertex is not + part of graph
        +
      • +
      + + + +
        +
      • +

        removeAllVertices

        +
        boolean removeAllVertices(Collection<? extends V> vertices)
        +
        Removes all the vertices in this graph that are also contained in the + specified vertex collection. After this call returns, this graph will + contain no vertices in common with the specified vertices. This method + will invoke the removeVertex(Object) method.
        +
        Parameters:
        vertices - vertices to be removed from this graph.
        +
        Returns:
        true if this graph changed as a result of the call
        +
        Throws:
        +
        NullPointerException - if the specified vertex collection is + null.
        See Also:
        removeVertex(Object), +containsVertex(Object)
        +
      • +
      + + + + + +
        +
      • +

        removeEdge

        +
        E removeEdge(V sourceVertex,
        +           V targetVertex)
        +
        Removes an edge going from source vertex to target vertex, if such + vertices and such edge exist in this graph. Returns the edge if removed + or null otherwise.
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The removed edge, or null if no edge removed.
        +
      • +
      + + + + + +
        +
      • +

        removeEdge

        +
        boolean removeEdge(E e)
        +
        Removes the specified edge from the graph. Removes the specified edge + from this graph if it is present. More formally, removes an edge + e2 such that e2.equals(e), if the graph contains such + edge. Returns true if the graph contained the specified edge. + (The graph will not contain the specified edge once the call returns). + +

        If the specified edge is null returns + false.

        +
        Parameters:
        e - edge to be removed from this graph, if present.
        +
        Returns:
        true if and only if the graph contained the + specified edge.
        +
      • +
      + + + + + +
        +
      • +

        removeVertex

        +
        boolean removeVertex(V v)
        +
        Removes the specified vertex from this graph including all its touching + edges if present. More formally, if the graph contains a vertex + u such that u.equals(v), the call removes all edges + that touch u and then removes u itself. If no + such u is found, the call leaves the graph unchanged. + Returns true if the graph contained the specified vertex. (The + graph will not contain the specified vertex once the call returns). + +

        If the specified vertex is null returns + false.

        +
        Parameters:
        v - vertex to be removed from this graph, if present.
        +
        Returns:
        true if the graph contained the specified vertex; + false otherwise.
        +
      • +
      + + + +
        +
      • +

        vertexSet

        +
        Set<V> vertexSet()
        +
        Returns a set of the vertices contained in this graph. The set is backed + by the graph, so changes to the graph are reflected in the set. If the + graph is modified while an iteration over the set is in progress, the + results of the iteration are undefined. + +

        The graph implementation may maintain a particular set ordering (e.g. + via LinkedHashSet) for deterministic iteration, but + this is not required. It is the responsibility of callers who rely on + this behavior to only use graph implementations which support it.

        +
        Returns:
        a set view of the vertices contained in this graph.
        +
      • +
      + + + + + +
        +
      • +

        getEdgeSource

        +
        V getEdgeSource(E e)
        +
        Returns the source vertex of an edge. For an undirected graph, source and + target are distinguishable designations (but without any mathematical + meaning).
        +
        Parameters:
        e - edge of interest
        +
        Returns:
        source vertex
        +
      • +
      + + + + + +
        +
      • +

        getEdgeTarget

        +
        V getEdgeTarget(E e)
        +
        Returns the target vertex of an edge. For an undirected graph, source and + target are distinguishable designations (but without any mathematical + meaning).
        +
        Parameters:
        e - edge of interest
        +
        Returns:
        target vertex
        +
      • +
      + + + + + +
        +
      • +

        getEdgeWeight

        +
        double getEdgeWeight(E e)
        +
        Returns the weight assigned to a given edge. Unweighted graphs return 1.0 + (as defined by WeightedGraph.DEFAULT_EDGE_WEIGHT), allowing + weighted-graph algorithms to apply to them where meaningful.
        +
        Parameters:
        e - edge of interest
        +
        Returns:
        edge weight
        See Also:
        WeightedGraph
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/GraphHelper.html b/javadoc/org/jgrapht/GraphHelper.html new file mode 100644 index 0000000..dbb344d --- /dev/null +++ b/javadoc/org/jgrapht/GraphHelper.html @@ -0,0 +1,254 @@ + + + + + + +GraphHelper (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht
+

Class GraphHelper

+
+
+ +
+
    +
  • +
    +
    Deprecated.  +
    Use Graphs instead.
    +
    +
    +
    @Deprecated
    +public abstract class GraphHelper
    +extends Graphs
    +
    A collection of utilities to assist the working with graphs.
    +
    Since:
    +
    Jul 31, 2003
    +
    Author:
    +
    Barak Naveh
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GraphHelper

        +
        public GraphHelper()
        +
        Deprecated. 
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/GraphMapping.html b/javadoc/org/jgrapht/GraphMapping.html new file mode 100644 index 0000000..ff7d5dd --- /dev/null +++ b/javadoc/org/jgrapht/GraphMapping.html @@ -0,0 +1,254 @@ + + + + + + +GraphMapping (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht
+

Interface GraphMapping<V,E>

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    DefaultGraphMapping, IsomorphicGraphMapping
    +
    +
    +
    +
    public interface GraphMapping<V,E>
    +
    GraphMapping represents a bidirectional mapping between two graphs (called + graph1 and graph2), which allows the caller to obtain the matching vertex or + edge in either direction, from graph1 to graph2, or from graph2 to graph1. It + does not have to always be a complete bidirectional mapping (it could return + null for some lookups).
    +
    Since:
    +
    Jul 30, 2005
    +
    Author:
    +
    Assaf Lehr
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      EgetEdgeCorrespondence(E edge, + boolean forward) +
      Gets the mapped value where the key is edge
      +
      VgetVertexCorrespondence(V vertex, + boolean forward) +
      Gets the mapped value where the key is vertex
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getVertexCorrespondence

        +
        V getVertexCorrespondence(V vertex,
        +                        boolean forward)
        +
        Gets the mapped value where the key is vertex
        +
        Parameters:
        vertex - vertex in one of the graphs
        forward - if true, uses mapping from graph1 to graph2; if false, use + mapping from graph2 to graph1
        +
        Returns:
        corresponding vertex in other graph, or null if none
        +
      • +
      + + + + + +
        +
      • +

        getEdgeCorrespondence

        +
        E getEdgeCorrespondence(E edge,
        +                      boolean forward)
        +
        Gets the mapped value where the key is edge
        +
        Parameters:
        edge - edge in one of the graphs
        forward - if true, uses mapping from graph1 to graph2; if false, use + mapping from graph2 to graph1
        +
        Returns:
        corresponding edge in other graph, or null if none
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/GraphPath.html b/javadoc/org/jgrapht/GraphPath.html new file mode 100644 index 0000000..dd78869 --- /dev/null +++ b/javadoc/org/jgrapht/GraphPath.html @@ -0,0 +1,302 @@ + + + + + + +GraphPath (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht
+

Interface GraphPath<V,E>

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    GraphPathImpl, SimpleGraphPath
    +
    +
    +
    +
    public interface GraphPath<V,E>
    +
    A GraphPath represents a + path in a Graph. Note that a path is defined primarily in terms + of edges (rather than vertices) so that multiple edges between the same pair + of vertices can be discriminated.
    +
    Since:
    +
    Jan 1, 2008
    +
    Author:
    +
    John Sichi
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      List<E>getEdgeList() +
      Returns the edges making up the path.
      +
      VgetEndVertex() +
      Returns the end vertex in the path.
      +
      Graph<V,E>getGraph() +
      Returns the graph over which this path is defined.
      +
      VgetStartVertex() +
      Returns the start vertex in the path.
      +
      doublegetWeight() +
      Returns the weight assigned to the path.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGraph

        +
        Graph<V,E> getGraph()
        +
        Returns the graph over which this path is defined. The path may also be + valid with respect to other graphs.
        +
        Returns:
        the containing graph
        +
      • +
      + + + +
        +
      • +

        getStartVertex

        +
        V getStartVertex()
        +
        Returns the start vertex in the path.
        +
        Returns:
        the start vertex
        +
      • +
      + + + +
        +
      • +

        getEndVertex

        +
        V getEndVertex()
        +
        Returns the end vertex in the path.
        +
        Returns:
        the end vertex
        +
      • +
      + + + +
        +
      • +

        getEdgeList

        +
        List<E> getEdgeList()
        +
        Returns the edges making up the path. The first edge in this path is + incident to the start vertex. The last edge is incident to the end + vertex. The vertices along the path can be obtained by traversing from + the start vertex, finding its opposite across the first edge, and then + doing the same successively across subsequent edges; Graphs.getPathVertexList(org.jgrapht.GraphPath<V, E>) provides a convenience method for this. + +

        Whether or not the returned edge list is modifiable depends on the + path implementation.

        +
        Returns:
        list of edges traversed by the path
        +
      • +
      + + + +
        +
      • +

        getWeight

        +
        double getWeight()
        +
        Returns the weight assigned to the path. Typically, this will be the sum + of the weights of the edge list entries (as defined by the containing + graph), but some path implementations may use other definitions.
        +
        Returns:
        the weight of the path
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/Graphs.html b/javadoc/org/jgrapht/Graphs.html new file mode 100644 index 0000000..77f4bfe --- /dev/null +++ b/javadoc/org/jgrapht/Graphs.html @@ -0,0 +1,649 @@ + + + + + + +Graphs (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht
+

Class Graphs

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    GraphHelper
    +
    +
    +
    +
    public abstract class Graphs
    +extends Object
    +
    A collection of utilities to assist with graph manipulation.
    +
    Since:
    +
    Jul 31, 2003
    +
    Author:
    +
    Barak Naveh
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Graphs() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static <V,E> booleanaddAllEdges(Graph<? super V,? super E> destination, + Graph<V,E> source, + Collection<? extends E> edges) +
      Adds a subset of the edges of the specified source graph to the specified + destination graph.
      +
      static <V,E> booleanaddAllVertices(Graph<? super V,? super E> destination, + Collection<? extends V> vertices) +
      Adds all of the specified vertices to the destination graph.
      +
      static <V,E> EaddEdge(Graph<V,E> g, + V sourceVertex, + V targetVertex, + double weight) +
      Creates a new edge and adds it to the specified graph similarly to the + Graph.addEdge(Object, Object) method.
      +
      static <V,E> booleanaddEdgeWithVertices(Graph<V,E> targetGraph, + Graph<V,E> sourceGraph, + E edge) +
      Adds the specified edge to the graph, including its vertices if not + already included.
      +
      static <V,E> EaddEdgeWithVertices(Graph<V,E> g, + V sourceVertex, + V targetVertex) +
      Adds the specified source and target vertices to the graph, if not + already included, and creates a new edge and adds it to the specified + graph similarly to the Graph.addEdge(Object, Object) method.
      +
      static <V,E> EaddEdgeWithVertices(Graph<V,E> g, + V sourceVertex, + V targetVertex, + double weight) +
      Adds the specified source and target vertices to the graph, if not + already included, and creates a new weighted edge and adds it to the + specified graph similarly to the Graph.addEdge(Object, Object) + method.
      +
      static <V,E> booleanaddGraph(Graph<? super V,? super E> destination, + Graph<V,E> source) +
      Adds all the vertices and all the edges of the specified source graph to + the specified destination graph.
      +
      static <V,E> voidaddGraphReversed(DirectedGraph<? super V,? super E> destination, + DirectedGraph<V,E> source) +
      Adds all the vertices and all the edges of the specified source digraph + to the specified destination digraph, reversing all of the edges.
      +
      static <V,E> VgetOppositeVertex(Graph<V,E> g, + E e, + V v) +
      Gets the vertex opposite another vertex across an edge.
      +
      static <V,E> List<V>getPathVertexList(GraphPath<V,E> path) +
      Gets the list of vertices visited by a path.
      +
      static <V,E> List<V>neighborListOf(Graph<V,E> g, + V vertex) +
      Returns a list of vertices that are the neighbors of a specified vertex.
      +
      static <V,E> List<V>predecessorListOf(DirectedGraph<V,E> g, + V vertex) +
      Returns a list of vertices that are the direct predecessors of a + specified vertex.
      +
      static <V,E> List<V>successorListOf(DirectedGraph<V,E> g, + V vertex) +
      Returns a list of vertices that are the direct successors of a specified + vertex.
      +
      static <V,E> booleantestIncidence(Graph<V,E> g, + E e, + V v) +
      Tests whether an edge is incident to a vertex.
      +
      static <V,E> UndirectedGraph<V,E>undirectedGraph(Graph<V,E> g) +
      Returns an undirected view of the specified graph.
      +
      + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Graphs

        +
        public Graphs()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        addEdge

        +
        public static <V,E> E addEdge(Graph<V,E> g,
        +              V sourceVertex,
        +              V targetVertex,
        +              double weight)
        +
        Creates a new edge and adds it to the specified graph similarly to the + Graph.addEdge(Object, Object) method.
        +
        Parameters:
        g - the graph for which the edge to be added.
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        weight - weight of the edge.
        +
        Returns:
        The newly created edge if added to the graph, otherwise + null.
        See Also:
        Graph.addEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        addEdgeWithVertices

        +
        public static <V,E> E addEdgeWithVertices(Graph<V,E> g,
        +                          V sourceVertex,
        +                          V targetVertex)
        +
        Adds the specified source and target vertices to the graph, if not + already included, and creates a new edge and adds it to the specified + graph similarly to the Graph.addEdge(Object, Object) method.
        +
        Parameters:
        g - the graph for which the specified edge to be added.
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The newly created edge if added to the graph, otherwise + null.
        +
      • +
      + + + + + +
        +
      • +

        addEdgeWithVertices

        +
        public static <V,E> boolean addEdgeWithVertices(Graph<V,E> targetGraph,
        +                                Graph<V,E> sourceGraph,
        +                                E edge)
        +
        Adds the specified edge to the graph, including its vertices if not + already included.
        +
        Parameters:
        targetGraph - the graph for which the specified edge to be added.
        sourceGraph - the graph in which the specified edge is already + present
        edge - edge to add
        +
        Returns:
        true if the target graph did not already contain the + specified edge.
        +
      • +
      + + + + + +
        +
      • +

        addEdgeWithVertices

        +
        public static <V,E> E addEdgeWithVertices(Graph<V,E> g,
        +                          V sourceVertex,
        +                          V targetVertex,
        +                          double weight)
        +
        Adds the specified source and target vertices to the graph, if not + already included, and creates a new weighted edge and adds it to the + specified graph similarly to the Graph.addEdge(Object, Object) + method.
        +
        Parameters:
        g - the graph for which the specified edge to be added.
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        weight - weight of the edge.
        +
        Returns:
        The newly created edge if added to the graph, otherwise + null.
        +
      • +
      + + + +
        +
      • +

        addGraph

        +
        public static <V,E> boolean addGraph(Graph<? super V,? super E> destination,
        +                     Graph<V,E> source)
        +
        Adds all the vertices and all the edges of the specified source graph to + the specified destination graph. First all vertices of the source graph + are added to the destination graph. Then every edge of the source graph + is added to the destination graph. This method returns true + if the destination graph has been modified as a result of this operation, + otherwise it returns false. + +

        The behavior of this operation is undefined if any of the specified + graphs is modified while operation is in progress.

        +
        Parameters:
        destination - the graph to which vertices and edges are added.
        source - the graph used as source for vertices and edges to add.
        +
        Returns:
        true if and only if the destination graph has been + changed as a result of this operation.
        +
      • +
      + + + +
        +
      • +

        addGraphReversed

        +
        public static <V,E> void addGraphReversed(DirectedGraph<? super V,? super E> destination,
        +                          DirectedGraph<V,E> source)
        +
        Adds all the vertices and all the edges of the specified source digraph + to the specified destination digraph, reversing all of the edges. If you + want to do this as a linked view of the source graph (rather than by + copying to a destination graph), use EdgeReversedGraph instead. + +

        The behavior of this operation is undefined if any of the specified + graphs is modified while operation is in progress.

        +
        Parameters:
        destination - the graph to which vertices and edges are added.
        source - the graph used as source for vertices and edges to add.
        See Also:
        EdgeReversedGraph
        +
      • +
      + + + +
        +
      • +

        addAllEdges

        +
        public static <V,E> boolean addAllEdges(Graph<? super V,? super E> destination,
        +                        Graph<V,E> source,
        +                        Collection<? extends E> edges)
        +
        Adds a subset of the edges of the specified source graph to the specified + destination graph. The behavior of this operation is undefined if either + of the graphs is modified while the operation is in progress. addEdgeWithVertices(org.jgrapht.Graph<V, E>, V, V) is used for the transfer, so source vertexes will + be added automatically to the target graph.
        +
        Parameters:
        destination - the graph to which edges are to be added
        source - the graph used as a source for edges to add
        edges - the edges to be added
        +
        Returns:
        true if this graph changed as a result of the call
        +
      • +
      + + + +
        +
      • +

        addAllVertices

        +
        public static <V,E> boolean addAllVertices(Graph<? super V,? super E> destination,
        +                           Collection<? extends V> vertices)
        +
        Adds all of the specified vertices to the destination graph. The behavior + of this operation is undefined if the specified vertex collection is + modified while the operation is in progress. This method will invoke the + Graph.addVertex(Object) method.
        +
        Parameters:
        destination - the graph to which edges are to be added
        vertices - the vertices to be added to the graph.
        +
        Returns:
        true if graph changed as a result of the call
        +
        Throws:
        +
        NullPointerException - if the specified vertices contains one or + more null vertices, or if the specified vertex collection is + null.
        See Also:
        Graph.addVertex(Object)
        +
      • +
      + + + + + +
        +
      • +

        neighborListOf

        +
        public static <V,E> List<V> neighborListOf(Graph<V,E> g,
        +                           V vertex)
        +
        Returns a list of vertices that are the neighbors of a specified vertex. + If the graph is a multigraph vertices may appear more than once in the + returned list.
        +
        Parameters:
        g - the graph to look for neighbors in.
        vertex - the vertex to get the neighbors of.
        +
        Returns:
        a list of the vertices that are the neighbors of the specified + vertex.
        +
      • +
      + + + + + +
        +
      • +

        predecessorListOf

        +
        public static <V,E> List<V> predecessorListOf(DirectedGraph<V,E> g,
        +                              V vertex)
        +
        Returns a list of vertices that are the direct predecessors of a + specified vertex. If the graph is a multigraph, vertices may appear more + than once in the returned list.
        +
        Parameters:
        g - the graph to look for predecessors in.
        vertex - the vertex to get the predecessors of.
        +
        Returns:
        a list of the vertices that are the direct predecessors of the + specified vertex.
        +
      • +
      + + + + + +
        +
      • +

        successorListOf

        +
        public static <V,E> List<V> successorListOf(DirectedGraph<V,E> g,
        +                            V vertex)
        +
        Returns a list of vertices that are the direct successors of a specified + vertex. If the graph is a multigraph vertices may appear more than once + in the returned list.
        +
        Parameters:
        g - the graph to look for successors in.
        vertex - the vertex to get the successors of.
        +
        Returns:
        a list of the vertices that are the direct successors of the + specified vertex.
        +
      • +
      + + + +
        +
      • +

        undirectedGraph

        +
        public static <V,E> UndirectedGraph<V,E> undirectedGraph(Graph<V,E> g)
        +
        Returns an undirected view of the specified graph. If the specified graph + is directed, returns an undirected view of it. If the specified graph is + already undirected, just returns it.
        +
        Parameters:
        g - the graph for which an undirected view is to be returned.
        +
        Returns:
        an undirected view of the specified graph, if it is directed, or + or the specified graph itself if it is already undirected.
        +
        Throws:
        +
        IllegalArgumentException - if the graph is neither DirectedGraph + nor UndirectedGraph.
        See Also:
        AsUndirectedGraph
        +
      • +
      + + + + + +
        +
      • +

        testIncidence

        +
        public static <V,E> boolean testIncidence(Graph<V,E> g,
        +                          E e,
        +                          V v)
        +
        Tests whether an edge is incident to a vertex.
        +
        Parameters:
        g - graph containing e and v
        e - edge in g
        v - vertex in g
        +
        Returns:
        true iff e is incident on v
        +
      • +
      + + + + + +
        +
      • +

        getOppositeVertex

        +
        public static <V,E> V getOppositeVertex(Graph<V,E> g,
        +                        E e,
        +                        V v)
        +
        Gets the vertex opposite another vertex across an edge.
        +
        Parameters:
        g - graph containing e and v
        e - edge in g
        v - vertex in g
        +
        Returns:
        vertex opposite to v across e
        +
      • +
      + + + +
        +
      • +

        getPathVertexList

        +
        public static <V,E> List<V> getPathVertexList(GraphPath<V,E> path)
        +
        Gets the list of vertices visited by a path.
        +
        Parameters:
        path - path of interest
        +
        Returns:
        corresponding vertex list
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ListenableGraph.html b/javadoc/org/jgrapht/ListenableGraph.html new file mode 100644 index 0000000..626d784 --- /dev/null +++ b/javadoc/org/jgrapht/ListenableGraph.html @@ -0,0 +1,288 @@ + + + + + + +ListenableGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht
+

Interface ListenableGraph<V,E>

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addGraphListener

        +
        void addGraphListener(GraphListener<V,E> l)
        +
        Adds the specified graph listener to this graph, if not already present.
        +
        Parameters:
        l - the listener to be added.
        +
      • +
      + + + +
        +
      • +

        addVertexSetListener

        +
        void addVertexSetListener(VertexSetListener<V> l)
        +
        Adds the specified vertex set listener to this graph, if not already + present.
        +
        Parameters:
        l - the listener to be added.
        +
      • +
      + + + +
        +
      • +

        removeGraphListener

        +
        void removeGraphListener(GraphListener<V,E> l)
        +
        Removes the specified graph listener from this graph, if present.
        +
        Parameters:
        l - the listener to be removed.
        +
      • +
      + + + +
        +
      • +

        removeVertexSetListener

        +
        void removeVertexSetListener(VertexSetListener<V> l)
        +
        Removes the specified vertex set listener from this graph, if present.
        +
        Parameters:
        l - the listener to be removed.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/UndirectedGraph.html b/javadoc/org/jgrapht/UndirectedGraph.html new file mode 100644 index 0000000..dae85f9 --- /dev/null +++ b/javadoc/org/jgrapht/UndirectedGraph.html @@ -0,0 +1,242 @@ + + + + + + +UndirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht
+

Interface UndirectedGraph<V,E>

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        degreeOf

        +
        int degreeOf(V vertex)
        +
        Returns the degree of the specified vertex. A degree of a vertex in an + undirected graph is the number of edges touching that vertex.
        +
        Parameters:
        vertex - vertex whose degree is to be calculated.
        +
        Returns:
        the degree of the specified vertex.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/VertexFactory.html b/javadoc/org/jgrapht/VertexFactory.html new file mode 100644 index 0000000..f6cf0c7 --- /dev/null +++ b/javadoc/org/jgrapht/VertexFactory.html @@ -0,0 +1,223 @@ + + + + + + +VertexFactory (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht
+

Interface VertexFactory<V>

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    ClassBasedVertexFactory
    +
    +
    +
    +
    public interface VertexFactory<V>
    +
    A vertex factory used by graph algorithms for creating new vertices. + Normally, vertices are constructed by user code and added to a graph + explicitly, but algorithms which generate new vertices require a factory.
    +
    Since:
    +
    Sep 16, 2003
    +
    Author:
    +
    John V. Sichi
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      VcreateVertex() +
      Creates a new vertex.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createVertex

        +
        V createVertex()
        +
        Creates a new vertex.
        +
        Returns:
        the new vertex
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/WeightedGraph.html b/javadoc/org/jgrapht/WeightedGraph.html new file mode 100644 index 0000000..4787e7e --- /dev/null +++ b/javadoc/org/jgrapht/WeightedGraph.html @@ -0,0 +1,277 @@ + + + + + + +WeightedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht
+

Interface WeightedGraph<V,E>

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_EDGE_WEIGHT

        +
        static final double DEFAULT_EDGE_WEIGHT
        +
        The default weight for an edge.
        +
        See Also:
        Constant Field Values
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        setEdgeWeight

        +
        void setEdgeWeight(E e,
        +                 double weight)
        +
        Assigns a weight to an edge.
        +
        Parameters:
        e - edge on which to set weight
        weight - new weight for edge
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/AStarShortestPath.html b/javadoc/org/jgrapht/alg/AStarShortestPath.html new file mode 100644 index 0000000..ec0e350 --- /dev/null +++ b/javadoc/org/jgrapht/alg/AStarShortestPath.html @@ -0,0 +1,428 @@ + + + + + + +AStarShortestPath (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class AStarShortestPath<V,E>

+
+
+ +
+
    +
  • +
    +
    +
    public class AStarShortestPath<V,E>
    +extends Object
    +
    An implementation of A* shortest path + algorithm. A* + shortest path algorithm german Wiki . This class works for Directed and + Undirected graphs, as well as Multi-Graphs and Mixed-Graphs. It's ok if the + graph changes in between invocations of the getShortestPath(Object, + Object, AStarAdmissibleHeuristic) getShortestPath} method; no new instance + of this class has to be created. The heuristic is implemented using a + FibonacciHeap data structure to maintain the set of open nodes. However, + there still exist several approaches in literature to improve the performance + of this heuristic which one could consider to implement. Another issue to + take into consideration is the following: given to candidate nodes, i, j to + expand, where f(i)=f(j), g(i)>g(j), h(i)<g(j), f(i)=g(i)+h(i), g(i) is + the actual distance from the source node to i, h(i) is the estimated distance + from i to the target node. Usually a depth-first search is desired, so + ideally we would expand node i first. Using the FibonacciHeap, this is not + necessarily the case though. This could be improved in a later version.
    +
    Since:
    +
    Aug, 2015
    +
    Author:
    +
    Joris Kinable, Jon Robison, Thomas Breitbart
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AStarShortestPath

        +
        public AStarShortestPath(Graph<V,E> graph)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getShortestPath

        +
        public GraphPath<V,E> getShortestPath(V sourceVertex,
        +                             V targetVertex,
        +                             AStarAdmissibleHeuristic<V> admissibleHeuristic)
        +
        Calculates (and returns) the shortest path from the sourceVertex to the + targetVertex. Note: each time you invoke this method, the path gets + recomputed.
        +
        Parameters:
        sourceVertex - source vertex
        targetVertex - target vertex
        admissibleHeuristic - admissible heuristic which estimates the + distance from a node to the target node.
        +
        Returns:
        the shortest path from sourceVertex to targetVertex
        +
      • +
      + + + +
        +
      • +

        getNumberOfExpandedNodes

        +
        public int getNumberOfExpandedNodes()
        +
        Returns how many nodes have been expanded in the A* search procedure in + its last invocation. A node is expanded if it is removed from the open + list.
        +
        Returns:
        number of expanded nodes
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/AllDirectedPaths.html b/javadoc/org/jgrapht/alg/AllDirectedPaths.html new file mode 100644 index 0000000..b7faf6d --- /dev/null +++ b/javadoc/org/jgrapht/alg/AllDirectedPaths.html @@ -0,0 +1,312 @@ + + + + + + +AllDirectedPaths (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class AllDirectedPaths<V,E>

+
+
+ +
+
    +
  • +
    +
    +
    public class AllDirectedPaths<V,E>
    +extends Object
    +
    A Dijkstra-like algorithm to find all paths between two sets of nodes in a + directed graph, with options to search only simple paths and to limit the + path length.
    +
    Since:
    +
    Feb, 2016
    +
    Author:
    +
    Andrew Gainer-Dewar
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AllDirectedPaths

        +
        public AllDirectedPaths(DirectedGraph<V,E> graph)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getAllPaths

        +
        public List<GraphPath<V,E>> getAllPaths(V sourceVertex,
        +                               V targetVertex,
        +                               boolean simplePathsOnly,
        +                               Integer maxPathLength)
        +
        Calculate (and return) all paths from the source vertex to the target + vertex.
        +
        Parameters:
        sourceVertex - the source vertex
        targetVertex - the target vertex
        simplePathsOnly - if true, only search simple + (non-self-intersecting) paths
        maxPathLength - maximum number of edges to allow in a path (if null, + all paths are considered, which may be very slow due to potentially huge + output)
        +
      • +
      + + + +
        +
      • +

        getAllPaths

        +
        public List<GraphPath<V,E>> getAllPaths(Set<V> sourceVertices,
        +                               Set<V> targetVertices,
        +                               boolean simplePathsOnly,
        +                               Integer maxPathLength)
        +
        Calculate (and return) all paths from the source vertices to the target + vertices.
        +
        Parameters:
        sourceVertices - the source vertices
        targetVertices - the target vertices
        simplePathsOnly - if true, only search simple + (non-self-intersecting) paths
        maxPathLength - maximum number of edges to allow in a path (if null, + all paths are considered, which may be very slow due to potentially huge + output)
        +
        Returns:
        list of all paths from the sources to the targets containing no + more than maxPathLength edges
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/BellmanFordShortestPath.html b/javadoc/org/jgrapht/alg/BellmanFordShortestPath.html new file mode 100644 index 0000000..6a11237 --- /dev/null +++ b/javadoc/org/jgrapht/alg/BellmanFordShortestPath.html @@ -0,0 +1,426 @@ + + + + + + +BellmanFordShortestPath (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class BellmanFordShortestPath<V,E>

+
+
+ +
+
    +
  • +
    +
    +
    public class BellmanFordShortestPath<V,E>
    +extends Object
    +
    Bellman-Ford + algorithm: weights could be negative, paths could be constrained by a + maximum number of edges.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      protected Graph<V,E>graph +
      Graph on which shortest paths are searched.
      +
      protected VstartVertex +
      Start vertex.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      BellmanFordShortestPath(Graph<V,E> graph, + V startVertex) +
      Creates an object to calculate shortest paths between the start vertex + and others vertices using the Bellman-Ford algorithm.
      +
      BellmanFordShortestPath(Graph<V,E> graph, + V startVertex, + int nMaxHops) +
      Creates an object to calculate shortest paths between the start vertex + and others vertices using the Bellman-Ford algorithm.
      +
      BellmanFordShortestPath(Graph<V,E> graph, + V startVertex, + int nMaxHops, + double epsilon) +
      Creates an object to calculate shortest paths between the start vertex + and others vertices using the Bellman-Ford algorithm.
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        graph

        +
        protected Graph<V,E> graph
        +
        Graph on which shortest paths are searched.
        +
      • +
      + + + +
        +
      • +

        startVertex

        +
        protected V startVertex
        +
        Start vertex.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        BellmanFordShortestPath

        +
        public BellmanFordShortestPath(Graph<V,E> graph,
        +                       V startVertex)
        +
        Creates an object to calculate shortest paths between the start vertex + and others vertices using the Bellman-Ford algorithm.
        +
        Parameters:
        graph -
        startVertex -
        +
      • +
      + + + + + +
        +
      • +

        BellmanFordShortestPath

        +
        public BellmanFordShortestPath(Graph<V,E> graph,
        +                       V startVertex,
        +                       int nMaxHops)
        +
        Creates an object to calculate shortest paths between the start vertex + and others vertices using the Bellman-Ford algorithm.
        +
        Parameters:
        graph -
        startVertex -
        nMaxHops - maximum number of edges of the calculated paths.
        +
      • +
      + + + + + +
        +
      • +

        BellmanFordShortestPath

        +
        public BellmanFordShortestPath(Graph<V,E> graph,
        +                       V startVertex,
        +                       int nMaxHops,
        +                       double epsilon)
        +
        Creates an object to calculate shortest paths between the start vertex + and others vertices using the Bellman-Ford algorithm.
        +
        Parameters:
        graph -
        startVertex -
        nMaxHops - maximum number of edges of the calculated paths.
        epsilon - tolerance factor.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getCost

        +
        public double getCost(V endVertex)
        +
        Parameters:
        endVertex - end vertex.
        +
        Returns:
        the cost of the shortest path between the start vertex and the + end vertex.
        +
      • +
      + + + + + +
        +
      • +

        getPathEdgeList

        +
        public List<E> getPathEdgeList(V endVertex)
        +
        Parameters:
        endVertex - end vertex.
        +
        Returns:
        list of Edge, or null if no path exists between the + start vertex and the end vertex.
        +
      • +
      + + + + + +
        +
      • +

        findPathBetween

        +
        public static <V,E> List<E> findPathBetween(Graph<V,E> graph,
        +                            V startVertex,
        +                            V endVertex)
        +
        Convenience method to find the shortest path via a single static method + call. If you need a more advanced search (e.g. limited by hops, or + computation of the path length), use the constructor instead.
        +
        Parameters:
        graph - the graph to be searched
        startVertex - the vertex at which the path should start
        endVertex - the vertex at which the path should end
        +
        Returns:
        List of Edges, or null if no path exists
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/BiconnectivityInspector.html b/javadoc/org/jgrapht/alg/BiconnectivityInspector.html new file mode 100644 index 0000000..2acfc34 --- /dev/null +++ b/javadoc/org/jgrapht/alg/BiconnectivityInspector.html @@ -0,0 +1,327 @@ + + + + + + +BiconnectivityInspector (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class BiconnectivityInspector<V,E>

+
+
+ +
+
    +
  • +
    +
    +
    public class BiconnectivityInspector<V,E>
    +extends Object
    +
    Inspects a graph for the biconnectivity property. See BlockCutpointGraph for more information. A biconnected graph has only one + block (i.e. no cutpoints).
    +
    Since:
    +
    July 5, 2007
    +
    Author:
    +
    Guillaume Boulmier
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BiconnectivityInspector

        +
        public BiconnectivityInspector(UndirectedGraph<V,E> graph)
        +
        Running time = O(m) where m is the number of edges.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getBiconnectedVertexComponents

        +
        public Set<Set<V>> getBiconnectedVertexComponents()
        +
        Returns the biconnected vertex-components of the graph.
        +
      • +
      + + + + + +
        +
      • +

        getBiconnectedVertexComponents

        +
        public Set<Set<V>> getBiconnectedVertexComponents(V vertex)
        +
        Returns the biconnected vertex-components containing the vertex. A + biconnected vertex-component contains all the vertices in the component. + A vertex which is not a cutpoint is contained in exactly one component. A + cutpoint is contained is at least 2 components.
        +
        Parameters:
        vertex -
        +
        Returns:
        set of all biconnected vertex-components containing the vertex.
        +
      • +
      + + + +
        +
      • +

        getCutpoints

        +
        public Set<V> getCutpoints()
        +
        Returns the cutpoints of the graph.
        +
      • +
      + + + +
        +
      • +

        isBiconnected

        +
        public boolean isBiconnected()
        +
        Returns true if the graph is biconnected (no cutpoint), + false otherwise.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/BlockCutpointGraph.html b/javadoc/org/jgrapht/alg/BlockCutpointGraph.html new file mode 100644 index 0000000..8d23173 --- /dev/null +++ b/javadoc/org/jgrapht/alg/BlockCutpointGraph.html @@ -0,0 +1,398 @@ + + + + + + +BlockCutpointGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class BlockCutpointGraph<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, Cloneable, Graph<UndirectedGraph<V,E>,DefaultEdge>, UndirectedGraph<UndirectedGraph<V,E>,DefaultEdge>
    +
    +
    +
    +
    public class BlockCutpointGraph<V,E>
    +extends SimpleGraph<UndirectedGraph<V,E>,DefaultEdge>
    +
    Definition of a block of a + graph in MathWorld.
    + Definition and lemma taken from the article + Structure-Based Resilience Metrics for Service-Oriented Networks: + +
      +
    • Definition 4.5 Let G(V; E) be a connected undirected graph. The + block-cut point graph (BC graph) of G, denoted by GB(VB; EB), is the + bipartite graph defined as follows. (a) VB has one node corresponding to each + block and one node corresponding to each cut point of G. (b) Each edge fx; yg + in EB joins a block node x to a cut point y if the block corresponding to x + contains the cut point node corresponding to y.
    • +
    • Lemma 4.4 Let G(V; E) be a connected undirected graph. (a) Each + pair of blocks of G share at most one node, and that node is a cutpoint. (b) + The BC graph of G is a tree in which each leaf node corresponds to a block of + G.
    • +
    +
    Since:
    +
    July 5, 2007
    +
    Author:
    +
    Guillaume Boulmier
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BlockCutpointGraph

        +
        public BlockCutpointGraph(UndirectedGraph<V,E> graph)
        +
        Running time = O(m) where m is the number of edges.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getBlock

        +
        public UndirectedGraph<V,E> getBlock(V vertex)
        +
        Returns the vertex if vertex is a cutpoint, and otherwise returns the + block (biconnected component) containing the vertex.
        +
        Parameters:
        vertex - vertex in the initial graph.
        +
      • +
      + + + +
        +
      • +

        getCutpoints

        +
        public Set<V> getCutpoints()
        +
        Returns the cutpoints of the initial graph.
        +
      • +
      + + + + + +
        +
      • +

        isCutpoint

        +
        public boolean isCutpoint(V vertex)
        +
        Returns true if the vertex is a cutpoint, false + otherwise.
        +
        Parameters:
        vertex - vertex in the initial graph.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/BronKerboschCliqueFinder.html b/javadoc/org/jgrapht/alg/BronKerboschCliqueFinder.html new file mode 100644 index 0000000..70c832a --- /dev/null +++ b/javadoc/org/jgrapht/alg/BronKerboschCliqueFinder.html @@ -0,0 +1,294 @@ + + + + + + +BronKerboschCliqueFinder (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class BronKerboschCliqueFinder<V,E>

+
+
+ +
+
    +
  • +
    +
    +
    public class BronKerboschCliqueFinder<V,E>
    +extends Object
    +
    This class implements Bron-Kerbosch clique detection algorithm as it is + described in [Samudrala R.,Moult J.:A Graph-theoretic Algorithm for + comparative Modeling of Protein Structure; J.Mol. Biol. (1998); vol 279; pp. + 287-302]
    +
    Author:
    +
    Ewgenij Proschak
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BronKerboschCliqueFinder

        +
        public BronKerboschCliqueFinder(Graph<V,E> graph)
        +
        Creates a new clique finder.
        +
        Parameters:
        graph - the graph in which cliques are to be found; graph must be + simple
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getAllMaximalCliques

        +
        public Collection<Set<V>> getAllMaximalCliques()
        +
        Finds all maximal cliques of the graph. A clique is maximal if it is + impossible to enlarge it by adding another vertex from the graph. Note + that a maximal clique is not necessarily the biggest clique in the graph.
        +
        Returns:
        Collection of cliques (each of which is represented as a Set of + vertices)
        +
      • +
      + + + +
        +
      • +

        getBiggestMaximalCliques

        +
        public Collection<Set<V>> getBiggestMaximalCliques()
        +
        Finds the biggest maximal cliques of the graph.
        +
        Returns:
        Collection of cliques (each of which is represented as a Set of + vertices)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/ChromaticNumber.html b/javadoc/org/jgrapht/alg/ChromaticNumber.html new file mode 100644 index 0000000..567ee6b --- /dev/null +++ b/javadoc/org/jgrapht/alg/ChromaticNumber.html @@ -0,0 +1,291 @@ + + + + + + +ChromaticNumber (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class ChromaticNumber

+
+
+ +
+
    +
  • +
    +
    +
    public abstract class ChromaticNumber
    +extends Object
    +
    Allows the + chromatic number of a graph to be calculated. This is the minimal number + of colors needed to color each vertex such that no two adjacent vertices + share the same color. This algorithm will not find the true chromatic number, + since this is an NP-complete problem. So, a greedy algorithm will find an + approximate chromatic number.
    +
    Since:
    +
    Dec 21, 2008
    +
    Author:
    +
    Andrew Newell
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ChromaticNumber

        +
        public ChromaticNumber()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        findGreedyChromaticNumber

        +
        public static <V,E> int findGreedyChromaticNumber(UndirectedGraph<V,E> g)
        +
        Finds the number of colors required for a greedy coloring of the graph.
        +
        Parameters:
        g - an undirected graph to find the chromatic number of
        +
        Returns:
        integer the approximate chromatic number from the greedy + algorithm
        +
      • +
      + + + +
        +
      • +

        findGreedyColoredGroups

        +
        public static <V,E> Map<Integer,Set<V>> findGreedyColoredGroups(UndirectedGraph<V,E> g)
        +
        Finds a greedy coloring of the graph.
        +
        Parameters:
        g - an undirected graph for which to find the coloring
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/CliqueMinimalSeparatorDecomposition.html b/javadoc/org/jgrapht/alg/CliqueMinimalSeparatorDecomposition.html new file mode 100644 index 0000000..2ae149b --- /dev/null +++ b/javadoc/org/jgrapht/alg/CliqueMinimalSeparatorDecomposition.html @@ -0,0 +1,422 @@ + + + + + + +CliqueMinimalSeparatorDecomposition (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class CliqueMinimalSeparatorDecomposition<V,E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.alg.CliqueMinimalSeparatorDecomposition<V,E>
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class CliqueMinimalSeparatorDecomposition<V,E>
    +extends Object
    +
    Clique Minimal Separator Decomposition using MCS-M+ and Atoms algorithm as + described in Berry et al. An Introduction to Clique Minimal Separator + Decomposition (2010), DOI:10.3390/a3020197, + http://www.mdpi.com/1999-4893/3/2/197 + +

    The Clique Minimal Separator (CMS) Decomposition is a procedure that + splits a graph into a set of subgraphs separated by minimal clique + separators, adding the separating clique to each component produced by the + separation. At the end we have a set of atoms. The CMS decomposition is + unique and yields the set of the atoms independent of the order of the + decomposition.

    +
    Author:
    +
    Florian Buenzli (fbuenzli@student.ethz.ch), Thomas Tschager (thomas.tschager@inf.ethz.ch), Tomas Hruz (tomas.hruz@inf.ethz.ch), Philipp Hoppen
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CliqueMinimalSeparatorDecomposition

        +
        public CliqueMinimalSeparatorDecomposition(UndirectedGraph<V,E> g)
        +
        Setup a clique minimal separator decomposition on undirected graph + g. Loops and multiple edges are removed, i.e. the graph is + transformed to a simple graph.
        +
        Parameters:
        g - The graph to decompose.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isChordal

        +
        public boolean isChordal()
        +
        Check if the graph is chordal.
        +
        Returns:
        true if the graph is chordal, false otherwise.
        +
      • +
      + + + +
        +
      • +

        getFillEdges

        +
        public Set<E> getFillEdges()
        +
        Get the fill edges generated by the triangulation.
        +
        Returns:
        Set of fill edges.
        +
      • +
      + + + +
        +
      • +

        getMinimalTriangulation

        +
        public UndirectedGraph<V,E> getMinimalTriangulation()
        +
        Get the minimal triangulation of the graph.
        +
        Returns:
        Triangulated graph.
        +
      • +
      + + + +
        +
      • +

        getGenerators

        +
        public List<V> getGenerators()
        +
        Get the generators of the separators of the triangulated graph, i.e. all + vertices that generate a minimal separator of triangulated graph.
        +
        Returns:
        List of generators.
        +
      • +
      + + + +
        +
      • +

        getMeo

        +
        public LinkedList<V> getMeo()
        +
        Get the minimal elimination ordering produced by the triangulation.
        +
        Returns:
        The minimal elimination ordering.
        +
      • +
      + + + +
        +
      • +

        getFullComponentCount

        +
        public Map<Set<V>,Integer> getFullComponentCount()
        +
        Get a map to know for each separator how many components it produces.
        +
        Returns:
        A map from separators to integers (component count).
        +
      • +
      + + + +
        +
      • +

        getAtoms

        +
        public Set<Set<V>> getAtoms()
        +
        Get the atoms generated by the decomposition.
        +
        Returns:
        Set of atoms, where each atom is described as the set of its + vertices.
        +
      • +
      + + + +
        +
      • +

        getSeparators

        +
        public Set<Set<V>> getSeparators()
        +
        Get the clique minimal separators.
        +
        Returns:
        Set of separators, where each separator is described as the set + of its vertices.
        +
      • +
      + + + +
        +
      • +

        getGraph

        +
        public UndirectedGraph<V,E> getGraph()
        +
        Get the original graph.
        +
        Returns:
        Original graph.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/ConnectivityInspector.html b/javadoc/org/jgrapht/alg/ConnectivityInspector.html new file mode 100644 index 0000000..a295b50 --- /dev/null +++ b/javadoc/org/jgrapht/alg/ConnectivityInspector.html @@ -0,0 +1,473 @@ + + + + + + +ConnectivityInspector (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class ConnectivityInspector<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    EventListener, GraphListener<V,E>, VertexSetListener<V>
    +
    +
    +
    +
    public class ConnectivityInspector<V,E>
    +extends Object
    +implements GraphListener<V,E>
    +
    Allows obtaining various connectivity aspects of a graph. The inspected + graph is specified at construction time and cannot be modified. + Currently, the inspector supports connected components for an undirected + graph and weakly connected components for a directed graph. To find strongly + connected components, use KosarajuStrongConnectivityInspector + instead. + +

    The inspector methods work in a lazy fashion: no computation is performed + unless immediately necessary. Computation are done once and results and + cached within this class for future need.

    + +

    The inspector is also a GraphListener. If added + as a listener to the inspected graph, the inspector will amend internal + cached results instead of recomputing them. It is efficient when a few + modifications are applied to a large graph. If many modifications are + expected it will not be efficient due to added overhead on graph update + operations. If inspector is added as listener to a graph other than the one + it inspects, results are undefined.

    +
    Since:
    +
    Aug 6, 2003
    +
    Author:
    +
    Barak Naveh, John V. Sichi
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ConnectivityInspector

        +
        public ConnectivityInspector(UndirectedGraph<V,E> g)
        +
        Creates a connectivity inspector for the specified undirected graph.
        +
        Parameters:
        g - the graph for which a connectivity inspector to be created.
        +
      • +
      + + + +
        +
      • +

        ConnectivityInspector

        +
        public ConnectivityInspector(DirectedGraph<V,E> g)
        +
        Creates a connectivity inspector for the specified directed graph.
        +
        Parameters:
        g - the graph for which a connectivity inspector to be created.
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/CycleDetector.html b/javadoc/org/jgrapht/alg/CycleDetector.html new file mode 100644 index 0000000..5787db2 --- /dev/null +++ b/javadoc/org/jgrapht/alg/CycleDetector.html @@ -0,0 +1,340 @@ + + + + + + +CycleDetector (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class CycleDetector<V,E>

+
+
+ +
+
    +
  • +
    +
    +
    public class CycleDetector<V,E>
    +extends Object
    +
    Performs cycle detection on a graph. The inspected graph is specified + at construction time and cannot be modified. Currently, the detector supports + only directed graphs.
    +
    Since:
    +
    Sept 16, 2004
    +
    Author:
    +
    John V. Sichi
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CycleDetector

        +
        public CycleDetector(DirectedGraph<V,E> graph)
        +
        Creates a cycle detector for the specified graph. Currently only directed + graphs are supported.
        +
        Parameters:
        graph - the DirectedGraph in which to detect cycles
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        detectCycles

        +
        public boolean detectCycles()
        +
        Performs yes/no cycle detection on the entire graph.
        +
        Returns:
        true iff the graph contains at least one cycle
        +
      • +
      + + + + + +
        +
      • +

        detectCyclesContainingVertex

        +
        public boolean detectCyclesContainingVertex(V v)
        +
        Performs yes/no cycle detection on an individual vertex.
        +
        Parameters:
        v - the vertex to test
        +
        Returns:
        true if v is on at least one cycle
        +
      • +
      + + + +
        +
      • +

        findCycles

        +
        public Set<V> findCycles()
        +
        Finds the vertex set for the subgraph of all cycles.
        +
        Returns:
        set of all vertices which participate in at least one cycle in + this graph
        +
      • +
      + + + + + +
        +
      • +

        findCyclesContainingVertex

        +
        public Set<V> findCyclesContainingVertex(V v)
        +
        Finds the vertex set for the subgraph of all cycles which contain a + particular vertex. + +

        REVIEW jvs 25-Aug-2006: This implementation is not guaranteed to cover + all cases. If you want to be absolutely certain that you report vertices + from all cycles containing v, it's safer (but less efficient) to use + StrongConnectivityAlgorithm instead and return the strongly connected + component containing v.

        +
        Parameters:
        v - the vertex to test
        +
        Returns:
        set of all vertices reachable from v via at least one cycle
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/DijkstraShortestPath.html b/javadoc/org/jgrapht/alg/DijkstraShortestPath.html new file mode 100644 index 0000000..560366b --- /dev/null +++ b/javadoc/org/jgrapht/alg/DijkstraShortestPath.html @@ -0,0 +1,369 @@ + + + + + + +DijkstraShortestPath (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class DijkstraShortestPath<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        DijkstraShortestPath

        +
        public DijkstraShortestPath(Graph<V,E> graph,
        +                    V startVertex,
        +                    V endVertex)
        +
        Creates and executes a new DijkstraShortestPath algorithm instance. An + instance is only good for a single search; after construction, it can be + accessed to retrieve information about the path found.
        +
        Parameters:
        graph - the graph to be searched
        startVertex - the vertex at which the path should start
        endVertex - the vertex at which the path should end
        +
      • +
      + + + + + +
        +
      • +

        DijkstraShortestPath

        +
        public DijkstraShortestPath(Graph<V,E> graph,
        +                    V startVertex,
        +                    V endVertex,
        +                    double radius)
        +
        Creates and executes a new DijkstraShortestPath algorithm instance. An + instance is only good for a single search; after construction, it can be + accessed to retrieve information about the path found.
        +
        Parameters:
        graph - the graph to be searched
        startVertex - the vertex at which the path should start
        endVertex - the vertex at which the path should end
        radius - limit on weighted path length, or Double.POSITIVE_INFINITY + for unbounded search
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPathEdgeList

        +
        public List<E> getPathEdgeList()
        +
        Return the edges making up the path found.
        +
        Returns:
        List of Edges, or null if no path exists
        +
      • +
      + + + +
        +
      • +

        getPath

        +
        public GraphPath<V,E> getPath()
        +
        Return the path found.
        +
        Returns:
        path representation, or null if no path exists
        +
      • +
      + + + +
        +
      • +

        getPathLength

        +
        public double getPathLength()
        +
        Return the weighted length of the path found.
        +
        Returns:
        path length, or Double.POSITIVE_INFINITY if no path exists
        +
      • +
      + + + + + +
        +
      • +

        findPathBetween

        +
        public static <V,E> List<E> findPathBetween(Graph<V,E> graph,
        +                            V startVertex,
        +                            V endVertex)
        +
        Convenience method to find the shortest path via a single static method + call. If you need a more advanced search (e.g. limited by radius, or + computation of the path length), use the constructor instead.
        +
        Parameters:
        graph - the graph to be searched
        startVertex - the vertex at which the path should start
        endVertex - the vertex at which the path should end
        +
        Returns:
        List of Edges, or null if no path exists
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/DirectedNeighborIndex.html b/javadoc/org/jgrapht/alg/DirectedNeighborIndex.html new file mode 100644 index 0000000..538376e --- /dev/null +++ b/javadoc/org/jgrapht/alg/DirectedNeighborIndex.html @@ -0,0 +1,450 @@ + + + + + + +DirectedNeighborIndex (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class DirectedNeighborIndex<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    EventListener, GraphListener<V,E>, VertexSetListener<V>
    +
    +
    +
    +
    public class DirectedNeighborIndex<V,E>
    +extends Object
    +implements GraphListener<V,E>
    +
    Maintains a cache of each vertex's neighbors. While lists of neighbors can be + obtained from Graphs, they are re-calculated at each invocation by + walking a vertex's incident edges, which becomes inordinately expensive when + performed often. + +

    A vertex's neighbors are cached the first time they are asked for (i.e. + the index is built on demand). The index will only be updated automatically + if it is added to the associated graph as a listener. If it is added as a + listener to a graph other than the one it indexes, results are undefined.

    +
    Since:
    +
    Dec 13, 2005
    +
    Author:
    +
    Charles Fry
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DirectedNeighborIndex

        +
        public DirectedNeighborIndex(DirectedGraph<V,E> g)
        +
        Creates a neighbor index for the specified directed graph.
        +
        Parameters:
        g - the graph for which a neighbor index is to be created.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        predecessorsOf

        +
        public Set<V> predecessorsOf(V v)
        +
        Returns the set of vertices which are the predecessors of a specified + vertex. The returned set is backed by the index, and will be updated when + the graph changes as long as the index has been added as a listener to + the graph.
        +
        Parameters:
        v - the vertex whose predecessors are desired
        +
        Returns:
        all unique predecessors of the specified vertex
        +
      • +
      + + + + + +
        +
      • +

        predecessorListOf

        +
        public List<V> predecessorListOf(V v)
        +
        Returns the set of vertices which are the predecessors of a specified + vertex. If the graph is a multigraph, vertices may appear more than once + in the returned list. Because a list of predecessors can not be + efficiently maintained, it is reconstructed on every invocation by + duplicating entries in the neighbor set. It is thus more efficient to use + predecessorsOf(Object) unless duplicate neighbors are required.
        +
        Parameters:
        v - the vertex whose predecessors are desired
        +
        Returns:
        all predecessors of the specified vertex
        +
      • +
      + + + + + +
        +
      • +

        successorsOf

        +
        public Set<V> successorsOf(V v)
        +
        Returns the set of vertices which are the successors of a specified + vertex. The returned set is backed by the index, and will be updated when + the graph changes as long as the index has been added as a listener to + the graph.
        +
        Parameters:
        v - the vertex whose successors are desired
        +
        Returns:
        all unique successors of the specified vertex
        +
      • +
      + + + + + +
        +
      • +

        successorListOf

        +
        public List<V> successorListOf(V v)
        +
        Returns the set of vertices which are the successors of a specified + vertex. If the graph is a multigraph, vertices may appear more than once + in the returned list. Because a list of successors can not be efficiently + maintained, it is reconstructed on every invocation by duplicating + entries in the neighbor set. It is thus more efficient to use successorsOf(Object) unless duplicate neighbors are required.
        +
        Parameters:
        v - the vertex whose successors are desired
        +
        Returns:
        all successors of the specified vertex
        +
      • +
      + + + + + + + + + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/EdmondsBlossomShrinking.html b/javadoc/org/jgrapht/alg/EdmondsBlossomShrinking.html new file mode 100644 index 0000000..dd65bf9 --- /dev/null +++ b/javadoc/org/jgrapht/alg/EdmondsBlossomShrinking.html @@ -0,0 +1,311 @@ + + + + + + +EdmondsBlossomShrinking (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class EdmondsBlossomShrinking<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    MatchingAlgorithm<V,E>
    +
    +
    +
    +
    public class EdmondsBlossomShrinking<V,E>
    +extends Object
    +implements MatchingAlgorithm<V,E>
    +
    An implementation of Edmonds Blossom Shrinking algorithm for constructing + maximum matchings on graphs. The algorithm runs in time O(V^4).
    +
    Since:
    +
    Jan 24, 2012
    +
    Author:
    +
    Alejandro R. Lopez del Huerto
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/EdmondsKarpMaximumFlow.html b/javadoc/org/jgrapht/alg/EdmondsKarpMaximumFlow.html new file mode 100644 index 0000000..5c7d163 --- /dev/null +++ b/javadoc/org/jgrapht/alg/EdmondsKarpMaximumFlow.html @@ -0,0 +1,491 @@ + + + + + + +EdmondsKarpMaximumFlow (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class EdmondsKarpMaximumFlow<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_EPSILON

        +
        public static final double DEFAULT_EPSILON
        +
        Deprecated. 
        +
        Default tolerance.
        +
        See Also:
        Constant Field Values
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        EdmondsKarpMaximumFlow

        +
        public EdmondsKarpMaximumFlow(DirectedGraph<V,E> network)
        +
        Deprecated. 
        +
        Constructs MaximumFlow instance to work with a copy of + network. Current source and sink are set to null. If + network is weighted, then capacities are weights, otherwise all + capacities are equal to one. Doubles are compared using + DEFAULT_EPSILON tolerance.
        +
        Parameters:
        network - network, where maximum flow will be calculated
        +
      • +
      + + + +
        +
      • +

        EdmondsKarpMaximumFlow

        +
        public EdmondsKarpMaximumFlow(DirectedGraph<V,E> network,
        +                      double epsilon)
        +
        Deprecated. 
        +
        Constructs MaximumFlow instance to work with a copy of + network. Current source and sink are set to null. If + network is weighted, then capacities are weights, otherwise all + capacities are equal to one.
        +
        Parameters:
        network - network, where maximum flow will be calculated
        epsilon - tolerance for comparing doubles
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        calculateMaximumFlow

        +
        public void calculateMaximumFlow(V source,
        +                        V sink)
        +
        Deprecated. 
        +
        Sets current source to source, current sink to sink, + then calculates maximum flow from source to sink. Note, + that source and sink must be vertices of the + network passed to the constructor, and they must be different.
        +
        Parameters:
        source - source vertex
        sink - sink vertex
        +
      • +
      + + + +
        +
      • +

        getMaximumFlowValue

        +
        public Double getMaximumFlowValue()
        +
        Deprecated. 
        +
        Returns maximum flow value, that was calculated during last + calculateMaximumFlow call, or null, if there was no + calculateMaximumFlow calls.
        +
        Returns:
        maximum flow value
        +
      • +
      + + + +
        +
      • +

        getMaximumFlow

        +
        public Map<E,Double> getMaximumFlow()
        +
        Deprecated. 
        +
        Returns maximum flow, that was calculated during last + calculateMaximumFlow call, or null, if there was no + calculateMaximumFlow calls.
        +
        Returns:
        read-only mapping from edges to doubles - flow values
        +
      • +
      + + + +
        +
      • +

        getCurrentSource

        +
        public V getCurrentSource()
        +
        Deprecated. 
        +
        Returns current source vertex, or null if there was no + calculateMaximumFlow calls.
        +
        Returns:
        current source
        +
      • +
      + + + +
        +
      • +

        getCurrentSink

        +
        public V getCurrentSink()
        +
        Deprecated. 
        +
        Returns current sink vertex, or null if there was no + calculateMaximumFlow calls.
        +
        Returns:
        current sink
        +
      • +
      + + + + + +
        +
      • +

        buildMaximumFlow

        +
        public MaximumFlowAlgorithm.MaximumFlow<V,E> buildMaximumFlow(V source,
        +                                                     V sink)
        +
        Deprecated. 
        +
        Description copied from interface: MaximumFlowAlgorithm
        +
        Builds maximum flow for the supplied network flow, for the supplied + ${source} and ${sink}
        +
        +
        Specified by:
        +
        buildMaximumFlow in interface MaximumFlowAlgorithm<V,E>
        +
        Parameters:
        source - source of the flow inside the network
        sink - sink of the flow inside the network
        +
        Returns:
        maximum flow
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/EulerianCircuit.html b/javadoc/org/jgrapht/alg/EulerianCircuit.html new file mode 100644 index 0000000..63bacbf --- /dev/null +++ b/javadoc/org/jgrapht/alg/EulerianCircuit.html @@ -0,0 +1,293 @@ + + + + + + +EulerianCircuit (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class EulerianCircuit

+
+
+ +
+
    +
  • +
    +
    +
    public abstract class EulerianCircuit
    +extends Object
    +
    This algorithm will check whether a graph is Eulerian (hence it contains an + Eulerian + circuit). Also, if a graph is Eulerian, the caller can obtain a list of + vertices making up the Eulerian circuit. An Eulerian circuit is a circuit + which traverses each edge exactly once.
    +
    Since:
    +
    Dec 21, 2008
    +
    Author:
    +
    Andrew Newell
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        EulerianCircuit

        +
        public EulerianCircuit()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isEulerian

        +
        public static <V,E> boolean isEulerian(UndirectedGraph<V,E> g)
        +
        This method will check whether the graph passed in is Eulerian or not.
        +
        Parameters:
        g - The graph to be checked
        +
        Returns:
        true for Eulerian and false for non-Eulerian
        +
      • +
      + + + +
        +
      • +

        getEulerianCircuitVertices

        +
        public static <V,E> List<V> getEulerianCircuitVertices(UndirectedGraph<V,E> g)
        +
        This method will return a list of vertices which represents the Eulerian + circuit of the graph.
        +
        Parameters:
        g - The graph to find an Eulerian circuit
        +
        Returns:
        null if no Eulerian circuit exists, or a list of vertices + representing the Eulerian circuit if one does exist
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/FloydWarshallShortestPaths.html b/javadoc/org/jgrapht/alg/FloydWarshallShortestPaths.html new file mode 100644 index 0000000..c2c04f9 --- /dev/null +++ b/javadoc/org/jgrapht/alg/FloydWarshallShortestPaths.html @@ -0,0 +1,397 @@ + + + + + + +FloydWarshallShortestPaths (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class FloydWarshallShortestPaths<V,E>

+
+
+ +
+
    +
  • +
    +
    +
    public class FloydWarshallShortestPaths<V,E>
    +extends Object
    +
    The + Floyd-Warshall algorithm finds all shortest paths (all n^2 of them) in + O(n^3) time. It can also calculate the graph diameter. Note that during + construction time, no computations are performed! All computations are + performed the first time one of the member methods of this class is invoked. + The results are stored, so all subsequent calls to the same method are + computationally efficient. Warning: This code has not been tested (and + probably doesn't work) on multi-graphs. Code should be updated to work + properly on multi-graphs.
    +
    Author:
    +
    Tom Larkworthy, Soren Davidsen (soren@tanesha.net), Joris Kinable
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FloydWarshallShortestPaths

        +
        public FloydWarshallShortestPaths(Graph<V,E> graph)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGraph

        +
        public Graph<V,E> getGraph()
        +
        Returns:
        the graph on which this algorithm operates
        +
      • +
      + + + +
        +
      • +

        getShortestPathsCount

        +
        public int getShortestPathsCount()
        +
        Returns:
        total number of shortest paths
        +
      • +
      + + + + + +
        +
      • +

        shortestDistance

        +
        public double shortestDistance(V a,
        +                      V b)
        +
        Get the length of a shortest path.
        +
        Parameters:
        a - first vertex
        b - second vertex
        +
        Returns:
        shortest distance between a and b
        +
      • +
      + + + +
        +
      • +

        getDiameter

        +
        public double getDiameter()
        +
        Returns:
        the diameter (longest of all the shortest paths) computed for the + graph. If the graph is vertexless, return 0.0.
        +
      • +
      + + + + + +
        +
      • +

        getShortestPath

        +
        public GraphPath<V,E> getShortestPath(V a,
        +                             V b)
        +
        Get the shortest path between two vertices.
        +
        Parameters:
        a - From vertice
        b - To vertice
        +
        Returns:
        the path, or null if none found
        +
      • +
      + + + + + +
        +
      • +

        getShortestPathAsVertexList

        +
        public List<V> getShortestPathAsVertexList(V a,
        +                                  V b)
        +
      • +
      + + + + + +
        +
      • +

        getShortestPaths

        +
        public List<GraphPath<V,E>> getShortestPaths(V v)
        +
        Get shortest paths from a vertex to all other vertices in the graph.
        +
        Parameters:
        v - the originating vertex
        +
        Returns:
        List of paths
        +
      • +
      + + + +
        +
      • +

        getShortestPaths

        +
        public List<GraphPath<V,E>> getShortestPaths()
        +
        Get all shortest paths in the graph.
        +
        Returns:
        List of paths
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/GabowStrongConnectivityInspector.html b/javadoc/org/jgrapht/alg/GabowStrongConnectivityInspector.html new file mode 100644 index 0000000..3d6149a --- /dev/null +++ b/javadoc/org/jgrapht/alg/GabowStrongConnectivityInspector.html @@ -0,0 +1,356 @@ + + + + + + +GabowStrongConnectivityInspector (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class GabowStrongConnectivityInspector<V,E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.alg.GabowStrongConnectivityInspector<V,E>
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    StrongConnectivityAlgorithm<V,E>
    +
    +
    +
    +
    public class GabowStrongConnectivityInspector<V,E>
    +extends Object
    +implements StrongConnectivityAlgorithm<V,E>
    +
    Allows obtaining the strongly connected components of a directed graph. The + implemented algorithm follows Cheriyan-Mehlhorn/Gabow's algorithm Presented + in Path-based depth-first search for strong and biconnected components by + Gabow (2000). The running time is order of O(|V|+|E|)
    +
    Since:
    +
    September, 2013
    +
    Author:
    +
    Sarah Komla-Ebri
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GabowStrongConnectivityInspector

        +
        public GabowStrongConnectivityInspector(DirectedGraph<V,E> directedGraph)
        +
        The constructor of GabowStrongConnectivityInspector class.
        +
        Parameters:
        directedGraph - the graph to inspect
        +
        Throws:
        +
        IllegalArgumentException
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        isStronglyConnected

        +
        public boolean isStronglyConnected()
        +
        Returns true if the graph instance is strongly connected.
        +
        +
        Specified by:
        +
        isStronglyConnected in interface StrongConnectivityAlgorithm<V,E>
        +
        Returns:
        true if the graph is strongly connected, false otherwise
        +
      • +
      + + + +
        +
      • +

        stronglyConnectedSets

        +
        public List<Set<V>> stronglyConnectedSets()
        +
        Computes a List of Sets, where each set contains vertices + which together form a strongly connected component within the given + graph.
        +
        +
        Specified by:
        +
        stronglyConnectedSets in interface StrongConnectivityAlgorithm<V,E>
        +
        Returns:
        List of Set s containing the strongly + connected components
        +
      • +
      + + + +
        +
      • +

        stronglyConnectedSubgraphs

        +
        public List<DirectedSubgraph<V,E>> stronglyConnectedSubgraphs()
        +

        Computes a list of DirectedSubgraphs of the given graph. Each + subgraph will represent a strongly connected component and will contain + all vertices of that component. The subgraph will have an edge (u,v) iff + u and v are contained in the strongly connected component.

        + +

        NOTE: Calling this method will first execute stronglyConnectedSets(). If you don't + need subgraphs, use that method.

        +
        +
        Specified by:
        +
        stronglyConnectedSubgraphs in interface StrongConnectivityAlgorithm<V,E>
        +
        Returns:
        a list of subgraphs representing the strongly connected + components
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/HamiltonianCycle.html b/javadoc/org/jgrapht/alg/HamiltonianCycle.html new file mode 100644 index 0000000..fd799d0 --- /dev/null +++ b/javadoc/org/jgrapht/alg/HamiltonianCycle.html @@ -0,0 +1,277 @@ + + + + + + +HamiltonianCycle (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class HamiltonianCycle

+
+
+ +
+
    +
  • +
    +
    +
    public class HamiltonianCycle
    +extends Object
    +
    This class will deal with finding the optimal or approximately optimal + minimum tour (hamiltonian cycle) or commonly known as the Traveling + Salesman Problem.
    +
    Author:
    +
    Andrew Newell
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HamiltonianCycle

        +
        public HamiltonianCycle()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getApproximateOptimalForCompleteGraph

        +
        public static <V,E> List<V> getApproximateOptimalForCompleteGraph(SimpleWeightedGraph<V,E> g)
        +
        This method will return an approximate minimal traveling salesman tour + (hamiltonian cycle). This algorithm requires that the graph be complete + and the triangle inequality exists (if x,y,z are vertices then + d(x,y)+d(y,z) < d(x,z) for all x,y,z) then this algorithm will + guarantee a hamiltonian cycle such that the total weight of the cycle is + less than or equal to double the total weight of the optimal hamiltonian + cycle. The optimal solution is NP-complete, so this is a decent + approximation that runs in polynomial time.
        +
        Type Parameters:
        V -
        E -
        Parameters:
        g - is the graph to find the optimal tour for.
        +
        Returns:
        The optimal tour as a list of vertices.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/HopcroftKarpBipartiteMatching.html b/javadoc/org/jgrapht/alg/HopcroftKarpBipartiteMatching.html new file mode 100644 index 0000000..174e885 --- /dev/null +++ b/javadoc/org/jgrapht/alg/HopcroftKarpBipartiteMatching.html @@ -0,0 +1,286 @@ + + + + + + +HopcroftKarpBipartiteMatching (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class HopcroftKarpBipartiteMatching<V,E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.alg.HopcroftKarpBipartiteMatching<V,E>
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    MatchingAlgorithm<V,E>
    +
    +
    +
    +
    public class HopcroftKarpBipartiteMatching<V,E>
    +extends Object
    +implements MatchingAlgorithm<V,E>
    +
    This class is an implementation of the Hopcroft-Karp algorithm which finds a + maximum matching in an undirected simple bipartite graph. The algorithm runs + in O(|E|*√|V|) time. The original algorithm is described in: Hopcroft, John + E.; Karp, Richard M. (1973), "An n5/2 algorithm for maximum matchings in + bipartite graphs", SIAM Journal on Computing 2 (4): 225–231, + doi:10.1137/0202019 A coarse overview of the algorithm is given in: + http://en.wikipedia.org/wiki/Hopcroft-Karp_algorithm Note: the behavior of + this class is undefined when the input isn't a bipartite graph, i.e. when + there are edges within a single partition!
    +
    Author:
    +
    Joris Kinable
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/KShortestPaths.html b/javadoc/org/jgrapht/alg/KShortestPaths.html new file mode 100644 index 0000000..76e5ced --- /dev/null +++ b/javadoc/org/jgrapht/alg/KShortestPaths.html @@ -0,0 +1,322 @@ + + + + + + +KShortestPaths (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class KShortestPaths<V,E>

+
+
+ +
+
    +
  • +
    +
    +
    public class KShortestPaths<V,E>
    +extends Object
    +
    The algorithm determines the k shortest simple paths in increasing order of + weight. Weights can be negative (but no negative cycle is allowed), and paths + can be constrained by a maximum number of edges. Multigraphs are allowed. + +

    The algorithm is a variant of the Bellman-Ford algorithm but instead of + only storing the best path it stores the "k" best paths at each pass, + yielding a complexity of O(k*n*(m^2)) where m is the number of edges and n is + the number of vertices.

    +
    Since:
    +
    July 5, 2007
    +
    Author:
    +
    Guillaume Boulmier
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      KShortestPaths(Graph<V,E> graph, + V startVertex, + int k) +
      Creates an object to compute ranking shortest paths between the start + vertex and others vertices.
      +
      KShortestPaths(Graph<V,E> graph, + V startVertex, + int nPaths, + int nMaxHops) +
      Creates an object to calculate ranking shortest paths between the start + vertex and others vertices.
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        KShortestPaths

        +
        public KShortestPaths(Graph<V,E> graph,
        +              V startVertex,
        +              int k)
        +
        Creates an object to compute ranking shortest paths between the start + vertex and others vertices.
        +
        Parameters:
        graph -
        startVertex -
        k - number of paths to be computed.
        +
      • +
      + + + + + +
        +
      • +

        KShortestPaths

        +
        public KShortestPaths(Graph<V,E> graph,
        +              V startVertex,
        +              int nPaths,
        +              int nMaxHops)
        +
        Creates an object to calculate ranking shortest paths between the start + vertex and others vertices.
        +
        Parameters:
        graph - graph on which shortest paths are searched.
        startVertex - start vertex of the calculated paths.
        nPaths - number of ranking paths between the start vertex and an end + vertex.
        nMaxHops - maximum number of edges of the calculated paths.
        +
        Throws:
        +
        NullPointerException - if the specified graph or startVertex is + null.
        +
        IllegalArgumentException - if nPaths is negative or 0.
        +
        IllegalArgumentException - if nMaxHops is negative or 0.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getPaths

        +
        public List<GraphPath<V,E>> getPaths(V endVertex)
        +
        Returns the k shortest simple paths in increasing order of weight.
        +
        Parameters:
        endVertex - target vertex of the calculated paths.
        +
        Returns:
        list of paths, or null if no path exists between the + start vertex and the end vertex.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/KosarajuStrongConnectivityInspector.html b/javadoc/org/jgrapht/alg/KosarajuStrongConnectivityInspector.html new file mode 100644 index 0000000..3953762 --- /dev/null +++ b/javadoc/org/jgrapht/alg/KosarajuStrongConnectivityInspector.html @@ -0,0 +1,363 @@ + + + + + + +KosarajuStrongConnectivityInspector (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class KosarajuStrongConnectivityInspector<V,E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.alg.KosarajuStrongConnectivityInspector<V,E>
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        KosarajuStrongConnectivityInspector

        +
        public KosarajuStrongConnectivityInspector(DirectedGraph<V,E> directedGraph)
        +
        The constructor of the StrongConnectivityAlgorithm class.
        +
        Parameters:
        directedGraph - the graph to inspect
        +
        Throws:
        +
        IllegalArgumentException
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGraph

        +
        public DirectedGraph<V,E> getGraph()
        +
        Returns the graph inspected by the StrongConnectivityAlgorithm.
        +
        +
        Specified by:
        +
        getGraph in interface StrongConnectivityAlgorithm<V,E>
        +
        Returns:
        the graph inspected by this StrongConnectivityAlgorithm
        +
      • +
      + + + +
        +
      • +

        isStronglyConnected

        +
        public boolean isStronglyConnected()
        +
        Returns true if the graph of this + StronglyConnectivityInspector instance is strongly connected.
        +
        +
        Specified by:
        +
        isStronglyConnected in interface StrongConnectivityAlgorithm<V,E>
        +
        Returns:
        true if the graph is strongly connected, false otherwise
        +
      • +
      + + + +
        +
      • +

        stronglyConnectedSets

        +
        public List<Set<V>> stronglyConnectedSets()
        +
        Computes a List of Sets, where each set contains vertices + which together form a strongly connected component within the given + graph.
        +
        +
        Specified by:
        +
        stronglyConnectedSets in interface StrongConnectivityAlgorithm<V,E>
        +
        Returns:
        List of Set s containing the strongly + connected components
        +
      • +
      + + + +
        +
      • +

        stronglyConnectedSubgraphs

        +
        public List<DirectedSubgraph<V,E>> stronglyConnectedSubgraphs()
        +

        Computes a list of DirectedSubgraphs of the given graph. Each + subgraph will represent a strongly connected component and will contain + all vertices of that component. The subgraph will have an edge (u,v) iff + u and v are contained in the strongly connected component.

        + +

        NOTE: Calling this method will first execute stronglyConnectedSets(). If you + don't need subgraphs, use that method.

        +
        +
        Specified by:
        +
        stronglyConnectedSubgraphs in interface StrongConnectivityAlgorithm<V,E>
        +
        Returns:
        a list of subgraphs representing the strongly connected + components
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/KruskalMinimumSpanningTree.html b/javadoc/org/jgrapht/alg/KruskalMinimumSpanningTree.html new file mode 100644 index 0000000..47565f2 --- /dev/null +++ b/javadoc/org/jgrapht/alg/KruskalMinimumSpanningTree.html @@ -0,0 +1,346 @@ + + + + + + +KruskalMinimumSpanningTree (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class KruskalMinimumSpanningTree<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    MinimumSpanningTree<V,E>
    +
    +
    +
    +
    public class KruskalMinimumSpanningTree<V,E>
    +extends Object
    +implements MinimumSpanningTree<V,E>
    +
    An implementation of Kruskal's minimum + spanning tree algorithm. If the given graph is connected it computes the + minimum spanning tree, otherwise it computes the minimum spanning forest. The + algorithm runs in time O(E log E). This implementation uses the hashCode and + equals method of the vertices.
    +
    Since:
    +
    Feb 10, 2010
    +
    Author:
    +
    Tom Conerly
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        KruskalMinimumSpanningTree

        +
        public KruskalMinimumSpanningTree(Graph<V,E> graph)
        +
        Creates and executes a new KruskalMinimumSpanningTree algorithm instance. + An instance is only good for a single spanning tree; after construction, + it can be accessed to retrieve information about the spanning tree found.
        +
        Parameters:
        graph - the graph to be searched
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + + + + + +
        +
      • +

        getEdgeSet

        +
        @Deprecated
        +public Set<E> getEdgeSet()
        +
        Deprecated. 
        +
        Returns edges set constituting the minimum spanning tree/forest
        +
        Returns:
        minimum spanning-tree edges set
        +
      • +
      + + + +
        +
      • +

        getSpanningTreeCost

        +
        @Deprecated
        +public double getSpanningTreeCost()
        +
        Deprecated. 
        +
        Returns total weight of the minimum spanning tree/forest.
        +
        Returns:
        minimum spanning-tree total weight
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.MatchExtender.html b/javadoc/org/jgrapht/alg/KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.MatchExtender.html new file mode 100644 index 0000000..4151fbc --- /dev/null +++ b/javadoc/org/jgrapht/alg/KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.MatchExtender.html @@ -0,0 +1,235 @@ + + + + + + +KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.MatchExtender (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.MatchExtender

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.alg.KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.MatchExtender
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        extend

        +
        public boolean extend(int initialCol)
        +
        Performs DFS to seek after matching-augmenting path starting at + the initial-vertex
        +
        Returns:
        true when some augmenting-path found, false otherwise
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.html b/javadoc/org/jgrapht/alg/KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.html new file mode 100644 index 0000000..5f3fefd --- /dev/null +++ b/javadoc/org/jgrapht/alg/KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.html @@ -0,0 +1,297 @@ + + + + + + +KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation<V,E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.alg.KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation<V,E>
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation

        +
        public KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation(WeightedGraph<V,E> G,
        +                                                                                List<? extends V> S,
        +                                                                                List<? extends V> T)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        buildMatching

        +
        protected int[] buildMatching()
        +
        Gets costs-matrix as input and returns assignment of tasks + (designated by the columns of cost-matrix) to the workers (designated + by the rows of the cost-matrix) so that to MINIMIZE total + tasks-tackling costs
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/KuhnMunkresMinimalWeightBipartitePerfectMatching.html b/javadoc/org/jgrapht/alg/KuhnMunkresMinimalWeightBipartitePerfectMatching.html new file mode 100644 index 0000000..06c4ae7 --- /dev/null +++ b/javadoc/org/jgrapht/alg/KuhnMunkresMinimalWeightBipartitePerfectMatching.html @@ -0,0 +1,332 @@ + + + + + + +KuhnMunkresMinimalWeightBipartitePerfectMatching (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class KuhnMunkresMinimalWeightBipartitePerfectMatching<V,E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.alg.KuhnMunkresMinimalWeightBipartitePerfectMatching<V,E>
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    MatchingAlgorithm<V,E>, WeightedMatchingAlgorithm<V,E>
    +
    +
    +
    +
    public class KuhnMunkresMinimalWeightBipartitePerfectMatching<V,E>
    +extends Object
    +implements WeightedMatchingAlgorithm<V,E>
    +
    Kuhn-Munkres algorithm (named in honor of Harold Kuhn and James Munkres) + solving assignment problem also known as hungarian algorithm + (in the honor of hungarian mathematicians Dénes K?nig and Jen? Egerváry). + It's running time O(V^3). + +

    Assignment problem could be set as follows: + +

    Given + complete bipartite graph G = (S, T; E), such that |S| = |T|, and each + edge has non-negative cost c(i, j), find perfect + matching of minimal cost.

    +
    Author:
    +
    Alexey Kudinkin
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        KuhnMunkresMinimalWeightBipartitePerfectMatching

        +
        public KuhnMunkresMinimalWeightBipartitePerfectMatching(WeightedGraph<V,E> G,
        +                                                List<? extends V> S,
        +                                                List<? extends V> T)
        +
        Parameters:
        G - target weighted bipartite graph to find matching in
        S - first vertex partition of the target bipartite graph
        T - second vertex partition of the target bipartite graph
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/MaximumWeightBipartiteMatching.html b/javadoc/org/jgrapht/alg/MaximumWeightBipartiteMatching.html new file mode 100644 index 0000000..b623696 --- /dev/null +++ b/javadoc/org/jgrapht/alg/MaximumWeightBipartiteMatching.html @@ -0,0 +1,313 @@ + + + + + + +MaximumWeightBipartiteMatching (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class MaximumWeightBipartiteMatching<V,E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.alg.MaximumWeightBipartiteMatching<V,E>
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    MatchingAlgorithm<V,E>, WeightedMatchingAlgorithm<V,E>
    +
    +
    +
    +
    public class MaximumWeightBipartiteMatching<V,E>
    +extends Object
    +implements WeightedMatchingAlgorithm<V,E>
    +
    This class finds a maximum weight matching of a simple undirected weighted + bipartite graph. The algorithm runs in O(V|E|^2). The algorithm is described + in The LEDA Platform of Combinatorial and Geometric Computing, Cambridge + University Press, 1999. https://people.mpi-inf.mpg.de/~mehlhorn/LEDAbook.html + Note: the input graph must be bipartite with positive integer edge weights
    +
    Author:
    +
    Graeme Ahokas
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MaximumWeightBipartiteMatching

        +
        public MaximumWeightBipartiteMatching(WeightedGraph<V,E> graph,
        +                              Set<V> vertexPartition1,
        +                              Set<V> vertexPartition2)
        +
        Creates a new MaximumWeightBipartiteMatching algorithm instance. The + union of vertexPartition1 and vertexParition2 should be equal to the + vertex set of the graph Every edge in the graph must connect a vertex in + vertexPartition1 with a vertex in vertexPartition2
        +
        Parameters:
        graph - simple undirected weighted bipartite graph to find matching + in, with positive integer edge weights
        vertexPartition1 - first vertex partition of the bipartite graph, + disjoint from vertexPartition2
        vertexPartition2 - second vertex partition of the bipartite graph, + disjoint from vertexPartition1
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/MinSourceSinkCut.html b/javadoc/org/jgrapht/alg/MinSourceSinkCut.html new file mode 100644 index 0000000..aef89bf --- /dev/null +++ b/javadoc/org/jgrapht/alg/MinSourceSinkCut.html @@ -0,0 +1,393 @@ + + + + + + +MinSourceSinkCut (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class MinSourceSinkCut<V,E>

+
+
+ +
+
    +
  • +
    +
    +
    public class MinSourceSinkCut<V,E>
    +extends Object
    +
    Given a directed, weighted graph G(V,E). This class computes a minimum s-t + cut. For this, it relies on the EdmondsKarpMaximumFlow implementation. Note: + it is not recommended to use this class to calculate the overall minimum cut + in a graph by iteratively invoking this class for all source-sink pairs. This + is computationally expensive. Instead, use the StoerWagnerMinimumCut + implementation.
    +
    Author:
    +
    Joris Kinable
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MinSourceSinkCut

        +
        public MinSourceSinkCut(DirectedGraph<V,E> graph)
        +
      • +
      + + + +
        +
      • +

        MinSourceSinkCut

        +
        public MinSourceSinkCut(DirectedGraph<V,E> graph,
        +                double epsilon)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        computeMinCut

        +
        public void computeMinCut(V source,
        +                 V sink)
        +
        Compute a minimum s-t cut
        +
        Parameters:
        source -
        sink -
        +
      • +
      + + + +
        +
      • +

        getSourcePartition

        +
        public Set<V> getSourcePartition()
        +
        Returns:
        Returns the min cut partition containing the source, or null if + there was no call to computeMinCut(V source, V sink)
        +
      • +
      + + + +
        +
      • +

        getSinkPartition

        +
        public Set<V> getSinkPartition()
        +
        Returns the min cut partition containing the sink
        +
        Returns:
        returns the min cut partition containing the sink
        +
      • +
      + + + +
        +
      • +

        getCutWeight

        +
        public double getCutWeight()
        +
        Get the cut weight. This is equal to the max s-t flow
        +
        Returns:
        cut weight
        +
      • +
      + + + +
        +
      • +

        getCutEdges

        +
        public Set<E> getCutEdges()
        +
        Let S be the set containing the source, and T be the set containing the + sink, i.e. T=V\S. This method returns the edges which have their tail in + S, and their head in T
        +
        Returns:
        all edges which have their tail in S, and their head in T. If + computeMinCut(V source, V sink) has not been invoked, this method returns + null.
        +
      • +
      + + + +
        +
      • +

        getCurrentSource

        +
        public V getCurrentSource()
        +
        Returns the source of the last call
        +
        Returns:
        source of last minCut call, null if there was no call
        +
      • +
      + + + +
        +
      • +

        getCurrentSink

        +
        public V getCurrentSink()
        +
        Returns the sink of the last call
        +
        Returns:
        sink of last minCut call, null if there was no call
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/NaiveLcaFinder.html b/javadoc/org/jgrapht/alg/NaiveLcaFinder.html new file mode 100644 index 0000000..12478c2 --- /dev/null +++ b/javadoc/org/jgrapht/alg/NaiveLcaFinder.html @@ -0,0 +1,328 @@ + + + + + + +NaiveLcaFinder (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class NaiveLcaFinder<V,E>

+
+
+ +
+
    +
  • +
    +
    +
    public class NaiveLcaFinder<V,E>
    +extends Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        NaiveLcaFinder

        +
        public NaiveLcaFinder(DirectedGraph<V,E> graph)
        +
        Find the Lowest Common Ancestor of a directed graph. + +

        Find the LCA, defined as Let G = (V, E) be a DAG, and let x, y ∈ V + . Let G x,y be the subgraph of G induced by the set of all common + ancestors of x and y. Define SLCA (x, y) to be the set of out-degree 0 + nodes (leafs) in G x,y . The lowest common ancestors of x and y are the + elements of SLCA (x, y). This naive algorithm simply starts at a and b, + recursing upwards to the root(s) of the DAG. Wherever the recursion paths + cross we have found our LCA. from + http://www.cs.sunysb.edu/~bender/pub/JALG05-daglca.pdf. The algorithm: + +

        + 1. Start at each of nodes you wish to find the lca for (a and b)
        + 2. Create sets aSet containing a, and bSet containing b
        + 3. If either set intersects with the union of the other sets previous values (i.e. the set of notes visited) then
        +    that intersection is LCA. if there are multiple intersections then the earliest one added is the LCA.
        + 4. Repeat from step 3, with aSet now the parents of everything in aSet, and bSet the parents of everything in bSet
        + 5. If there are no more parents to descend to then there is no LCA
        + 
        + + The rationale for this working is that in each iteration of the loop we + are considering all the ancestors of a that have a path of length n back + to a, where n is the depth of the recursion. The same is true of b. + +

        We start by checking if a == b.
        + if not we look to see if there is any intersection between parents(a) and + (parents(b) union b) (and the same with a and b swapped)
        + if not we look to see if there is any intersection between + parents(parents(a)) and (parents(parents(b)) union parents(b) union b) + (and the same with a and b swapped)
        + continues + +

        This means at the end of recursion n, we know if there is an LCA that + has a path of <=n to a and b. Of course we may have to wait longer if + the path to a is of length n, but the path to b>n. at the first loop + we have a path of 0 length from the nodes we are considering as LCA to + their respective children which we wish to find the LCA for.

        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        findLca

        +
        public V findLca(V a,
        +        V b)
        +
        Return the first found LCA of a and b
        +
        Parameters:
        a - the first element to find LCA for
        b - the other element to find the LCA for
        +
        Returns:
        the first found LCA of a and b, or null if there is no LCA.
        +
      • +
      + + + + + +
        +
      • +

        findLcas

        +
        public Set<V> findLcas(V a,
        +              V b)
        +
        Return all the LCA of a and b. Currently not implemented
        +
        Parameters:
        a - the first element to find LCA for
        b - the other element to find the LCA for
        +
        Returns:
        the set of all LCA of a and b, or empty set if there is no LCA.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/NeighborIndex.html b/javadoc/org/jgrapht/alg/NeighborIndex.html new file mode 100644 index 0000000..745f6b8 --- /dev/null +++ b/javadoc/org/jgrapht/alg/NeighborIndex.html @@ -0,0 +1,400 @@ + + + + + + +NeighborIndex (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class NeighborIndex<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    EventListener, GraphListener<V,E>, VertexSetListener<V>
    +
    +
    +
    +
    public class NeighborIndex<V,E>
    +extends Object
    +implements GraphListener<V,E>
    +
    Maintains a cache of each vertex's neighbors. While lists of neighbors can be + obtained from Graphs, they are re-calculated at each invocation by + walking a vertex's incident edges, which becomes inordinately expensive when + performed often. + +

    Edge direction is ignored when evaluating neighbors; to take edge + direction into account when indexing neighbors, use DirectedNeighborIndex. + +

    A vertex's neighbors are cached the first time they are asked for (i.e. + the index is built on demand). The index will only be updated automatically + if it is added to the associated graph as a listener. If it is added as a + listener to a graph other than the one it indexes, results are undefined.

    +
    Since:
    +
    Dec 13, 2005
    +
    Author:
    +
    Charles Fry
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/PrimMinimumSpanningTree.html b/javadoc/org/jgrapht/alg/PrimMinimumSpanningTree.html new file mode 100644 index 0000000..7e74a72 --- /dev/null +++ b/javadoc/org/jgrapht/alg/PrimMinimumSpanningTree.html @@ -0,0 +1,301 @@ + + + + + + +PrimMinimumSpanningTree (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class PrimMinimumSpanningTree<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    MinimumSpanningTree<V,E>
    +
    +
    +
    +
    public class PrimMinimumSpanningTree<V,E>
    +extends Object
    +implements MinimumSpanningTree<V,E>
    +
    An implementation of + Prim's algorithm that finds a minimum spanning tree/forest subject to + connectivity of the supplied weighted undirected graph. The algorithm was + developed by Czech mathematician V. Jarník and later independently by + computer scientist Robert C. Prim and rediscovered by E. Dijkstra.
    +
    Since:
    +
    Mar 5, 2013
    +
    Author:
    +
    Alexey Kudinkin
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/StoerWagnerMinimumCut.VertexAndWeight.html b/javadoc/org/jgrapht/alg/StoerWagnerMinimumCut.VertexAndWeight.html new file mode 100644 index 0000000..7907fe1 --- /dev/null +++ b/javadoc/org/jgrapht/alg/StoerWagnerMinimumCut.VertexAndWeight.html @@ -0,0 +1,360 @@ + + + + + + +StoerWagnerMinimumCut.VertexAndWeight (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class StoerWagnerMinimumCut.VertexAndWeight

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.alg.StoerWagnerMinimumCut.VertexAndWeight
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/StoerWagnerMinimumCut.html b/javadoc/org/jgrapht/alg/StoerWagnerMinimumCut.html new file mode 100644 index 0000000..72bd040 --- /dev/null +++ b/javadoc/org/jgrapht/alg/StoerWagnerMinimumCut.html @@ -0,0 +1,412 @@ + + + + + + +StoerWagnerMinimumCut (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class StoerWagnerMinimumCut<V,E>

+
+
+ +
+
    +
  • +
    +
    +
    public class StoerWagnerMinimumCut<V,E>
    +extends Object
    +
    Implements the Stoer and + Wagner minimum cut algorithm. Deterministically computes the minimum cut + in O(|V||E| + |V|log|V|) time. This implementation uses Java's PriorityQueue + and requires O(|V||E|log|E|) time. M. Stoer and F. Wagner, "A Simple Min-Cut + Algorithm", Journal of the ACM, volume 44, number 4. pp 585-591, 1997.
    +
    Author:
    +
    Robby McKilliam, Ernst de Ridder
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        bestCutWeight

        +
        protected double bestCutWeight
        +
      • +
      + + + +
        +
      • +

        bestCut

        +
        protected Set<V> bestCut
        +
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        minimumCutPhase

        +
        protected void minimumCutPhase(Set<V> a)
        +
        Implements the MinimumCutPhase function of Stoer and Wagner
        +
      • +
      + + + +
        +
      • +

        minCutWeight

        +
        public double minCutWeight()
        +
        Return the weight of the minimum cut
        +
      • +
      + + + +
        +
      • +

        minCut

        +
        public Set<V> minCut()
        +
        Return a set of vertices on one side of the cut
        +
      • +
      + + + +
        +
      • +

        mergeVertices

        +
        protected StoerWagnerMinimumCut.VertexAndWeight mergeVertices(Set<V> s,
        +                                                  Set<V> t)
        +
        Merges vertex t into vertex s, summing the weights as required. Returns + the merged vertex and the sum of its weights
        +
      • +
      + + + +
        +
      • +

        vertexWeight

        +
        public double vertexWeight(Set<V> v)
        +
        Compute the sum of the weights entering a vertex
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/StrongConnectivityInspector.html b/javadoc/org/jgrapht/alg/StrongConnectivityInspector.html new file mode 100644 index 0000000..8e9615a --- /dev/null +++ b/javadoc/org/jgrapht/alg/StrongConnectivityInspector.html @@ -0,0 +1,376 @@ + + + + + + +StrongConnectivityInspector (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class StrongConnectivityInspector<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        StrongConnectivityInspector

        +
        public StrongConnectivityInspector(DirectedGraph<V,E> directedGraph)
        +
        Deprecated. 
        +
        The constructor of the StrongConnectivityAlgorithm class.
        +
        Parameters:
        directedGraph - the graph to inspect
        +
        Throws:
        +
        IllegalArgumentException
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGraph

        +
        public DirectedGraph<V,E> getGraph()
        +
        Deprecated. 
        +
        Returns the graph inspected by the StrongConnectivityAlgorithm.
        +
        +
        Specified by:
        +
        getGraph in interface StrongConnectivityAlgorithm<V,E>
        +
        Returns:
        the graph inspected by this StrongConnectivityAlgorithm
        +
      • +
      + + + +
        +
      • +

        isStronglyConnected

        +
        public boolean isStronglyConnected()
        +
        Deprecated. 
        +
        Returns true if the graph of this + StronglyConnectivityInspector instance is strongly connected.
        +
        +
        Specified by:
        +
        isStronglyConnected in interface StrongConnectivityAlgorithm<V,E>
        +
        Returns:
        true if the graph is strongly connected, false otherwise
        +
      • +
      + + + +
        +
      • +

        stronglyConnectedSets

        +
        public List<Set<V>> stronglyConnectedSets()
        +
        Deprecated. 
        +
        Computes a List of Sets, where each set contains vertices + which together form a strongly connected component within the given + graph.
        +
        +
        Specified by:
        +
        stronglyConnectedSets in interface StrongConnectivityAlgorithm<V,E>
        +
        Returns:
        List of Set s containing the strongly + connected components
        +
      • +
      + + + +
        +
      • +

        stronglyConnectedSubgraphs

        +
        public List<DirectedSubgraph<V,E>> stronglyConnectedSubgraphs()
        +
        Deprecated. 
        +

        Computes a list of DirectedSubgraphs of the given graph. Each + subgraph will represent a strongly connected component and will contain + all vertices of that component. The subgraph will have an edge (u,v) iff + u and v are contained in the strongly connected component.

        + +

        NOTE: Calling this method will first execute stronglyConnectedSets(). If you don't need + subgraphs, use that method.

        +
        +
        Specified by:
        +
        stronglyConnectedSubgraphs in interface StrongConnectivityAlgorithm<V,E>
        +
        Returns:
        a list of subgraphs representing the strongly connected + components
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/TarjanLowestCommonAncestor.LcaRequestResponse.html b/javadoc/org/jgrapht/alg/TarjanLowestCommonAncestor.LcaRequestResponse.html new file mode 100644 index 0000000..aaf66cd --- /dev/null +++ b/javadoc/org/jgrapht/alg/TarjanLowestCommonAncestor.LcaRequestResponse.html @@ -0,0 +1,292 @@ + + + + + + +TarjanLowestCommonAncestor.LcaRequestResponse (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class TarjanLowestCommonAncestor.LcaRequestResponse<V>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.alg.TarjanLowestCommonAncestor.LcaRequestResponse<V>
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        TarjanLowestCommonAncestor.LcaRequestResponse

        +
        public TarjanLowestCommonAncestor.LcaRequestResponse(V a,
        +                                             V b)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getA

        +
        public V getA()
        +
      • +
      + + + +
        +
      • +

        getB

        +
        public V getB()
        +
      • +
      + + + +
        +
      • +

        getLca

        +
        public V getLca()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/TarjanLowestCommonAncestor.html b/javadoc/org/jgrapht/alg/TarjanLowestCommonAncestor.html new file mode 100644 index 0000000..6238771 --- /dev/null +++ b/javadoc/org/jgrapht/alg/TarjanLowestCommonAncestor.html @@ -0,0 +1,320 @@ + + + + + + +TarjanLowestCommonAncestor (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class TarjanLowestCommonAncestor<V,E>

+
+
+ +
+
    +
  • +
    +
    +
    public class TarjanLowestCommonAncestor<V,E>
    +extends Object
    +
    Used to calculate Tarjan's Lowest Common Ancestors Algorithm
    +
    Author:
    +
    Leo Crawford
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TarjanLowestCommonAncestor

        +
        public TarjanLowestCommonAncestor(Graph<V,E> g)
        +
        Create an instance with a reference to the graph that we will find LCAs + for
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        calculate

        +
        public V calculate(V start,
        +          V a,
        +          V b)
        +
        Calculate the LCM between a and b treating + start as the root we want to search from.
        +
      • +
      + + + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/TransitiveClosure.html b/javadoc/org/jgrapht/alg/TransitiveClosure.html new file mode 100644 index 0000000..3d0077f --- /dev/null +++ b/javadoc/org/jgrapht/alg/TransitiveClosure.html @@ -0,0 +1,272 @@ + + + + + + +TransitiveClosure (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class TransitiveClosure

+
+
+ +
+
    +
  • +
    +
    +
    public class TransitiveClosure
    +extends Object
    +
    Constructs the transitive closure of the input graph.
    +
    Since:
    +
    May 5, 2007
    +
    Author:
    +
    Vinayak R. Borkar
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        closeSimpleDirectedGraph

        +
        public <V,E> void closeSimpleDirectedGraph(SimpleDirectedGraph<V,E> graph)
        +
        Computes the transitive closure of the given graph.
        +
        Parameters:
        graph - - Graph to compute transitive closure for.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/TransitiveReduction.html b/javadoc/org/jgrapht/alg/TransitiveReduction.html new file mode 100644 index 0000000..b291610 --- /dev/null +++ b/javadoc/org/jgrapht/alg/TransitiveReduction.html @@ -0,0 +1,303 @@ + + + + + + +TransitiveReduction (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class TransitiveReduction

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        reduce

        +
        public <V,E> void reduce(DirectedGraph<V,E> directedGraph)
        +
        This method will remove all transitive edges from the graph passed as + input parameter. + +

        You may want to clone the graph before, as transitive edges will be + pitilessly removed.

        + + e.g. + +
        + {
        +     @code
        +     DirectedGraph<V, T> soonToBePrunedDirectedGraph;
        +
        +     TransitiveReduction.INSTANCE.reduce(soonToBePrunedDirectedGraph);
        +
        +     // pruned !
        + }
        + 
        +
        Parameters:
        directedGraph - the directed graph that will be reduced transitively
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/VertexCovers.html b/javadoc/org/jgrapht/alg/VertexCovers.html new file mode 100644 index 0000000..31e3f36 --- /dev/null +++ b/javadoc/org/jgrapht/alg/VertexCovers.html @@ -0,0 +1,311 @@ + + + + + + +VertexCovers (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg
+

Class VertexCovers

+
+
+ +
+
    +
  • +
    +
    +
    public abstract class VertexCovers
    +extends Object
    +
    Algorithms to find a vertex cover for a graph. A vertex cover is a set of + vertices that touches all the edges in the graph. The graph's vertex set is a + trivial cover. However, a minimal vertex set (or at least an + approximation for it) is usually desired. Finding a true minimal vertex cover + is an NP-Complete problem. For more on the vertex cover problem, see + http://mathworld.wolfram.com/VertexCover.html
    +
    Since:
    +
    Nov 6, 2003
    +
    Author:
    +
    Linda Buisman
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        VertexCovers

        +
        public VertexCovers()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        find2ApproximationCover

        +
        public static <V,E> Set<V> find2ApproximationCover(Graph<V,E> g)
        +
        Finds a 2-approximation for a minimal vertex cover of the specified + graph. The algorithm promises a cover that is at most double the size of + a minimal cover. The algorithm takes O(|E|) time. + +

        For more details see Jenny Walter, CMPU-240: Lecture notes for + Language Theory and Computation, Fall 2002, Vassar College, + http://www.cs.vassar.edu/~walter/cs241index/lectures/PDF/approx.pdf. +

        +
        Parameters:
        g - the graph for which vertex cover approximation is to be found.
        +
        Returns:
        a set of vertices which is a vertex cover for the specified + graph.
        +
      • +
      + + + +
        +
      • +

        findGreedyCover

        +
        public static <V,E> Set<V> findGreedyCover(UndirectedGraph<V,E> g)
        +
        Finds a greedy approximation for a minimal vertex cover of a specified + graph. At each iteration, the algorithm picks the vertex with the highest + degree and adds it to the cover, until all edges are covered. + +

        The algorithm works on undirected graphs, but can also work on + directed graphs when their edge-directions are ignored. To ignore edge + directions you can use Graphs.undirectedGraph(Graph) + or AsUndirectedGraph.

        +
        Parameters:
        g - the graph for which vertex cover approximation is to be found.
        +
        Returns:
        a set of vertices which is a vertex cover for the specified + graph.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/AStarShortestPath.html b/javadoc/org/jgrapht/alg/class-use/AStarShortestPath.html new file mode 100644 index 0000000..a066cd7 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/AStarShortestPath.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.AStarShortestPath (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.AStarShortestPath

+
+
No usage of org.jgrapht.alg.AStarShortestPath
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/AllDirectedPaths.html b/javadoc/org/jgrapht/alg/class-use/AllDirectedPaths.html new file mode 100644 index 0000000..76a38ee --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/AllDirectedPaths.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.AllDirectedPaths (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.AllDirectedPaths

+
+
No usage of org.jgrapht.alg.AllDirectedPaths
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/BellmanFordShortestPath.html b/javadoc/org/jgrapht/alg/class-use/BellmanFordShortestPath.html new file mode 100644 index 0000000..0351ea3 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/BellmanFordShortestPath.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.BellmanFordShortestPath (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.BellmanFordShortestPath

+
+
No usage of org.jgrapht.alg.BellmanFordShortestPath
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/BiconnectivityInspector.html b/javadoc/org/jgrapht/alg/class-use/BiconnectivityInspector.html new file mode 100644 index 0000000..c296f03 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/BiconnectivityInspector.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.BiconnectivityInspector (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.BiconnectivityInspector

+
+
No usage of org.jgrapht.alg.BiconnectivityInspector
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/BlockCutpointGraph.html b/javadoc/org/jgrapht/alg/class-use/BlockCutpointGraph.html new file mode 100644 index 0000000..fc62097 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/BlockCutpointGraph.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.BlockCutpointGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.BlockCutpointGraph

+
+
No usage of org.jgrapht.alg.BlockCutpointGraph
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/BronKerboschCliqueFinder.html b/javadoc/org/jgrapht/alg/class-use/BronKerboschCliqueFinder.html new file mode 100644 index 0000000..d0f4aab --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/BronKerboschCliqueFinder.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.BronKerboschCliqueFinder (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.BronKerboschCliqueFinder

+
+
No usage of org.jgrapht.alg.BronKerboschCliqueFinder
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/ChromaticNumber.html b/javadoc/org/jgrapht/alg/class-use/ChromaticNumber.html new file mode 100644 index 0000000..165ed29 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/ChromaticNumber.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.ChromaticNumber (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.ChromaticNumber

+
+
No usage of org.jgrapht.alg.ChromaticNumber
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/CliqueMinimalSeparatorDecomposition.html b/javadoc/org/jgrapht/alg/class-use/CliqueMinimalSeparatorDecomposition.html new file mode 100644 index 0000000..7f1e34c --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/CliqueMinimalSeparatorDecomposition.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.CliqueMinimalSeparatorDecomposition (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.CliqueMinimalSeparatorDecomposition

+
+
No usage of org.jgrapht.alg.CliqueMinimalSeparatorDecomposition
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/ConnectivityInspector.html b/javadoc/org/jgrapht/alg/class-use/ConnectivityInspector.html new file mode 100644 index 0000000..b7ef531 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/ConnectivityInspector.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.ConnectivityInspector (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.ConnectivityInspector

+
+
No usage of org.jgrapht.alg.ConnectivityInspector
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/CycleDetector.html b/javadoc/org/jgrapht/alg/class-use/CycleDetector.html new file mode 100644 index 0000000..b7645f1 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/CycleDetector.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.CycleDetector (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.CycleDetector

+
+
No usage of org.jgrapht.alg.CycleDetector
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/DijkstraShortestPath.html b/javadoc/org/jgrapht/alg/class-use/DijkstraShortestPath.html new file mode 100644 index 0000000..898862d --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/DijkstraShortestPath.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.DijkstraShortestPath (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.DijkstraShortestPath

+
+
No usage of org.jgrapht.alg.DijkstraShortestPath
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/DirectedNeighborIndex.html b/javadoc/org/jgrapht/alg/class-use/DirectedNeighborIndex.html new file mode 100644 index 0000000..c8d20dd --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/DirectedNeighborIndex.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.DirectedNeighborIndex (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.DirectedNeighborIndex

+
+
No usage of org.jgrapht.alg.DirectedNeighborIndex
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/EdmondsBlossomShrinking.html b/javadoc/org/jgrapht/alg/class-use/EdmondsBlossomShrinking.html new file mode 100644 index 0000000..1a77e69 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/EdmondsBlossomShrinking.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.EdmondsBlossomShrinking (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.EdmondsBlossomShrinking

+
+
No usage of org.jgrapht.alg.EdmondsBlossomShrinking
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/EdmondsKarpMaximumFlow.html b/javadoc/org/jgrapht/alg/class-use/EdmondsKarpMaximumFlow.html new file mode 100644 index 0000000..6d53460 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/EdmondsKarpMaximumFlow.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.EdmondsKarpMaximumFlow (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.EdmondsKarpMaximumFlow

+
+
No usage of org.jgrapht.alg.EdmondsKarpMaximumFlow
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/EulerianCircuit.html b/javadoc/org/jgrapht/alg/class-use/EulerianCircuit.html new file mode 100644 index 0000000..1d3f7d6 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/EulerianCircuit.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.EulerianCircuit (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.EulerianCircuit

+
+
No usage of org.jgrapht.alg.EulerianCircuit
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/FloydWarshallShortestPaths.html b/javadoc/org/jgrapht/alg/class-use/FloydWarshallShortestPaths.html new file mode 100644 index 0000000..15f2d45 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/FloydWarshallShortestPaths.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.FloydWarshallShortestPaths (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.FloydWarshallShortestPaths

+
+
No usage of org.jgrapht.alg.FloydWarshallShortestPaths
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/GabowStrongConnectivityInspector.html b/javadoc/org/jgrapht/alg/class-use/GabowStrongConnectivityInspector.html new file mode 100644 index 0000000..980d922 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/GabowStrongConnectivityInspector.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.GabowStrongConnectivityInspector (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.GabowStrongConnectivityInspector

+
+
No usage of org.jgrapht.alg.GabowStrongConnectivityInspector
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/HamiltonianCycle.html b/javadoc/org/jgrapht/alg/class-use/HamiltonianCycle.html new file mode 100644 index 0000000..865ca41 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/HamiltonianCycle.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.HamiltonianCycle (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.HamiltonianCycle

+
+
No usage of org.jgrapht.alg.HamiltonianCycle
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/HopcroftKarpBipartiteMatching.html b/javadoc/org/jgrapht/alg/class-use/HopcroftKarpBipartiteMatching.html new file mode 100644 index 0000000..6f0e921 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/HopcroftKarpBipartiteMatching.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.HopcroftKarpBipartiteMatching (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.HopcroftKarpBipartiteMatching

+
+
No usage of org.jgrapht.alg.HopcroftKarpBipartiteMatching
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/KShortestPaths.html b/javadoc/org/jgrapht/alg/class-use/KShortestPaths.html new file mode 100644 index 0000000..46f2251 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/KShortestPaths.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.KShortestPaths (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.KShortestPaths

+
+
No usage of org.jgrapht.alg.KShortestPaths
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/KosarajuStrongConnectivityInspector.html b/javadoc/org/jgrapht/alg/class-use/KosarajuStrongConnectivityInspector.html new file mode 100644 index 0000000..b6ac234 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/KosarajuStrongConnectivityInspector.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.KosarajuStrongConnectivityInspector (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.KosarajuStrongConnectivityInspector

+
+
No usage of org.jgrapht.alg.KosarajuStrongConnectivityInspector
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/KruskalMinimumSpanningTree.html b/javadoc/org/jgrapht/alg/class-use/KruskalMinimumSpanningTree.html new file mode 100644 index 0000000..1d47e5e --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/KruskalMinimumSpanningTree.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.KruskalMinimumSpanningTree (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.KruskalMinimumSpanningTree

+
+
No usage of org.jgrapht.alg.KruskalMinimumSpanningTree
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.MatchExtender.html b/javadoc/org/jgrapht/alg/class-use/KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.MatchExtender.html new file mode 100644 index 0000000..49d6b90 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.MatchExtender.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.MatchExtender (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.MatchExtender

+
+
No usage of org.jgrapht.alg.KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.MatchExtender
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.html b/javadoc/org/jgrapht/alg/class-use/KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.html new file mode 100644 index 0000000..773334d --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation

+
+
No usage of org.jgrapht.alg.KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/KuhnMunkresMinimalWeightBipartitePerfectMatching.html b/javadoc/org/jgrapht/alg/class-use/KuhnMunkresMinimalWeightBipartitePerfectMatching.html new file mode 100644 index 0000000..c87bfb1 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/KuhnMunkresMinimalWeightBipartitePerfectMatching.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.KuhnMunkresMinimalWeightBipartitePerfectMatching (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.KuhnMunkresMinimalWeightBipartitePerfectMatching

+
+
No usage of org.jgrapht.alg.KuhnMunkresMinimalWeightBipartitePerfectMatching
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/MaximumWeightBipartiteMatching.html b/javadoc/org/jgrapht/alg/class-use/MaximumWeightBipartiteMatching.html new file mode 100644 index 0000000..0f20c92 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/MaximumWeightBipartiteMatching.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.MaximumWeightBipartiteMatching (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.MaximumWeightBipartiteMatching

+
+
No usage of org.jgrapht.alg.MaximumWeightBipartiteMatching
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/MinSourceSinkCut.html b/javadoc/org/jgrapht/alg/class-use/MinSourceSinkCut.html new file mode 100644 index 0000000..8f60a72 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/MinSourceSinkCut.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.MinSourceSinkCut (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.MinSourceSinkCut

+
+
No usage of org.jgrapht.alg.MinSourceSinkCut
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/NaiveLcaFinder.html b/javadoc/org/jgrapht/alg/class-use/NaiveLcaFinder.html new file mode 100644 index 0000000..9d23680 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/NaiveLcaFinder.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.NaiveLcaFinder (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.NaiveLcaFinder

+
+
No usage of org.jgrapht.alg.NaiveLcaFinder
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/NeighborIndex.html b/javadoc/org/jgrapht/alg/class-use/NeighborIndex.html new file mode 100644 index 0000000..b077faf --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/NeighborIndex.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.NeighborIndex (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.NeighborIndex

+
+
No usage of org.jgrapht.alg.NeighborIndex
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/PrimMinimumSpanningTree.html b/javadoc/org/jgrapht/alg/class-use/PrimMinimumSpanningTree.html new file mode 100644 index 0000000..4921dbf --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/PrimMinimumSpanningTree.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.PrimMinimumSpanningTree (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.PrimMinimumSpanningTree

+
+
No usage of org.jgrapht.alg.PrimMinimumSpanningTree
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/StoerWagnerMinimumCut.VertexAndWeight.html b/javadoc/org/jgrapht/alg/class-use/StoerWagnerMinimumCut.VertexAndWeight.html new file mode 100644 index 0000000..1f7b9cc --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/StoerWagnerMinimumCut.VertexAndWeight.html @@ -0,0 +1,178 @@ + + + + + + +Uses of Class org.jgrapht.alg.StoerWagnerMinimumCut.VertexAndWeight (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.StoerWagnerMinimumCut.VertexAndWeight

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/StoerWagnerMinimumCut.html b/javadoc/org/jgrapht/alg/class-use/StoerWagnerMinimumCut.html new file mode 100644 index 0000000..a31dff1 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/StoerWagnerMinimumCut.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.StoerWagnerMinimumCut (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.StoerWagnerMinimumCut

+
+
No usage of org.jgrapht.alg.StoerWagnerMinimumCut
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/StrongConnectivityInspector.html b/javadoc/org/jgrapht/alg/class-use/StrongConnectivityInspector.html new file mode 100644 index 0000000..f0a015e --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/StrongConnectivityInspector.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.StrongConnectivityInspector (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.StrongConnectivityInspector

+
+
No usage of org.jgrapht.alg.StrongConnectivityInspector
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/TarjanLowestCommonAncestor.LcaRequestResponse.html b/javadoc/org/jgrapht/alg/class-use/TarjanLowestCommonAncestor.LcaRequestResponse.html new file mode 100644 index 0000000..2b7ffe5 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/TarjanLowestCommonAncestor.LcaRequestResponse.html @@ -0,0 +1,164 @@ + + + + + + +Uses of Class org.jgrapht.alg.TarjanLowestCommonAncestor.LcaRequestResponse (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.TarjanLowestCommonAncestor.LcaRequestResponse

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/TarjanLowestCommonAncestor.html b/javadoc/org/jgrapht/alg/class-use/TarjanLowestCommonAncestor.html new file mode 100644 index 0000000..f1a1540 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/TarjanLowestCommonAncestor.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.TarjanLowestCommonAncestor (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.TarjanLowestCommonAncestor

+
+
No usage of org.jgrapht.alg.TarjanLowestCommonAncestor
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/TransitiveClosure.html b/javadoc/org/jgrapht/alg/class-use/TransitiveClosure.html new file mode 100644 index 0000000..2efc12b --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/TransitiveClosure.html @@ -0,0 +1,161 @@ + + + + + + +Uses of Class org.jgrapht.alg.TransitiveClosure (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.TransitiveClosure

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/TransitiveReduction.html b/javadoc/org/jgrapht/alg/class-use/TransitiveReduction.html new file mode 100644 index 0000000..ce1f4e9 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/TransitiveReduction.html @@ -0,0 +1,161 @@ + + + + + + +Uses of Class org.jgrapht.alg.TransitiveReduction (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.TransitiveReduction

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/class-use/VertexCovers.html b/javadoc/org/jgrapht/alg/class-use/VertexCovers.html new file mode 100644 index 0000000..52bc277 --- /dev/null +++ b/javadoc/org/jgrapht/alg/class-use/VertexCovers.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.VertexCovers (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.VertexCovers

+
+
No usage of org.jgrapht.alg.VertexCovers
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/DirectedSimpleCycles.html b/javadoc/org/jgrapht/alg/cycle/DirectedSimpleCycles.html new file mode 100644 index 0000000..3b4531b --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/DirectedSimpleCycles.html @@ -0,0 +1,268 @@ + + + + + + +DirectedSimpleCycles (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.cycle
+

Interface DirectedSimpleCycles<V,E>

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      List<List<V>>findSimpleCycles() +
      Finds the simple cycles of the graph.
      + Note that the full algorithm is executed on every call since the graph + may have changed between calls.
      +
      DirectedGraph<V,E>getGraph() +
      Returns the graph on which the simple cycle search algorithm is executed + by this object.
      +
      voidsetGraph(DirectedGraph<V,E> graph) +
      Sets the graph on which the simple cycle search algorithm is executed by + this object.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGraph

        +
        DirectedGraph<V,E> getGraph()
        +
        Returns the graph on which the simple cycle search algorithm is executed + by this object.
        +
        Returns:
        The graph.
        +
      • +
      + + + +
        +
      • +

        setGraph

        +
        void setGraph(DirectedGraph<V,E> graph)
        +
        Sets the graph on which the simple cycle search algorithm is executed by + this object.
        +
        Parameters:
        graph - the graph.
        +
        Throws:
        +
        IllegalArgumentException - if the argument is null.
        +
      • +
      + + + +
        +
      • +

        findSimpleCycles

        +
        List<List<V>> findSimpleCycles()
        +
        Finds the simple cycles of the graph.
        + Note that the full algorithm is executed on every call since the graph + may have changed between calls.
        +
        Returns:
        The list of all simple cycles. Possibly empty but never + null.
        +
        Throws:
        +
        IllegalArgumentException - if the current graph is null.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/HawickJamesSimpleCycles.html b/javadoc/org/jgrapht/alg/cycle/HawickJamesSimpleCycles.html new file mode 100644 index 0000000..504cb05 --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/HawickJamesSimpleCycles.html @@ -0,0 +1,395 @@ + + + + + + +HawickJamesSimpleCycles (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.cycle
+

Class HawickJamesSimpleCycles<V,E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.alg.cycle.HawickJamesSimpleCycles<V,E>
    • +
    +
  • +
+
+
    +
  • +
    Type Parameters:
    V - the vertex type.
    E - the edge type.
    +
    +
    All Implemented Interfaces:
    +
    DirectedSimpleCycles<V,E>
    +
    +
    +
    +
    public class HawickJamesSimpleCycles<V,E>
    +extends Object
    +implements DirectedSimpleCycles<V,E>
    +
    Find all simple cycles of a directed graph using the algorithm described by + Hawick and James. + +

    See:
    + K. A. Hawick, H. A. James. Enumerating Circuits and Loops in Graphs with + Self-Arcs and Multiple-Arcs. Computational Science Technical Note CSTN-013, + 2008

    +
    Author:
    +
    Luiz Kill
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      longcountSimpleCycles() +
      Count the number of simple cycles.
      +
      List<List<V>>findSimpleCycles() +
      Finds the simple cycles of the graph.
      + Note that the full algorithm is executed on every call since the graph + may have changed between calls.
      +
      DirectedGraph<V,E>getGraph() +
      Returns the graph on which the simple cycle search algorithm is executed + by this object.
      +
      voidprintSimpleCycles() +
      Print to the standard output all simple cycles without building a list to + keep them, thus avoiding high memory consumption when investigating large + and much connected graphs.
      +
      voidsetGraph(DirectedGraph<V,E> graph) +
      Sets the graph on which the simple cycle search algorithm is executed by + this object.
      +
      + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HawickJamesSimpleCycles

        +
        public HawickJamesSimpleCycles()
        +
        Create a simple cycle finder with an unspecified graph.
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGraph

        +
        public DirectedGraph<V,E> getGraph()
        +
        Returns the graph on which the simple cycle search algorithm is executed + by this object.
        +
        +
        Specified by:
        +
        getGraph in interface DirectedSimpleCycles<V,E>
        +
        Returns:
        The graph.
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        printSimpleCycles

        +
        public void printSimpleCycles()
        +
        Print to the standard output all simple cycles without building a list to + keep them, thus avoiding high memory consumption when investigating large + and much connected graphs.
        +
      • +
      + + + +
        +
      • +

        countSimpleCycles

        +
        public long countSimpleCycles()
        +
        Count the number of simple cycles. It can count up to Long.MAX cycles in + a graph.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/JohnsonSimpleCycles.html b/javadoc/org/jgrapht/alg/cycle/JohnsonSimpleCycles.html new file mode 100644 index 0000000..d327a22 --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/JohnsonSimpleCycles.html @@ -0,0 +1,349 @@ + + + + + + +JohnsonSimpleCycles (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.cycle
+

Class JohnsonSimpleCycles<V,E>

+
+
+ +
+
    +
  • +
    Type Parameters:
    V - the vertex type.
    E - the edge type.
    +
    +
    All Implemented Interfaces:
    +
    DirectedSimpleCycles<V,E>
    +
    +
    +
    +
    public class JohnsonSimpleCycles<V,E>
    +extends Object
    +implements DirectedSimpleCycles<V,E>
    +
    Find all simple cycles of a directed graph using the Johnson's algorithm. + +

    See:
    + D.B.Johnson, Finding all the elementary circuits of a directed graph, SIAM J. + Comput., 4 (1975), pp. 77-84.

    +
    Author:
    +
    Nikolay Ognyanov
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JohnsonSimpleCycles

        +
        public JohnsonSimpleCycles()
        +
        Create a simple cycle finder with an unspecified graph.
        +
      • +
      + + + +
        +
      • +

        JohnsonSimpleCycles

        +
        public JohnsonSimpleCycles(DirectedGraph<V,E> graph)
        +
        Create a simple cycle finder for the specified graph.
        +
        Parameters:
        graph - - the DirectedGraph in which to find cycles.
        +
        Throws:
        +
        IllegalArgumentException - if the graph argument is + null.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGraph

        +
        public DirectedGraph<V,E> getGraph()
        +
        Returns the graph on which the simple cycle search algorithm is executed + by this object.
        +
        +
        Specified by:
        +
        getGraph in interface DirectedSimpleCycles<V,E>
        +
        Returns:
        The graph.
        +
      • +
      + + + +
        +
      • +

        setGraph

        +
        public void setGraph(DirectedGraph<V,E> graph)
        +
        Sets the graph on which the simple cycle search algorithm is executed by + this object.
        +
        +
        Specified by:
        +
        setGraph in interface DirectedSimpleCycles<V,E>
        +
        Parameters:
        graph - the graph.
        +
      • +
      + + + +
        +
      • +

        findSimpleCycles

        +
        public List<List<V>> findSimpleCycles()
        +
        Finds the simple cycles of the graph.
        + Note that the full algorithm is executed on every call since the graph + may have changed between calls.
        +
        +
        Specified by:
        +
        findSimpleCycles in interface DirectedSimpleCycles<V,E>
        +
        Returns:
        The list of all simple cycles. Possibly empty but never + null.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/PatonCycleBase.html b/javadoc/org/jgrapht/alg/cycle/PatonCycleBase.html new file mode 100644 index 0000000..0ee0c82 --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/PatonCycleBase.html @@ -0,0 +1,349 @@ + + + + + + +PatonCycleBase (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.cycle
+

Class PatonCycleBase<V,E>

+
+
+ +
+
    +
  • +
    Type Parameters:
    V - the vertex type.
    E - the edge type.
    +
    +
    All Implemented Interfaces:
    +
    UndirectedCycleBase<V,E>
    +
    +
    +
    +
    public class PatonCycleBase<V,E>
    +extends Object
    +implements UndirectedCycleBase<V,E>
    +
    Find a cycle base of an undirected graph using the Paton's algorithm. + +

    See:
    + K. Paton, An algorithm for finding a fundamental set of cycles for an + undirected linear graph, Comm. ACM 12 (1969), pp. 514-518.

    +
    Author:
    +
    Nikolay Ognyanov
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PatonCycleBase

        +
        public PatonCycleBase()
        +
        Create a cycle base finder with an unspecified graph.
        +
      • +
      + + + +
        +
      • +

        PatonCycleBase

        +
        public PatonCycleBase(UndirectedGraph<V,E> graph)
        +
        Create a cycle base finder for the specified graph.
        +
        Parameters:
        graph - - the DirectedGraph in which to find cycles.
        +
        Throws:
        +
        IllegalArgumentException - if the graph argument is + null.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGraph

        +
        public UndirectedGraph<V,E> getGraph()
        +
        Returns the graph on which the cycle base search algorithm is executed by + this object.
        +
        +
        Specified by:
        +
        getGraph in interface UndirectedCycleBase<V,E>
        +
        Returns:
        The graph.
        +
      • +
      + + + +
        +
      • +

        setGraph

        +
        public void setGraph(UndirectedGraph<V,E> graph)
        +
        Sets the graph on which the cycle base search algorithm is executed by + this object.
        +
        +
        Specified by:
        +
        setGraph in interface UndirectedCycleBase<V,E>
        +
        Parameters:
        graph - the graph.
        +
      • +
      + + + +
        +
      • +

        findCycleBase

        +
        public List<List<V>> findCycleBase()
        +
        Finds a cycle base of the graph.
        + Note that the full algorithm is executed on every call since the graph + may have changed between calls.
        +
        +
        Specified by:
        +
        findCycleBase in interface UndirectedCycleBase<V,E>
        +
        Returns:
        A list of cycles constituting a cycle base for the graph. + Possibly empty but never null.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/SzwarcfiterLauerSimpleCycles.html b/javadoc/org/jgrapht/alg/cycle/SzwarcfiterLauerSimpleCycles.html new file mode 100644 index 0000000..21c1833 --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/SzwarcfiterLauerSimpleCycles.html @@ -0,0 +1,351 @@ + + + + + + +SzwarcfiterLauerSimpleCycles (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.cycle
+

Class SzwarcfiterLauerSimpleCycles<V,E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.alg.cycle.SzwarcfiterLauerSimpleCycles<V,E>
    • +
    +
  • +
+
+
    +
  • +
    Type Parameters:
    V - the vertex type.
    E - the edge type.
    +
    +
    All Implemented Interfaces:
    +
    DirectedSimpleCycles<V,E>
    +
    +
    +
    +
    public class SzwarcfiterLauerSimpleCycles<V,E>
    +extends Object
    +implements DirectedSimpleCycles<V,E>
    +
    Find all simple cycles of a directed graph using the Schwarcfiter and Lauer's + algorithm. + +

    See:
    + J.L.Szwarcfiter and P.E.Lauer, Finding the elementary cycles of a directed + graph in O(n + m) per cycle, Technical Report Series, #60, May 1974, Univ. of + Newcastle upon Tyne, Newcastle upon Tyne, England.

    +
    Author:
    +
    Nikolay Ognyanov
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SzwarcfiterLauerSimpleCycles

        +
        public SzwarcfiterLauerSimpleCycles()
        +
        Create a simple cycle finder with an unspecified graph.
        +
      • +
      + + + +
        +
      • +

        SzwarcfiterLauerSimpleCycles

        +
        public SzwarcfiterLauerSimpleCycles(DirectedGraph<V,E> graph)
        +
        Create a simple cycle finder for the specified graph.
        +
        Parameters:
        graph - - the DirectedGraph in which to find cycles.
        +
        Throws:
        +
        IllegalArgumentException - if the graph argument is + null.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGraph

        +
        public DirectedGraph<V,E> getGraph()
        +
        Returns the graph on which the simple cycle search algorithm is executed + by this object.
        +
        +
        Specified by:
        +
        getGraph in interface DirectedSimpleCycles<V,E>
        +
        Returns:
        The graph.
        +
      • +
      + + + +
        +
      • +

        setGraph

        +
        public void setGraph(DirectedGraph<V,E> graph)
        +
        Sets the graph on which the simple cycle search algorithm is executed by + this object.
        +
        +
        Specified by:
        +
        setGraph in interface DirectedSimpleCycles<V,E>
        +
        Parameters:
        graph - the graph.
        +
      • +
      + + + +
        +
      • +

        findSimpleCycles

        +
        public List<List<V>> findSimpleCycles()
        +
        Finds the simple cycles of the graph.
        + Note that the full algorithm is executed on every call since the graph + may have changed between calls.
        +
        +
        Specified by:
        +
        findSimpleCycles in interface DirectedSimpleCycles<V,E>
        +
        Returns:
        The list of all simple cycles. Possibly empty but never + null.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/TarjanSimpleCycles.html b/javadoc/org/jgrapht/alg/cycle/TarjanSimpleCycles.html new file mode 100644 index 0000000..f3d5617 --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/TarjanSimpleCycles.html @@ -0,0 +1,349 @@ + + + + + + +TarjanSimpleCycles (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.cycle
+

Class TarjanSimpleCycles<V,E>

+
+
+ +
+
    +
  • +
    Type Parameters:
    V - the vertex type.
    E - the edge type.
    +
    +
    All Implemented Interfaces:
    +
    DirectedSimpleCycles<V,E>
    +
    +
    +
    +
    public class TarjanSimpleCycles<V,E>
    +extends Object
    +implements DirectedSimpleCycles<V,E>
    +
    Find all simple cycles of a directed graph using the Tarjan's algorithm. + +

    See:
    + R. Tarjan, Enumeration of the elementary circuits of a directed graph, SIAM + J. Comput., 2 (1973), pp. 211-216.

    +
    Author:
    +
    Nikolay Ognyanov
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TarjanSimpleCycles

        +
        public TarjanSimpleCycles()
        +
        Create a simple cycle finder with an unspecified graph.
        +
      • +
      + + + +
        +
      • +

        TarjanSimpleCycles

        +
        public TarjanSimpleCycles(DirectedGraph<V,E> graph)
        +
        Create a simple cycle finder for the specified graph.
        +
        Parameters:
        graph - - the DirectedGraph in which to find cycles.
        +
        Throws:
        +
        IllegalArgumentException - if the graph argument is + null.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGraph

        +
        public DirectedGraph<V,E> getGraph()
        +
        Returns the graph on which the simple cycle search algorithm is executed + by this object.
        +
        +
        Specified by:
        +
        getGraph in interface DirectedSimpleCycles<V,E>
        +
        Returns:
        The graph.
        +
      • +
      + + + +
        +
      • +

        setGraph

        +
        public void setGraph(DirectedGraph<V,E> graph)
        +
        Sets the graph on which the simple cycle search algorithm is executed by + this object.
        +
        +
        Specified by:
        +
        setGraph in interface DirectedSimpleCycles<V,E>
        +
        Parameters:
        graph - the graph.
        +
      • +
      + + + +
        +
      • +

        findSimpleCycles

        +
        public List<List<V>> findSimpleCycles()
        +
        Finds the simple cycles of the graph.
        + Note that the full algorithm is executed on every call since the graph + may have changed between calls.
        +
        +
        Specified by:
        +
        findSimpleCycles in interface DirectedSimpleCycles<V,E>
        +
        Returns:
        The list of all simple cycles. Possibly empty but never + null.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/TiernanSimpleCycles.html b/javadoc/org/jgrapht/alg/cycle/TiernanSimpleCycles.html new file mode 100644 index 0000000..bf8f17e --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/TiernanSimpleCycles.html @@ -0,0 +1,349 @@ + + + + + + +TiernanSimpleCycles (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.cycle
+

Class TiernanSimpleCycles<V,E>

+
+
+ +
+
    +
  • +
    Type Parameters:
    V - the vertex type.
    E - the edge type.
    +
    +
    All Implemented Interfaces:
    +
    DirectedSimpleCycles<V,E>
    +
    +
    +
    +
    public class TiernanSimpleCycles<V,E>
    +extends Object
    +implements DirectedSimpleCycles<V,E>
    +
    Find all simple cycles of a directed graph using the Tiernan's algorithm. + +

    See:
    + J.C.Tiernan An Efficient Search Algorithm Find the Elementary Circuits of a + Graph., Communications of the ACM, vol.13, 12, (1970), pp. 722 - 726.

    +
    Author:
    +
    Nikolay Ognyanov
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TiernanSimpleCycles

        +
        public TiernanSimpleCycles()
        +
        Create a simple cycle finder with an unspecified graph.
        +
      • +
      + + + +
        +
      • +

        TiernanSimpleCycles

        +
        public TiernanSimpleCycles(DirectedGraph<V,E> graph)
        +
        Create a simple cycle finder for the specified graph.
        +
        Parameters:
        graph - - the DirectedGraph in which to find cycles.
        +
        Throws:
        +
        IllegalArgumentException - if the graph argument is + null.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGraph

        +
        public DirectedGraph<V,E> getGraph()
        +
        Returns the graph on which the simple cycle search algorithm is executed + by this object.
        +
        +
        Specified by:
        +
        getGraph in interface DirectedSimpleCycles<V,E>
        +
        Returns:
        The graph.
        +
      • +
      + + + +
        +
      • +

        setGraph

        +
        public void setGraph(DirectedGraph<V,E> graph)
        +
        Sets the graph on which the simple cycle search algorithm is executed by + this object.
        +
        +
        Specified by:
        +
        setGraph in interface DirectedSimpleCycles<V,E>
        +
        Parameters:
        graph - the graph.
        +
      • +
      + + + +
        +
      • +

        findSimpleCycles

        +
        public List<List<V>> findSimpleCycles()
        +
        Finds the simple cycles of the graph.
        + Note that the full algorithm is executed on every call since the graph + may have changed between calls.
        +
        +
        Specified by:
        +
        findSimpleCycles in interface DirectedSimpleCycles<V,E>
        +
        Returns:
        The list of all simple cycles. Possibly empty but never + null.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/UndirectedCycleBase.html b/javadoc/org/jgrapht/alg/cycle/UndirectedCycleBase.html new file mode 100644 index 0000000..f9597ee --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/UndirectedCycleBase.html @@ -0,0 +1,268 @@ + + + + + + +UndirectedCycleBase (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.cycle
+

Interface UndirectedCycleBase<V,E>

+
+
+
+
    +
  • +
    Type Parameters:
    V - the vertex type.
    E - the edge type.
    +
    +
    All Known Implementing Classes:
    +
    PatonCycleBase
    +
    +
    +
    +
    public interface UndirectedCycleBase<V,E>
    +
    A common interface for classes implementing algorithms for finding a cycle + base of an undirected graph.
    +
    Author:
    +
    Nikolay Ognyanov
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      List<List<V>>findCycleBase() +
      Finds a cycle base of the graph.
      + Note that the full algorithm is executed on every call since the graph + may have changed between calls.
      +
      UndirectedGraph<V,E>getGraph() +
      Returns the graph on which the cycle base search algorithm is executed by + this object.
      +
      voidsetGraph(UndirectedGraph<V,E> graph) +
      Sets the graph on which the cycle base search algorithm is executed by + this object.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGraph

        +
        UndirectedGraph<V,E> getGraph()
        +
        Returns the graph on which the cycle base search algorithm is executed by + this object.
        +
        Returns:
        The graph.
        +
      • +
      + + + +
        +
      • +

        setGraph

        +
        void setGraph(UndirectedGraph<V,E> graph)
        +
        Sets the graph on which the cycle base search algorithm is executed by + this object.
        +
        Parameters:
        graph - the graph.
        +
        Throws:
        +
        IllegalArgumentException - if the argument is null.
        +
      • +
      + + + +
        +
      • +

        findCycleBase

        +
        List<List<V>> findCycleBase()
        +
        Finds a cycle base of the graph.
        + Note that the full algorithm is executed on every call since the graph + may have changed between calls.
        +
        Returns:
        A list of cycles constituting a cycle base for the graph. + Possibly empty but never null.
        +
        Throws:
        +
        IllegalArgumentException - if the current graph is null.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/class-use/DirectedSimpleCycles.html b/javadoc/org/jgrapht/alg/cycle/class-use/DirectedSimpleCycles.html new file mode 100644 index 0000000..831e66f --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/class-use/DirectedSimpleCycles.html @@ -0,0 +1,187 @@ + + + + + + +Uses of Interface org.jgrapht.alg.cycle.DirectedSimpleCycles (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.alg.cycle.DirectedSimpleCycles

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/class-use/HawickJamesSimpleCycles.html b/javadoc/org/jgrapht/alg/cycle/class-use/HawickJamesSimpleCycles.html new file mode 100644 index 0000000..59a1d57 --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/class-use/HawickJamesSimpleCycles.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.cycle.HawickJamesSimpleCycles (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.cycle.HawickJamesSimpleCycles

+
+
No usage of org.jgrapht.alg.cycle.HawickJamesSimpleCycles
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/class-use/JohnsonSimpleCycles.html b/javadoc/org/jgrapht/alg/cycle/class-use/JohnsonSimpleCycles.html new file mode 100644 index 0000000..4bf2c87 --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/class-use/JohnsonSimpleCycles.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.cycle.JohnsonSimpleCycles (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.cycle.JohnsonSimpleCycles

+
+
No usage of org.jgrapht.alg.cycle.JohnsonSimpleCycles
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/class-use/PatonCycleBase.html b/javadoc/org/jgrapht/alg/cycle/class-use/PatonCycleBase.html new file mode 100644 index 0000000..64d83a8 --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/class-use/PatonCycleBase.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.cycle.PatonCycleBase (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.cycle.PatonCycleBase

+
+
No usage of org.jgrapht.alg.cycle.PatonCycleBase
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/class-use/SzwarcfiterLauerSimpleCycles.html b/javadoc/org/jgrapht/alg/cycle/class-use/SzwarcfiterLauerSimpleCycles.html new file mode 100644 index 0000000..e757ae0 --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/class-use/SzwarcfiterLauerSimpleCycles.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.cycle.SzwarcfiterLauerSimpleCycles (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.cycle.SzwarcfiterLauerSimpleCycles

+
+
No usage of org.jgrapht.alg.cycle.SzwarcfiterLauerSimpleCycles
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/class-use/TarjanSimpleCycles.html b/javadoc/org/jgrapht/alg/cycle/class-use/TarjanSimpleCycles.html new file mode 100644 index 0000000..fbf69e0 --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/class-use/TarjanSimpleCycles.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.cycle.TarjanSimpleCycles (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.cycle.TarjanSimpleCycles

+
+
No usage of org.jgrapht.alg.cycle.TarjanSimpleCycles
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/class-use/TiernanSimpleCycles.html b/javadoc/org/jgrapht/alg/cycle/class-use/TiernanSimpleCycles.html new file mode 100644 index 0000000..10fba52 --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/class-use/TiernanSimpleCycles.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.cycle.TiernanSimpleCycles (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.cycle.TiernanSimpleCycles

+
+
No usage of org.jgrapht.alg.cycle.TiernanSimpleCycles
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/class-use/UndirectedCycleBase.html b/javadoc/org/jgrapht/alg/cycle/class-use/UndirectedCycleBase.html new file mode 100644 index 0000000..b4f7132 --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/class-use/UndirectedCycleBase.html @@ -0,0 +1,161 @@ + + + + + + +Uses of Interface org.jgrapht.alg.cycle.UndirectedCycleBase (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.alg.cycle.UndirectedCycleBase

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/package-frame.html b/javadoc/org/jgrapht/alg/cycle/package-frame.html new file mode 100644 index 0000000..5dc7095 --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/package-frame.html @@ -0,0 +1,30 @@ + + + + + + +org.jgrapht.alg.cycle (JGraphT : a free Java graph library) + + + + +

org.jgrapht.alg.cycle

+ + + diff --git a/javadoc/org/jgrapht/alg/cycle/package-summary.html b/javadoc/org/jgrapht/alg/cycle/package-summary.html new file mode 100644 index 0000000..868438b --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/package-summary.html @@ -0,0 +1,266 @@ + + + + + + +org.jgrapht.alg.cycle (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht.alg.cycle

+
+
Algorithms for enumeration of simple cycles in graphs.
+
+

See: Description

+
+
+
    +
  • + + + + + + + + + + + + + + + + +
    Interface Summary 
    InterfaceDescription
    DirectedSimpleCycles<V,E> +
    A common interface for classes implementing algorithms for enumeration of the + simple cycles of a directed graph.
    +
    UndirectedCycleBase<V,E> +
    A common interface for classes implementing algorithms for finding a cycle + base of an undirected graph.
    +
    +
  • +
  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    HawickJamesSimpleCycles<V,E> +
    Find all simple cycles of a directed graph using the algorithm described by + Hawick and James.
    +
    JohnsonSimpleCycles<V,E> +
    Find all simple cycles of a directed graph using the Johnson's algorithm.
    +
    PatonCycleBase<V,E> +
    Find a cycle base of an undirected graph using the Paton's algorithm.
    +
    SzwarcfiterLauerSimpleCycles<V,E> +
    Find all simple cycles of a directed graph using the Schwarcfiter and Lauer's + algorithm.
    +
    TarjanSimpleCycles<V,E> +
    Find all simple cycles of a directed graph using the Tarjan's algorithm.
    +
    TiernanSimpleCycles<V,E> +
    Find all simple cycles of a directed graph using the Tiernan's algorithm.
    +
    +
  • +
+ + + +

Package org.jgrapht.alg.cycle Description

+

Algorithms for enumeration of simple cycles in graphs.

+ + Implementation Note:

All the implementations work correctly + with loops but not with multiple duplicate edges. +

+ Performance Notes: +

     The worst case time complexity of + the algorithms for finding cycles in directed graphs is: +

    +
  1. Tiernan - O(V.const^V)
  2. +
  3. Tarjan - O(VEC)
  4. +
  5. Johnson - O(((V+E)C)
  6. +
  7. Szwarcfiter and Lauer - O(V+EC)
  8. +
+ where V is the number of vertices, E is the number of edges and C is + the number of the simple cycles in the graph. +

+

     The worst case performance is + achieved for graphs with special structure, so on practical + workloads an algorithm with higher worst case complexity may + outperform an algorithm with lower worst case complexity. Note + also that "administrative costs" of algorithms with better worst + case performance are higher. Also higher is their memory cost + (which is in all cases O(V+E)).

+

     The package author's workloads + contain typically several hundred nodes and from tens to several + thousand simple cycles. On these workloads the algorithms score + by performance (best to worst ) so : +

    +
  1. Szwarcfiter and Lauer
  2. +
  3. Tarjan
  4. +
  5. Johnson
  6. +
  7. Tiernan
  8. +
+     The worst case time complexity of the + Paton's algorithm for finding a cycle base in undirected graphs + is O(V^3) +

+ Literature: +
+
    +
  1. J.C.Tiernan An Efficient Search Algorithm Find the + Elementary Circuits of a Graph., Communications of the ACM, + V13, 12, (1970), pp. 722 - 726.
  2. +
  3. R.Tarjan, Depth-first search and linear graph + algorithms., SIAM J. Comput. 1 (1972), pp. 146-160.
  4. +
  5. R. Tarjan, Enumeration of the elementary circuits of a + directed graph, SIAM J. Comput., 2 (1973), pp. 211-216.
  6. +
  7. D.B.Johnson, Finding all the elementary circuits of a + directed graph, SIAM J. Comput., 4 (1975), pp. 77-84.
  8. +
  9. J.L.Szwarcfiter and P.E.Lauer, Finding the elementary + cycles of a directed graph in O(n + m) per cycle, Technical + Report Series, #60, May 1974, Univ. of Newcastle upon Tyne, + Newcastle upon Tyne, England.
  10. +
  11. P.Mateti and N.Deo, On algorithms for enumerating all + circuits of a graph., SIAM J. Comput., 5 (1978), pp. 90-99.
  12. +
  13. L.G.Bezem and J.van Leeuwen, Enumeration in graphs., + Technical report RUU-CS-87-7, University of Utrecht, The + Netherlands, 1987.
  14. +
  15. K. Paton, An algorithm for finding a fundamental set of + cycles for an undirected linear graph, Comm. ACM 12 (1969), + pp. 514-518.
  16. + +
+
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/package-tree.html b/javadoc/org/jgrapht/alg/cycle/package-tree.html new file mode 100644 index 0000000..80dfb05 --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/package-tree.html @@ -0,0 +1,140 @@ + + + + + + +org.jgrapht.alg.cycle Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht.alg.cycle

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/cycle/package-use.html b/javadoc/org/jgrapht/alg/cycle/package-use.html new file mode 100644 index 0000000..e1ddd5a --- /dev/null +++ b/javadoc/org/jgrapht/alg/cycle/package-use.html @@ -0,0 +1,161 @@ + + + + + + +Uses of Package org.jgrapht.alg.cycle (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht.alg.cycle

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/flow/EdmondsKarpMaximumFlow.html b/javadoc/org/jgrapht/alg/flow/EdmondsKarpMaximumFlow.html new file mode 100644 index 0000000..e26f299 --- /dev/null +++ b/javadoc/org/jgrapht/alg/flow/EdmondsKarpMaximumFlow.html @@ -0,0 +1,434 @@ + + + + + + +EdmondsKarpMaximumFlow (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.flow
+

Class EdmondsKarpMaximumFlow<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    MaximumFlowAlgorithm<V,E>
    +
    +
    +
    +
    public final class EdmondsKarpMaximumFlow<V,E>
    +extends MaximumFlowAlgorithmBase<V,E>
    +
    A flow network is a + directed graph where each edge has a capacity and each edge receives a flow. + The amount of flow on an edge can not exceed the capacity of the edge (note, + that all capacities must be non-negative). A flow must satisfy the + restriction that the amount of flow into a vertex equals the amount of flow + out of it, except when it is a source, which "produces" flow, or sink, which + "consumes" flow. + +

    This class computes maximum flow in a network using Edmonds-Karp + algorithm. Be careful: for large networks this algorithm may consume + significant amount of time (its upper-bound complexity is O(VE^2), where V - + amount of vertices, E - amount of edges in the network). + +

    For more details see Andrew V. Goldberg's Combinatorial Optimization + (Lecture Notes).

    +
    Author:
    +
    Ilya Razensteyn
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        EdmondsKarpMaximumFlow

        +
        public EdmondsKarpMaximumFlow(DirectedGraph<V,E> network)
        +
        Constructs MaximumFlow instance to work with a copy of + network. Current source and sink are set to null. If + network is weighted, then capacities are weights, otherwise all + capacities are equal to one. Doubles are compared using + DEFAULT_EPSILON tolerance.
        +
        Parameters:
        network - network, where maximum flow will be calculated
        +
      • +
      + + + +
        +
      • +

        EdmondsKarpMaximumFlow

        +
        public EdmondsKarpMaximumFlow(DirectedGraph<V,E> network,
        +                      double epsilon)
        +
        Constructs MaximumFlow instance to work with a copy of + network. Current source and sink are set to null. If + network is weighted, then capacities are weights, otherwise all + capacities are equal to one.
        +
        Parameters:
        network - network, where maximum flow will be calculated
        epsilon - tolerance for comparing doubles
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        buildMaximumFlow

        +
        public MaximumFlowAlgorithm.MaximumFlow<V,E> buildMaximumFlow(V source,
        +                                                     V sink)
        +
        Sets current source to source, current sink to sink, + then calculates maximum flow from source to sink. Note, + that source and sink must be vertices of the + network passed to the constructor, and they must be different.
        +
        Parameters:
        source - source vertex
        sink - sink vertex
        +
        Returns:
        maximum flow
        +
      • +
      + + + + + +
        +
      • +

        extendedVertex

        +
        protected org.jgrapht.alg.flow.EdmondsKarpMaximumFlow.VertexExtension extendedVertex(V v)
        +
      • +
      + + + + + +
        +
      • +

        extendedEdge

        +
        protected org.jgrapht.alg.flow.EdmondsKarpMaximumFlow.EdgeExtension extendedEdge(E e)
        +
      • +
      + + + +
        +
      • +

        getCurrentSource

        +
        public V getCurrentSource()
        +
        Returns current source vertex, or null if there was no + calculateMaximumFlow calls.
        +
        Returns:
        current source
        +
      • +
      + + + +
        +
      • +

        getCurrentSink

        +
        public V getCurrentSink()
        +
        Returns current sink vertex, or null if there was no + calculateMaximumFlow calls.
        +
        Returns:
        current sink
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/flow/MaximumFlowAlgorithmBase.html b/javadoc/org/jgrapht/alg/flow/MaximumFlowAlgorithmBase.html new file mode 100644 index 0000000..b27f83c --- /dev/null +++ b/javadoc/org/jgrapht/alg/flow/MaximumFlowAlgorithmBase.html @@ -0,0 +1,396 @@ + + + + + + +MaximumFlowAlgorithmBase (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.flow
+

Class MaximumFlowAlgorithmBase<V,E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.alg.flow.MaximumFlowAlgorithmBase<V,E>
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_EPSILON

        +
        public static final double DEFAULT_EPSILON
        +
        Default tolerance.
        +
        See Also:
        Constant Field Values
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MaximumFlowAlgorithmBase

        +
        public MaximumFlowAlgorithmBase()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        vertexExtended

        +
        protected <VE extends org.jgrapht.alg.flow.MaximumFlowAlgorithmBase.VertexExtensionBase> VE vertexExtended(V v)
        +
      • +
      + + + + + +
        +
      • +

        edgeExtended

        +
        protected <EE extends org.jgrapht.alg.flow.MaximumFlowAlgorithmBase.EdgeExtensionBase> EE edgeExtended(E e)
        +
      • +
      + + + +
        +
      • +

        pushFlowThrough

        +
        protected void pushFlowThrough(org.jgrapht.alg.flow.MaximumFlowAlgorithmBase.EdgeExtensionBase ex,
        +                   double f)
        +
      • +
      + + + +
        +
      • +

        composeFlow

        +
        protected Map<E,Double> composeFlow()
        +
      • +
      + + + +
        +
      • +

        compareFlowTo

        +
        protected int compareFlowTo(double flow,
        +                double val)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/flow/PushRelabelMaximumFlow.EdgeExtension.html b/javadoc/org/jgrapht/alg/flow/PushRelabelMaximumFlow.EdgeExtension.html new file mode 100644 index 0000000..2cd89c7 --- /dev/null +++ b/javadoc/org/jgrapht/alg/flow/PushRelabelMaximumFlow.EdgeExtension.html @@ -0,0 +1,349 @@ + + + + + + +PushRelabelMaximumFlow.EdgeExtension (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.flow
+

Class PushRelabelMaximumFlow.EdgeExtension

+
+
+ +
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      <EE extends org.jgrapht.alg.flow.MaximumFlowAlgorithmBase.EdgeExtensionBase> 
      EE
      getInverse() 
      <VE extends org.jgrapht.alg.flow.MaximumFlowAlgorithmBase.VertexExtensionBase> 
      VE
      getSource() 
      <VE extends org.jgrapht.alg.flow.MaximumFlowAlgorithmBase.VertexExtensionBase> 
      VE
      getTarget() 
      voidsetInverse(org.jgrapht.alg.flow.MaximumFlowAlgorithmBase.EdgeExtensionBase inverse) 
      voidsetSource(org.jgrapht.alg.flow.MaximumFlowAlgorithmBase.VertexExtensionBase source) 
      voidsetTarget(org.jgrapht.alg.flow.MaximumFlowAlgorithmBase.VertexExtensionBase target) 
      StringtoString() 
      + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PushRelabelMaximumFlow.EdgeExtension

        +
        public PushRelabelMaximumFlow.EdgeExtension()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        getSource

        +
        public <VE extends org.jgrapht.alg.flow.MaximumFlowAlgorithmBase.VertexExtensionBase> VE getSource()
        +
      • +
      + + + +
        +
      • +

        setSource

        +
        public void setSource(org.jgrapht.alg.flow.MaximumFlowAlgorithmBase.VertexExtensionBase source)
        +
      • +
      + + + +
        +
      • +

        getTarget

        +
        public <VE extends org.jgrapht.alg.flow.MaximumFlowAlgorithmBase.VertexExtensionBase> VE getTarget()
        +
      • +
      + + + +
        +
      • +

        setTarget

        +
        public void setTarget(org.jgrapht.alg.flow.MaximumFlowAlgorithmBase.VertexExtensionBase target)
        +
      • +
      + + + +
        +
      • +

        getInverse

        +
        public <EE extends org.jgrapht.alg.flow.MaximumFlowAlgorithmBase.EdgeExtensionBase> EE getInverse()
        +
      • +
      + + + +
        +
      • +

        setInverse

        +
        public void setInverse(org.jgrapht.alg.flow.MaximumFlowAlgorithmBase.EdgeExtensionBase inverse)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/flow/PushRelabelMaximumFlow.VertexExtension.html b/javadoc/org/jgrapht/alg/flow/PushRelabelMaximumFlow.VertexExtension.html new file mode 100644 index 0000000..037e67c --- /dev/null +++ b/javadoc/org/jgrapht/alg/flow/PushRelabelMaximumFlow.VertexExtension.html @@ -0,0 +1,284 @@ + + + + + + +PushRelabelMaximumFlow.VertexExtension (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.flow
+

Class PushRelabelMaximumFlow.VertexExtension

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PushRelabelMaximumFlow.VertexExtension

        +
        public PushRelabelMaximumFlow.VertexExtension()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        getOutgoing

        +
        public <EE extends org.jgrapht.alg.flow.MaximumFlowAlgorithmBase.EdgeExtensionBase> List<EE> getOutgoing()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/flow/PushRelabelMaximumFlow.html b/javadoc/org/jgrapht/alg/flow/PushRelabelMaximumFlow.html new file mode 100644 index 0000000..cdee32b --- /dev/null +++ b/javadoc/org/jgrapht/alg/flow/PushRelabelMaximumFlow.html @@ -0,0 +1,372 @@ + + + + + + +PushRelabelMaximumFlow (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.flow
+

Class PushRelabelMaximumFlow<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    MaximumFlowAlgorithm<V,E>
    +
    +
    +
    +
    public class PushRelabelMaximumFlow<V,E>
    +extends MaximumFlowAlgorithmBase<V,E>
    +

    + Push-relabel maximum flow algorithm designed by Andrew V. Goldberg and + Robert Tarjan. Current implementation complexity upper-bound is O(V^3). For + more details see: "A new approach to the maximum flow problem" by + Andrew V. Goldberg and Robert Tarjan STOC '86: Proceedings of the + eighteenth annual ACM symposium on Theory of computing

    +
    Author:
    +
    Alexey Kudinkin
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/flow/class-use/EdmondsKarpMaximumFlow.html b/javadoc/org/jgrapht/alg/flow/class-use/EdmondsKarpMaximumFlow.html new file mode 100644 index 0000000..770d6e3 --- /dev/null +++ b/javadoc/org/jgrapht/alg/flow/class-use/EdmondsKarpMaximumFlow.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.flow.EdmondsKarpMaximumFlow (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.flow.EdmondsKarpMaximumFlow

+
+
No usage of org.jgrapht.alg.flow.EdmondsKarpMaximumFlow
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/flow/class-use/MaximumFlowAlgorithmBase.html b/javadoc/org/jgrapht/alg/flow/class-use/MaximumFlowAlgorithmBase.html new file mode 100644 index 0000000..b624f34 --- /dev/null +++ b/javadoc/org/jgrapht/alg/flow/class-use/MaximumFlowAlgorithmBase.html @@ -0,0 +1,168 @@ + + + + + + +Uses of Class org.jgrapht.alg.flow.MaximumFlowAlgorithmBase (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.flow.MaximumFlowAlgorithmBase

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/flow/class-use/PushRelabelMaximumFlow.EdgeExtension.html b/javadoc/org/jgrapht/alg/flow/class-use/PushRelabelMaximumFlow.EdgeExtension.html new file mode 100644 index 0000000..252579a --- /dev/null +++ b/javadoc/org/jgrapht/alg/flow/class-use/PushRelabelMaximumFlow.EdgeExtension.html @@ -0,0 +1,158 @@ + + + + + + +Uses of Class org.jgrapht.alg.flow.PushRelabelMaximumFlow.EdgeExtension (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.flow.PushRelabelMaximumFlow.EdgeExtension

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/flow/class-use/PushRelabelMaximumFlow.VertexExtension.html b/javadoc/org/jgrapht/alg/flow/class-use/PushRelabelMaximumFlow.VertexExtension.html new file mode 100644 index 0000000..553ff16 --- /dev/null +++ b/javadoc/org/jgrapht/alg/flow/class-use/PushRelabelMaximumFlow.VertexExtension.html @@ -0,0 +1,180 @@ + + + + + + +Uses of Class org.jgrapht.alg.flow.PushRelabelMaximumFlow.VertexExtension (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.flow.PushRelabelMaximumFlow.VertexExtension

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/flow/class-use/PushRelabelMaximumFlow.html b/javadoc/org/jgrapht/alg/flow/class-use/PushRelabelMaximumFlow.html new file mode 100644 index 0000000..fde3d07 --- /dev/null +++ b/javadoc/org/jgrapht/alg/flow/class-use/PushRelabelMaximumFlow.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.flow.PushRelabelMaximumFlow (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.flow.PushRelabelMaximumFlow

+
+
No usage of org.jgrapht.alg.flow.PushRelabelMaximumFlow
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/flow/package-frame.html b/javadoc/org/jgrapht/alg/flow/package-frame.html new file mode 100644 index 0000000..f0db02c --- /dev/null +++ b/javadoc/org/jgrapht/alg/flow/package-frame.html @@ -0,0 +1,22 @@ + + + + + + +org.jgrapht.alg.flow (JGraphT : a free Java graph library) + + + + +

org.jgrapht.alg.flow

+ + + diff --git a/javadoc/org/jgrapht/alg/flow/package-summary.html b/javadoc/org/jgrapht/alg/flow/package-summary.html new file mode 100644 index 0000000..64e275e --- /dev/null +++ b/javadoc/org/jgrapht/alg/flow/package-summary.html @@ -0,0 +1,155 @@ + + + + + + +org.jgrapht.alg.flow (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht.alg.flow

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/flow/package-tree.html b/javadoc/org/jgrapht/alg/flow/package-tree.html new file mode 100644 index 0000000..67a55f0 --- /dev/null +++ b/javadoc/org/jgrapht/alg/flow/package-tree.html @@ -0,0 +1,141 @@ + + + + + + +org.jgrapht.alg.flow Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht.alg.flow

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/flow/package-use.html b/javadoc/org/jgrapht/alg/flow/package-use.html new file mode 100644 index 0000000..3c506c4 --- /dev/null +++ b/javadoc/org/jgrapht/alg/flow/package-use.html @@ -0,0 +1,161 @@ + + + + + + +Uses of Package org.jgrapht.alg.flow (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht.alg.flow

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/AStarAdmissibleHeuristic.html b/javadoc/org/jgrapht/alg/interfaces/AStarAdmissibleHeuristic.html new file mode 100644 index 0000000..394b1b9 --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/AStarAdmissibleHeuristic.html @@ -0,0 +1,222 @@ + + + + + + +AStarAdmissibleHeuristic (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.interfaces
+

Interface AStarAdmissibleHeuristic<V>

+
+
+
+
    +
  • +
    Type Parameters:
    V - vertex type
    +
    +
    +
    public interface AStarAdmissibleHeuristic<V>
    +
    Interface for an admissible heuristic used in A* search.
    +
    Author:
    +
    Joris Kinable, Jon Robison, Thomas Breitbart
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      doublegetCostEstimate(V sourceVertex, + V targetVertex) +
      An admissible "heuristic estimate" of the distance from x, the + sourceVertex, to the goal (usually denoted h(x)).
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getCostEstimate

        +
        double getCostEstimate(V sourceVertex,
        +                     V targetVertex)
        +
        An admissible "heuristic estimate" of the distance from x, the + sourceVertex, to the goal (usually denoted h(x)). This is the good guess + function.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/MatchingAlgorithm.html b/javadoc/org/jgrapht/alg/interfaces/MatchingAlgorithm.html new file mode 100644 index 0000000..9db75e7 --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/MatchingAlgorithm.html @@ -0,0 +1,223 @@ + + + + + + +MatchingAlgorithm (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.interfaces
+

Interface MatchingAlgorithm<V,E>

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      Set<E>getMatching() +
      Returns set of edges making up the matching
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getMatching

        +
        Set<E> getMatching()
        +
        Returns set of edges making up the matching
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/MaximumFlowAlgorithm.MaximumFlow.html b/javadoc/org/jgrapht/alg/interfaces/MaximumFlowAlgorithm.MaximumFlow.html new file mode 100644 index 0000000..aed09fb --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/MaximumFlowAlgorithm.MaximumFlow.html @@ -0,0 +1,237 @@ + + + + + + +MaximumFlowAlgorithm.MaximumFlow (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.interfaces
+

Interface MaximumFlowAlgorithm.MaximumFlow<V,E>

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      Map<E,Double>getFlow() +
      Returns mapping from edge to flow value through this particular edge
      +
      DoublegetValue() +
      Returns value of the maximum-flow for the given network
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getValue

        +
        Double getValue()
        +
        Returns value of the maximum-flow for the given network
        +
        Returns:
        value of th maximum-flow
        +
      • +
      + + + +
        +
      • +

        getFlow

        +
        Map<E,Double> getFlow()
        +
        Returns mapping from edge to flow value through this particular edge
        +
        Returns:
        maximum flow
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/MaximumFlowAlgorithm.MaximumFlowImpl.html b/javadoc/org/jgrapht/alg/interfaces/MaximumFlowAlgorithm.MaximumFlowImpl.html new file mode 100644 index 0000000..215849d --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/MaximumFlowAlgorithm.MaximumFlowImpl.html @@ -0,0 +1,298 @@ + + + + + + +MaximumFlowAlgorithm.MaximumFlowImpl (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.interfaces
+

Class MaximumFlowAlgorithm.MaximumFlowImpl<V,E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.alg.interfaces.MaximumFlowAlgorithm.MaximumFlowImpl<V,E>
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/MaximumFlowAlgorithm.html b/javadoc/org/jgrapht/alg/interfaces/MaximumFlowAlgorithm.html new file mode 100644 index 0000000..ecf169d --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/MaximumFlowAlgorithm.html @@ -0,0 +1,251 @@ + + + + + + +MaximumFlowAlgorithm (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.interfaces
+

Interface MaximumFlowAlgorithm<V,E>

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        buildMaximumFlow

        +
        MaximumFlowAlgorithm.MaximumFlow<V,E> buildMaximumFlow(V source,
        +                                                     V sink)
        +
        Builds maximum flow for the supplied network flow, for the supplied + ${source} and ${sink}
        +
        Parameters:
        source - source of the flow inside the network
        sink - sink of the flow inside the network
        +
        Returns:
        maximum flow
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/MinimumSpanningTree.html b/javadoc/org/jgrapht/alg/interfaces/MinimumSpanningTree.html new file mode 100644 index 0000000..a301133 --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/MinimumSpanningTree.html @@ -0,0 +1,237 @@ + + + + + + +MinimumSpanningTree (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.interfaces
+

Interface MinimumSpanningTree<V,E>

+
+
+
+
    +
  • +
    Type Parameters:
    V - vertex concept type
    E - edge concept type
    +
    +
    All Known Implementing Classes:
    +
    KruskalMinimumSpanningTree, PrimMinimumSpanningTree
    +
    +
    +
    +
    public interface MinimumSpanningTree<V,E>
    +
    Allows to derive + minimum spanning tree from given undirected connected graph. In the case + of disconnected graphs it would rather derive minimum spanning forest
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getMinimumSpanningTreeEdgeSet

        +
        Set<E> getMinimumSpanningTreeEdgeSet()
        +
        Returns edges set constituting the minimum spanning tree/forest
        +
        Returns:
        minimum spanning-tree edges set
        +
      • +
      + + + +
        +
      • +

        getMinimumSpanningTreeTotalWeight

        +
        double getMinimumSpanningTreeTotalWeight()
        +
        Returns total weight of the minimum spanning tree/forest.
        +
        Returns:
        minimum spanning-tree total weight
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/StrongConnectivityAlgorithm.html b/javadoc/org/jgrapht/alg/interfaces/StrongConnectivityAlgorithm.html new file mode 100644 index 0000000..cb7c832 --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/StrongConnectivityAlgorithm.html @@ -0,0 +1,285 @@ + + + + + + +StrongConnectivityAlgorithm (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.interfaces
+

Interface StrongConnectivityAlgorithm<V,E>

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGraph

        +
        DirectedGraph<V,E> getGraph()
        +
        Returns the graph inspected by the StrongConnectivityAlgorithm.
        +
        Returns:
        the graph inspected by this StrongConnectivityAlgorithm
        +
      • +
      + + + +
        +
      • +

        isStronglyConnected

        +
        boolean isStronglyConnected()
        +
        Returns true if the graph of this + StrongConnectivityAlgorithm instance is strongly connected.
        +
        Returns:
        true if the graph is strongly connected, false otherwise
        +
      • +
      + + + +
        +
      • +

        stronglyConnectedSets

        +
        List<Set<V>> stronglyConnectedSets()
        +
        Computes a List of Sets, where each set contains vertices + which together form a strongly connected component within the given + graph.
        +
        Returns:
        List of Set s containing the strongly + connected components
        +
      • +
      + + + +
        +
      • +

        stronglyConnectedSubgraphs

        +
        List<DirectedSubgraph<V,E>> stronglyConnectedSubgraphs()
        +

        Computes a list of DirectedSubgraphs of the given graph. Each + subgraph will represent a strongly connected component and will contain + all vertices of that component. The subgraph will have an edge (u,v) iff + u and v are contained in the strongly connected component.

        +
        Returns:
        a list of subgraphs representing the strongly connected + components
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/WeightedMatchingAlgorithm.html b/javadoc/org/jgrapht/alg/interfaces/WeightedMatchingAlgorithm.html new file mode 100644 index 0000000..28b64c5 --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/WeightedMatchingAlgorithm.html @@ -0,0 +1,231 @@ + + + + + + +WeightedMatchingAlgorithm (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.interfaces
+

Interface WeightedMatchingAlgorithm<V,E>

+
+
+
+ +
+
+
    +
  • + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getMatchingWeight

        +
        double getMatchingWeight()
        +
        Returns weight of a matching found
        +
        Returns:
        weight of a matching found
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/class-use/AStarAdmissibleHeuristic.html b/javadoc/org/jgrapht/alg/interfaces/class-use/AStarAdmissibleHeuristic.html new file mode 100644 index 0000000..2160d09 --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/class-use/AStarAdmissibleHeuristic.html @@ -0,0 +1,177 @@ + + + + + + +Uses of Interface org.jgrapht.alg.interfaces.AStarAdmissibleHeuristic (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.alg.interfaces.AStarAdmissibleHeuristic

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/class-use/MatchingAlgorithm.html b/javadoc/org/jgrapht/alg/interfaces/class-use/MatchingAlgorithm.html new file mode 100644 index 0000000..0c2ecb3 --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/class-use/MatchingAlgorithm.html @@ -0,0 +1,209 @@ + + + + + + +Uses of Interface org.jgrapht.alg.interfaces.MatchingAlgorithm (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.alg.interfaces.MatchingAlgorithm

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/class-use/MaximumFlowAlgorithm.MaximumFlow.html b/javadoc/org/jgrapht/alg/interfaces/class-use/MaximumFlowAlgorithm.MaximumFlow.html new file mode 100644 index 0000000..84f5357 --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/class-use/MaximumFlowAlgorithm.MaximumFlow.html @@ -0,0 +1,232 @@ + + + + + + +Uses of Interface org.jgrapht.alg.interfaces.MaximumFlowAlgorithm.MaximumFlow (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.alg.interfaces.MaximumFlowAlgorithm.MaximumFlow

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/class-use/MaximumFlowAlgorithm.MaximumFlowImpl.html b/javadoc/org/jgrapht/alg/interfaces/class-use/MaximumFlowAlgorithm.MaximumFlowImpl.html new file mode 100644 index 0000000..08d1cc5 --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/class-use/MaximumFlowAlgorithm.MaximumFlowImpl.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.interfaces.MaximumFlowAlgorithm.MaximumFlowImpl (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.interfaces.MaximumFlowAlgorithm.MaximumFlowImpl

+
+
No usage of org.jgrapht.alg.interfaces.MaximumFlowAlgorithm.MaximumFlowImpl
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/class-use/MaximumFlowAlgorithm.html b/javadoc/org/jgrapht/alg/interfaces/class-use/MaximumFlowAlgorithm.html new file mode 100644 index 0000000..37d6502 --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/class-use/MaximumFlowAlgorithm.html @@ -0,0 +1,198 @@ + + + + + + +Uses of Interface org.jgrapht.alg.interfaces.MaximumFlowAlgorithm (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.alg.interfaces.MaximumFlowAlgorithm

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/class-use/MinimumSpanningTree.html b/javadoc/org/jgrapht/alg/interfaces/class-use/MinimumSpanningTree.html new file mode 100644 index 0000000..4abebd2 --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/class-use/MinimumSpanningTree.html @@ -0,0 +1,171 @@ + + + + + + +Uses of Interface org.jgrapht.alg.interfaces.MinimumSpanningTree (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.alg.interfaces.MinimumSpanningTree

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/class-use/StrongConnectivityAlgorithm.html b/javadoc/org/jgrapht/alg/interfaces/class-use/StrongConnectivityAlgorithm.html new file mode 100644 index 0000000..83dcefd --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/class-use/StrongConnectivityAlgorithm.html @@ -0,0 +1,177 @@ + + + + + + +Uses of Interface org.jgrapht.alg.interfaces.StrongConnectivityAlgorithm (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.alg.interfaces.StrongConnectivityAlgorithm

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/class-use/WeightedMatchingAlgorithm.html b/javadoc/org/jgrapht/alg/interfaces/class-use/WeightedMatchingAlgorithm.html new file mode 100644 index 0000000..6497121 --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/class-use/WeightedMatchingAlgorithm.html @@ -0,0 +1,171 @@ + + + + + + +Uses of Interface org.jgrapht.alg.interfaces.WeightedMatchingAlgorithm (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.alg.interfaces.WeightedMatchingAlgorithm

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/package-frame.html b/javadoc/org/jgrapht/alg/interfaces/package-frame.html new file mode 100644 index 0000000..6a3f71c --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/package-frame.html @@ -0,0 +1,30 @@ + + + + + + +org.jgrapht.alg.interfaces (JGraphT : a free Java graph library) + + + + +

org.jgrapht.alg.interfaces

+ + + diff --git a/javadoc/org/jgrapht/alg/interfaces/package-summary.html b/javadoc/org/jgrapht/alg/interfaces/package-summary.html new file mode 100644 index 0000000..6193a3c --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/package-summary.html @@ -0,0 +1,192 @@ + + + + + + +org.jgrapht.alg.interfaces (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht.alg.interfaces

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/package-tree.html b/javadoc/org/jgrapht/alg/interfaces/package-tree.html new file mode 100644 index 0000000..ff757e2 --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/package-tree.html @@ -0,0 +1,143 @@ + + + + + + +org.jgrapht.alg.interfaces Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht.alg.interfaces

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/interfaces/package-use.html b/javadoc/org/jgrapht/alg/interfaces/package-use.html new file mode 100644 index 0000000..a15f39d --- /dev/null +++ b/javadoc/org/jgrapht/alg/interfaces/package-use.html @@ -0,0 +1,241 @@ + + + + + + +Uses of Package org.jgrapht.alg.interfaces (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht.alg.interfaces

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/isomorphism/IsomorphicGraphMapping.html b/javadoc/org/jgrapht/alg/isomorphism/IsomorphicGraphMapping.html new file mode 100644 index 0000000..078c045 --- /dev/null +++ b/javadoc/org/jgrapht/alg/isomorphism/IsomorphicGraphMapping.html @@ -0,0 +1,392 @@ + + + + + + +IsomorphicGraphMapping (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.isomorphism
+

Class IsomorphicGraphMapping<V,E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.alg.isomorphism.IsomorphicGraphMapping<V,E>
    • +
    +
  • +
+
+
    +
  • +
    Type Parameters:
    V - the type of the vertices
    E - the type of the edges
    +
    +
    All Implemented Interfaces:
    +
    GraphMapping<V,E>
    +
    +
    +
    +
    public class IsomorphicGraphMapping<V,E>
    +extends Object
    +implements GraphMapping<V,E>
    +
    This class represents a GraphMapping between two (subgraph)isomorphic graphs. + In the subgraph isomorphic case, the second one is assumed to be a subgraph + of the first one.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        IsomorphicGraphMapping

        +
        public IsomorphicGraphMapping(org.jgrapht.alg.isomorphism.GraphOrdering<V,E> g1,
        +                      org.jgrapht.alg.isomorphism.GraphOrdering<V,E> g2,
        +                      int[] core1,
        +                      int[] core2)
        +
        Parameters:
        g1 - the first graph
        g2 - the second graph which is a possible subgraph of g1
        core1 - the mapping as array (forwards)
        core2 - the mapping as array (backwards)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getVertexCorrespondence

        +
        public V getVertexCorrespondence(V v,
        +                        boolean forward)
        +
        Description copied from interface: GraphMapping
        +
        Gets the mapped value where the key is vertex
        +
        +
        Specified by:
        +
        getVertexCorrespondence in interface GraphMapping<V,E>
        +
        Parameters:
        v - vertex in one of the graphs
        forward - if true, uses mapping from graph1 to graph2; if false, use + mapping from graph2 to graph1
        +
        Returns:
        corresponding vertex in other graph, or null if none
        +
      • +
      + + + + + +
        +
      • +

        getEdgeCorrespondence

        +
        public E getEdgeCorrespondence(E e,
        +                      boolean forward)
        +
        Description copied from interface: GraphMapping
        +
        Gets the mapped value where the key is edge
        +
        +
        Specified by:
        +
        getEdgeCorrespondence in interface GraphMapping<V,E>
        +
        Parameters:
        e - edge in one of the graphs
        forward - if true, uses mapping from graph1 to graph2; if false, use + mapping from graph2 to graph1
        +
        Returns:
        corresponding edge in other graph, or null if none
        +
      • +
      + + + + + +
        +
      • +

        hasVertexCorrespondence

        +
        public boolean hasVertexCorrespondence(V v)
        +
        Checks if a vertex v from the first graph has a corresponding vertex in + the second graph
        +
        Returns:
        is there a corresponding vertex to v in the subgraph
        +
      • +
      + + + + + +
        +
      • +

        hasEdgeCorrespondence

        +
        public boolean hasEdgeCorrespondence(E e)
        +
        Checks if a edge e from the first graph has a corresponding edge in the + second graph
        +
        Returns:
        is there a corresponding edge to e in the subgraph
        +
      • +
      + + + + + + + +
        +
      • +

        isEqualMapping

        +
        public boolean isEqualMapping(GraphMapping<V,E> rel)
        +
        Checks for equality. Assuming both are mappings on the same graphs.
        +
        Parameters:
        rel - the corresponding mapping
        +
        Returns:
        do both relations map to the same vertices
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/isomorphism/IsomorphismInspector.html b/javadoc/org/jgrapht/alg/isomorphism/IsomorphismInspector.html new file mode 100644 index 0000000..0192d3e --- /dev/null +++ b/javadoc/org/jgrapht/alg/isomorphism/IsomorphismInspector.html @@ -0,0 +1,227 @@ + + + + + + +IsomorphismInspector (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.isomorphism
+

Interface IsomorphismInspector<V,E>

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/isomorphism/VF2AbstractIsomorphismInspector.html b/javadoc/org/jgrapht/alg/isomorphism/VF2AbstractIsomorphismInspector.html new file mode 100644 index 0000000..c15cf46 --- /dev/null +++ b/javadoc/org/jgrapht/alg/isomorphism/VF2AbstractIsomorphismInspector.html @@ -0,0 +1,451 @@ + + + + + + +VF2AbstractIsomorphismInspector (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.isomorphism
+

Class VF2AbstractIsomorphismInspector<V,E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.alg.isomorphism.VF2AbstractIsomorphismInspector<V,E>
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        graph1

        +
        protected Graph<V,E> graph1
        +
      • +
      + + + +
        +
      • +

        graph2

        +
        protected Graph<V,E> graph2
        +
      • +
      + + + +
        +
      • +

        vertexComparator

        +
        protected Comparator<V> vertexComparator
        +
      • +
      + + + +
        +
      • +

        edgeComparator

        +
        protected Comparator<E> edgeComparator
        +
      • +
      + + + +
        +
      • +

        ordering1

        +
        protected org.jgrapht.alg.isomorphism.GraphOrdering<V,E> ordering1
        +
      • +
      + + + +
        +
      • +

        ordering2

        +
        protected org.jgrapht.alg.isomorphism.GraphOrdering<V,E> ordering2
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        VF2AbstractIsomorphismInspector

        +
        public VF2AbstractIsomorphismInspector(Graph<V,E> graph1,
        +                               Graph<V,E> graph2,
        +                               Comparator<V> vertexComparator,
        +                               Comparator<E> edgeComparator,
        +                               boolean cacheEdges)
        +
        This implementation of the VF2 algorithm does not support graphs with + multiple edges.
        +
        Parameters:
        graph1 - the first graph
        graph2 - the second graph
        vertexComparator - comparator for semantic equivalence of vertices
        edgeComparator - comparator for semantic equivalence of edges
        cacheEdges - if true, edges get cached for faster access
        +
      • +
      + + + +
        +
      • +

        VF2AbstractIsomorphismInspector

        +
        public VF2AbstractIsomorphismInspector(Graph<V,E> graph1,
        +                               Graph<V,E> graph2,
        +                               Comparator<V> vertexComparator,
        +                               Comparator<E> edgeComparator)
        +
      • +
      + + + +
        +
      • +

        VF2AbstractIsomorphismInspector

        +
        public VF2AbstractIsomorphismInspector(Graph<V,E> graph1,
        +                               Graph<V,E> graph2,
        +                               boolean cacheEdges)
        +
      • +
      + + + +
        +
      • +

        VF2AbstractIsomorphismInspector

        +
        public VF2AbstractIsomorphismInspector(Graph<V,E> graph1,
        +                               Graph<V,E> graph2)
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/isomorphism/VF2GraphIsomorphismInspector.html b/javadoc/org/jgrapht/alg/isomorphism/VF2GraphIsomorphismInspector.html new file mode 100644 index 0000000..bc3538c --- /dev/null +++ b/javadoc/org/jgrapht/alg/isomorphism/VF2GraphIsomorphismInspector.html @@ -0,0 +1,365 @@ + + + + + + +VF2GraphIsomorphismInspector (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.isomorphism
+

Class VF2GraphIsomorphismInspector<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        VF2GraphIsomorphismInspector

        +
        public VF2GraphIsomorphismInspector(Graph<V,E> graph1,
        +                            Graph<V,E> graph2,
        +                            Comparator<V> vertexComparator,
        +                            Comparator<E> edgeComparator,
        +                            boolean cacheEdges)
        +
        This implementation of the VF2 algorithm does not support graphs with + multiple edges.
        +
        Parameters:
        graph1 - the first graph
        graph2 - the second graph
        vertexComparator - comparator for semantic equivalence of vertices
        edgeComparator - comparator for semantic equivalence of edges
        cacheEdges - if true, edges get cached for faster access
        +
      • +
      + + + +
        +
      • +

        VF2GraphIsomorphismInspector

        +
        public VF2GraphIsomorphismInspector(Graph<V,E> graph1,
        +                            Graph<V,E> graph2,
        +                            Comparator<V> vertexComparator,
        +                            Comparator<E> edgeComparator)
        +
      • +
      + + + +
        +
      • +

        VF2GraphIsomorphismInspector

        +
        public VF2GraphIsomorphismInspector(Graph<V,E> graph1,
        +                            Graph<V,E> graph2,
        +                            boolean cacheEdges)
        +
      • +
      + + + +
        +
      • +

        VF2GraphIsomorphismInspector

        +
        public VF2GraphIsomorphismInspector(Graph<V,E> graph1,
        +                            Graph<V,E> graph2)
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/isomorphism/VF2SubgraphIsomorphismInspector.html b/javadoc/org/jgrapht/alg/isomorphism/VF2SubgraphIsomorphismInspector.html new file mode 100644 index 0000000..7c168bb --- /dev/null +++ b/javadoc/org/jgrapht/alg/isomorphism/VF2SubgraphIsomorphismInspector.html @@ -0,0 +1,365 @@ + + + + + + +VF2SubgraphIsomorphismInspector (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.isomorphism
+

Class VF2SubgraphIsomorphismInspector<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        VF2SubgraphIsomorphismInspector

        +
        public VF2SubgraphIsomorphismInspector(Graph<V,E> graph1,
        +                               Graph<V,E> graph2,
        +                               Comparator<V> vertexComparator,
        +                               Comparator<E> edgeComparator,
        +                               boolean cacheEdges)
        +
        This implementation of the VF2 algorithm does not support graphs with + multiple edges.
        +
        Parameters:
        graph1 - the first graph
        graph2 - the second graph (possible subgraph of graph1)
        vertexComparator - comparator for semantic equivalence of vertices
        edgeComparator - comparator for semantic equivalence of edges
        cacheEdges - if true, edges get cached for faster access
        +
      • +
      + + + +
        +
      • +

        VF2SubgraphIsomorphismInspector

        +
        public VF2SubgraphIsomorphismInspector(Graph<V,E> graph1,
        +                               Graph<V,E> graph2,
        +                               Comparator<V> vertexComparator,
        +                               Comparator<E> edgeComparator)
        +
      • +
      + + + +
        +
      • +

        VF2SubgraphIsomorphismInspector

        +
        public VF2SubgraphIsomorphismInspector(Graph<V,E> graph1,
        +                               Graph<V,E> graph2,
        +                               boolean cacheEdges)
        +
      • +
      + + + +
        +
      • +

        VF2SubgraphIsomorphismInspector

        +
        public VF2SubgraphIsomorphismInspector(Graph<V,E> graph1,
        +                               Graph<V,E> graph2)
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/isomorphism/class-use/IsomorphicGraphMapping.html b/javadoc/org/jgrapht/alg/isomorphism/class-use/IsomorphicGraphMapping.html new file mode 100644 index 0000000..1438714 --- /dev/null +++ b/javadoc/org/jgrapht/alg/isomorphism/class-use/IsomorphicGraphMapping.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.isomorphism.IsomorphicGraphMapping (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.isomorphism.IsomorphicGraphMapping

+
+
No usage of org.jgrapht.alg.isomorphism.IsomorphicGraphMapping
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/isomorphism/class-use/IsomorphismInspector.html b/javadoc/org/jgrapht/alg/isomorphism/class-use/IsomorphismInspector.html new file mode 100644 index 0000000..b1e0342 --- /dev/null +++ b/javadoc/org/jgrapht/alg/isomorphism/class-use/IsomorphismInspector.html @@ -0,0 +1,173 @@ + + + + + + +Uses of Interface org.jgrapht.alg.isomorphism.IsomorphismInspector (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.alg.isomorphism.IsomorphismInspector

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/isomorphism/class-use/VF2AbstractIsomorphismInspector.html b/javadoc/org/jgrapht/alg/isomorphism/class-use/VF2AbstractIsomorphismInspector.html new file mode 100644 index 0000000..c8f1e43 --- /dev/null +++ b/javadoc/org/jgrapht/alg/isomorphism/class-use/VF2AbstractIsomorphismInspector.html @@ -0,0 +1,169 @@ + + + + + + +Uses of Class org.jgrapht.alg.isomorphism.VF2AbstractIsomorphismInspector (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.isomorphism.VF2AbstractIsomorphismInspector

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/isomorphism/class-use/VF2GraphIsomorphismInspector.html b/javadoc/org/jgrapht/alg/isomorphism/class-use/VF2GraphIsomorphismInspector.html new file mode 100644 index 0000000..f4139c1 --- /dev/null +++ b/javadoc/org/jgrapht/alg/isomorphism/class-use/VF2GraphIsomorphismInspector.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.isomorphism.VF2GraphIsomorphismInspector (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.isomorphism.VF2GraphIsomorphismInspector

+
+
No usage of org.jgrapht.alg.isomorphism.VF2GraphIsomorphismInspector
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/isomorphism/class-use/VF2SubgraphIsomorphismInspector.html b/javadoc/org/jgrapht/alg/isomorphism/class-use/VF2SubgraphIsomorphismInspector.html new file mode 100644 index 0000000..19bd1c1 --- /dev/null +++ b/javadoc/org/jgrapht/alg/isomorphism/class-use/VF2SubgraphIsomorphismInspector.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.isomorphism.VF2SubgraphIsomorphismInspector (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.isomorphism.VF2SubgraphIsomorphismInspector

+
+
No usage of org.jgrapht.alg.isomorphism.VF2SubgraphIsomorphismInspector
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/isomorphism/package-frame.html b/javadoc/org/jgrapht/alg/isomorphism/package-frame.html new file mode 100644 index 0000000..e882bc6 --- /dev/null +++ b/javadoc/org/jgrapht/alg/isomorphism/package-frame.html @@ -0,0 +1,27 @@ + + + + + + +org.jgrapht.alg.isomorphism (JGraphT : a free Java graph library) + + + + +

org.jgrapht.alg.isomorphism

+ + + diff --git a/javadoc/org/jgrapht/alg/isomorphism/package-summary.html b/javadoc/org/jgrapht/alg/isomorphism/package-summary.html new file mode 100644 index 0000000..14ec540 --- /dev/null +++ b/javadoc/org/jgrapht/alg/isomorphism/package-summary.html @@ -0,0 +1,174 @@ + + + + + + +org.jgrapht.alg.isomorphism (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht.alg.isomorphism

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/isomorphism/package-tree.html b/javadoc/org/jgrapht/alg/isomorphism/package-tree.html new file mode 100644 index 0000000..43a9e7f --- /dev/null +++ b/javadoc/org/jgrapht/alg/isomorphism/package-tree.html @@ -0,0 +1,140 @@ + + + + + + +org.jgrapht.alg.isomorphism Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht.alg.isomorphism

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/isomorphism/package-use.html b/javadoc/org/jgrapht/alg/isomorphism/package-use.html new file mode 100644 index 0000000..66bedf8 --- /dev/null +++ b/javadoc/org/jgrapht/alg/isomorphism/package-use.html @@ -0,0 +1,155 @@ + + + + + + +Uses of Package org.jgrapht.alg.isomorphism (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht.alg.isomorphism

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/package-frame.html b/javadoc/org/jgrapht/alg/package-frame.html new file mode 100644 index 0000000..bdda154 --- /dev/null +++ b/javadoc/org/jgrapht/alg/package-frame.html @@ -0,0 +1,55 @@ + + + + + + +org.jgrapht.alg (JGraphT : a free Java graph library) + + + + +

org.jgrapht.alg

+ + + diff --git a/javadoc/org/jgrapht/alg/package-summary.html b/javadoc/org/jgrapht/alg/package-summary.html new file mode 100644 index 0000000..aac460f --- /dev/null +++ b/javadoc/org/jgrapht/alg/package-summary.html @@ -0,0 +1,394 @@ + + + + + + +org.jgrapht.alg (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht.alg

+
+
Algorithms provided with JGraphT.
+
+

See: Description

+
+
+ + + + +

Package org.jgrapht.alg Description

+
Algorithms provided with JGraphT.
+
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/package-tree.html b/javadoc/org/jgrapht/alg/package-tree.html new file mode 100644 index 0000000..69dce4f --- /dev/null +++ b/javadoc/org/jgrapht/alg/package-tree.html @@ -0,0 +1,179 @@ + + + + + + +org.jgrapht.alg Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht.alg

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/package-use.html b/javadoc/org/jgrapht/alg/package-use.html new file mode 100644 index 0000000..5f8a7b2 --- /dev/null +++ b/javadoc/org/jgrapht/alg/package-use.html @@ -0,0 +1,169 @@ + + + + + + +Uses of Package org.jgrapht.alg (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht.alg

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/AlwaysEqualComparator.html b/javadoc/org/jgrapht/alg/util/AlwaysEqualComparator.html new file mode 100644 index 0000000..4dc20ff --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/AlwaysEqualComparator.html @@ -0,0 +1,279 @@ + + + + + + +AlwaysEqualComparator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.util
+

Class AlwaysEqualComparator<T>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Comparator<T>
    +
    +
    +
    +
    public class AlwaysEqualComparator<T>
    +extends Object
    +implements Comparator<T>
    +
    A default implementation for a check on equality (that always holds)
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AlwaysEqualComparator

        +
        public AlwaysEqualComparator()
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/Extension.BaseExtension.html b/javadoc/org/jgrapht/alg/util/Extension.BaseExtension.html new file mode 100644 index 0000000..94d87b5 --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/Extension.BaseExtension.html @@ -0,0 +1,238 @@ + + + + + + +Extension.BaseExtension (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.util
+

Class Extension.BaseExtension

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Extension.BaseExtension

        +
        public Extension.BaseExtension()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/Extension.ExtensionFactory.html b/javadoc/org/jgrapht/alg/util/Extension.ExtensionFactory.html new file mode 100644 index 0000000..c450147 --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/Extension.ExtensionFactory.html @@ -0,0 +1,215 @@ + + + + + + +Extension.ExtensionFactory (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.util
+

Interface Extension.ExtensionFactory<E>

+
+
+
+
    +
  • +
    Type Parameters:
    E - extension concept class-type
    +
    +
    Enclosing class:
    +
    Extension<T,E>
    +
    +
    +
    +
    public static interface Extension.ExtensionFactory<E>
    +
    Factory capable of producing given extension objects of the given + class-type
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      Ecreate() 
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        create

        +
        E create()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/Extension.ExtensionManagerInstantiationException.html b/javadoc/org/jgrapht/alg/util/Extension.ExtensionManagerInstantiationException.html new file mode 100644 index 0000000..bc0a1fc --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/Extension.ExtensionManagerInstantiationException.html @@ -0,0 +1,261 @@ + + + + + + +Extension.ExtensionManagerInstantiationException (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.util
+

Class Extension.ExtensionManagerInstantiationException

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Extension.ExtensionManagerInstantiationException

        +
        public Extension.ExtensionManagerInstantiationException(Exception e)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/Extension.html b/javadoc/org/jgrapht/alg/util/Extension.html new file mode 100644 index 0000000..93d4478 --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/Extension.html @@ -0,0 +1,306 @@ + + + + + + +Extension (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.util
+

Class Extension<T,E>

+
+
+ +
+
    +
  • +
    Type Parameters:
    T - class-type to be extended
    E - extension concept class-type
    +
    +
    +
    public class Extension<T,E>
    +extends Object
    +
    Abstract extension manager allowing to extend given class-types with supplied + extension's class-type saving source class object references
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/Pair.html b/javadoc/org/jgrapht/alg/util/Pair.html new file mode 100644 index 0000000..3a1e119 --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/Pair.html @@ -0,0 +1,360 @@ + + + + + + +Pair (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.util
+

Class Pair<A,B>

+
+
+ +
+
    +
  • +
    +
    +
    public class Pair<A,B>
    +extends Object
    +
    Generic pair.
    + Although the instances of this class are immutable, it is impossible to + ensure that the references passed to the constructor will not be modified by + the caller.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      Afirst 
      Bsecond 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Pair(A a, + B b) 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        first

        +
        public A first
        +
      • +
      + + + +
        +
      • +

        second

        +
        public B second
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        Pair

        +
        public Pair(A a,
        +    B b)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        equals

        +
        public boolean equals(Object other)
        +
        +
        Overrides:
        +
        equals in class Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        +
      • +
      + + + + + +
        +
      • +

        of

        +
        public static <A,B> Pair<A,B> of(A a,
        +                 B b)
        +
        Creates new pair of elements pulling of the necessity to provide + corresponding types of the elements supplied
        +
        Parameters:
        a - first element
        b - second element
        +
        Returns:
        new pair
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/UnionFind.html b/javadoc/org/jgrapht/alg/util/UnionFind.html new file mode 100644 index 0000000..12948d8 --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/UnionFind.html @@ -0,0 +1,350 @@ + + + + + + +UnionFind (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.util
+

Class UnionFind<T>

+
+
+ +
+
    +
  • +
    +
    +
    public class UnionFind<T>
    +extends Object
    +
    An implementation of Union + Find data structure. Union Find is a disjoint-set data structure. It + supports two operations: finding the set a specific element is in, and + merging two sets. The implementation uses union by rank and path compression + to achieve an amortized cost of O(a(n)) per operation where a is the inverse + Ackermann function. UnionFind uses the hashCode and equals method of the + elements it operates on.
    +
    Since:
    +
    Feb 10, 2010
    +
    Author:
    +
    Tom Conerly
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      UnionFind(Set<T> elements) +
      Creates a UnionFind instance with all of the elements of elements in + seperate sets.
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UnionFind

        +
        public UnionFind(Set<T> elements)
        +
        Creates a UnionFind instance with all of the elements of elements in + seperate sets.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        addElement

        +
        public void addElement(T element)
        +
        Adds a new element to the data structure in its own set.
        +
        Parameters:
        element - The element to add.
        +
      • +
      + + + +
        +
      • +

        getParentMap

        +
        protected Map<T,T> getParentMap()
        +
        Returns:
        map from element to parent element
        +
      • +
      + + + +
        +
      • +

        getRankMap

        +
        protected Map<T,Integer> getRankMap()
        +
        Returns:
        map from element to rank
        +
      • +
      + + + + + +
        +
      • +

        find

        +
        public T find(T element)
        +
        Returns the representative element of the set that element is in.
        +
        Parameters:
        element - The element to find.
        +
        Returns:
        The element representing the set the element is in.
        +
      • +
      + + + + + +
        +
      • +

        union

        +
        public void union(T element1,
        +         T element2)
        +
        Merges the sets which contain element1 and element2.
        +
        Parameters:
        element1 - The first element to union.
        element2 - The second element to union.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/VertexDegreeComparator.html b/javadoc/org/jgrapht/alg/util/VertexDegreeComparator.html new file mode 100644 index 0000000..bcd64db --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/VertexDegreeComparator.html @@ -0,0 +1,322 @@ + + + + + + +VertexDegreeComparator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.alg.util
+

Class VertexDegreeComparator<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Comparator<V>
    +
    +
    +
    +
    public class VertexDegreeComparator<V,E>
    +extends Object
    +implements Comparator<V>
    +
    Compares two vertices based on their degree. + +

    Used by greedy algorithms that need to sort vertices by their degree. Two + vertices are considered equal if their degrees are equal.

    +
    Since:
    +
    Nov 6, 2003
    +
    Author:
    +
    Linda Buisman
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        VertexDegreeComparator

        +
        public VertexDegreeComparator(UndirectedGraph<V,E> g)
        +
        Creates a comparator for comparing the degrees of vertices in the + specified graph. The comparator compares in ascending order of degrees + (lowest first).
        +
        Parameters:
        g - graph with respect to which the degree is calculated.
        +
      • +
      + + + +
        +
      • +

        VertexDegreeComparator

        +
        public VertexDegreeComparator(UndirectedGraph<V,E> g,
        +                      boolean ascendingOrder)
        +
        Creates a comparator for comparing the degrees of vertices in the + specified graph.
        +
        Parameters:
        g - graph with respect to which the degree is calculated.
        ascendingOrder - true - compares in ascending order of degrees + (lowest first), false - compares in descending order of degrees (highest + first).
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        compare

        +
        public int compare(V v1,
        +          V v2)
        +
        Compare the degrees of v1 and v2, taking into + account whether ascending or descending order is used.
        +
        +
        Specified by:
        +
        compare in interface Comparator<V>
        +
        Parameters:
        v1 - the first vertex to be compared.
        v2 - the second vertex to be compared.
        +
        Returns:
        -1 if v1 comes before v2, +1 if + v1 comes after v2, 0 if equal.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/class-use/AlwaysEqualComparator.html b/javadoc/org/jgrapht/alg/util/class-use/AlwaysEqualComparator.html new file mode 100644 index 0000000..c2c345f --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/class-use/AlwaysEqualComparator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.util.AlwaysEqualComparator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.util.AlwaysEqualComparator

+
+
No usage of org.jgrapht.alg.util.AlwaysEqualComparator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/class-use/Extension.BaseExtension.html b/javadoc/org/jgrapht/alg/util/class-use/Extension.BaseExtension.html new file mode 100644 index 0000000..ef2cbe2 --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/class-use/Extension.BaseExtension.html @@ -0,0 +1,161 @@ + + + + + + +Uses of Class org.jgrapht.alg.util.Extension.BaseExtension (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.util.Extension.BaseExtension

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/class-use/Extension.ExtensionFactory.html b/javadoc/org/jgrapht/alg/util/class-use/Extension.ExtensionFactory.html new file mode 100644 index 0000000..6bbd880 --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/class-use/Extension.ExtensionFactory.html @@ -0,0 +1,157 @@ + + + + + + +Uses of Interface org.jgrapht.alg.util.Extension.ExtensionFactory (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.alg.util.Extension.ExtensionFactory

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/class-use/Extension.ExtensionManagerInstantiationException.html b/javadoc/org/jgrapht/alg/util/class-use/Extension.ExtensionManagerInstantiationException.html new file mode 100644 index 0000000..53a7083 --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/class-use/Extension.ExtensionManagerInstantiationException.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.util.Extension.ExtensionManagerInstantiationException (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.util.Extension.ExtensionManagerInstantiationException

+
+
No usage of org.jgrapht.alg.util.Extension.ExtensionManagerInstantiationException
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/class-use/Extension.html b/javadoc/org/jgrapht/alg/util/class-use/Extension.html new file mode 100644 index 0000000..a9d05c7 --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/class-use/Extension.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.util.Extension (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.util.Extension

+
+
No usage of org.jgrapht.alg.util.Extension
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/class-use/Pair.html b/javadoc/org/jgrapht/alg/util/class-use/Pair.html new file mode 100644 index 0000000..b9c2508 --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/class-use/Pair.html @@ -0,0 +1,163 @@ + + + + + + +Uses of Class org.jgrapht.alg.util.Pair (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.util.Pair

+
+
+
    +
  • + + + + + + + + + + + + +
    Packages that use Pair 
    PackageDescription
    org.jgrapht.alg.util +
    Utilities used by JGraphT algorithms.
    +
    +
  • +
  • +
      +
    • + + +

      Uses of Pair in org.jgrapht.alg.util

      + + + + + + + + + + + + +
      Methods in org.jgrapht.alg.util that return Pair 
      Modifier and TypeMethod and Description
      static <A,B> Pair<A,B>Pair.of(A a, + B b) +
      Creates new pair of elements pulling of the necessity to provide + corresponding types of the elements supplied
      +
      +
    • +
    +
  • +
+
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/class-use/UnionFind.html b/javadoc/org/jgrapht/alg/util/class-use/UnionFind.html new file mode 100644 index 0000000..21e7533 --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/class-use/UnionFind.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.util.UnionFind (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.util.UnionFind

+
+
No usage of org.jgrapht.alg.util.UnionFind
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/class-use/VertexDegreeComparator.html b/javadoc/org/jgrapht/alg/util/class-use/VertexDegreeComparator.html new file mode 100644 index 0000000..4a75e8f --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/class-use/VertexDegreeComparator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.alg.util.VertexDegreeComparator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.alg.util.VertexDegreeComparator

+
+
No usage of org.jgrapht.alg.util.VertexDegreeComparator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/package-frame.html b/javadoc/org/jgrapht/alg/util/package-frame.html new file mode 100644 index 0000000..d880c4d --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/package-frame.html @@ -0,0 +1,33 @@ + + + + + + +org.jgrapht.alg.util (JGraphT : a free Java graph library) + + + + +

org.jgrapht.alg.util

+ + + diff --git a/javadoc/org/jgrapht/alg/util/package-summary.html b/javadoc/org/jgrapht/alg/util/package-summary.html new file mode 100644 index 0000000..a5d6d63 --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/package-summary.html @@ -0,0 +1,213 @@ + + + + + + +org.jgrapht.alg.util (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht.alg.util

+
+
Utilities used by JGraphT algorithms.
+
+

See: Description

+
+
+
    +
  • + + + + + + + + + + + + +
    Interface Summary 
    InterfaceDescription
    Extension.ExtensionFactory<E> +
    Factory capable of producing given extension objects of the given + class-type
    +
    +
  • +
  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    AlwaysEqualComparator<T> +
    A default implementation for a check on equality (that always holds)
    +
    Extension<T,E> +
    Abstract extension manager allowing to extend given class-types with supplied + extension's class-type saving source class object references
    +
    Extension.BaseExtension 
    Pair<A,B> +
    Generic pair.
    + Although the instances of this class are immutable, it is impossible to + ensure that the references passed to the constructor will not be modified by + the caller.
    +
    UnionFind<T> +
    An implementation of Union + Find data structure.
    +
    VertexDegreeComparator<V,E> +
    Compares two vertices based on their degree.
    +
    +
  • +
  • + + + + + + + + + + + + +
    Exception Summary 
    ExceptionDescription
    Extension.ExtensionManagerInstantiationException 
    +
  • +
+ + + +

Package org.jgrapht.alg.util Description

+
Utilities used by JGraphT algorithms.
+
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/package-tree.html b/javadoc/org/jgrapht/alg/util/package-tree.html new file mode 100644 index 0000000..c5fe51d --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/package-tree.html @@ -0,0 +1,152 @@ + + + + + + +org.jgrapht.alg.util Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht.alg.util

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/alg/util/package-use.html b/javadoc/org/jgrapht/alg/util/package-use.html new file mode 100644 index 0000000..7fa65ec --- /dev/null +++ b/javadoc/org/jgrapht/alg/util/package-use.html @@ -0,0 +1,182 @@ + + + + + + +Uses of Package org.jgrapht.alg.util (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht.alg.util

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/class-use/DirectedGraph.html b/javadoc/org/jgrapht/class-use/DirectedGraph.html new file mode 100644 index 0000000..42714ba --- /dev/null +++ b/javadoc/org/jgrapht/class-use/DirectedGraph.html @@ -0,0 +1,863 @@ + + + + + + +Uses of Interface org.jgrapht.DirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.DirectedGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/class-use/EdgeFactory.html b/javadoc/org/jgrapht/class-use/EdgeFactory.html new file mode 100644 index 0000000..50b1fd6 --- /dev/null +++ b/javadoc/org/jgrapht/class-use/EdgeFactory.html @@ -0,0 +1,428 @@ + + + + + + +Uses of Interface org.jgrapht.EdgeFactory (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.EdgeFactory

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/class-use/Graph.html b/javadoc/org/jgrapht/class-use/Graph.html new file mode 100644 index 0000000..89966d0 --- /dev/null +++ b/javadoc/org/jgrapht/class-use/Graph.html @@ -0,0 +1,1649 @@ + + + + + + +Uses of Interface org.jgrapht.Graph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.Graph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/class-use/GraphHelper.html b/javadoc/org/jgrapht/class-use/GraphHelper.html new file mode 100644 index 0000000..b428cc6 --- /dev/null +++ b/javadoc/org/jgrapht/class-use/GraphHelper.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.GraphHelper (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.GraphHelper

+
+
No usage of org.jgrapht.GraphHelper
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/class-use/GraphMapping.html b/javadoc/org/jgrapht/class-use/GraphMapping.html new file mode 100644 index 0000000..f8b1843 --- /dev/null +++ b/javadoc/org/jgrapht/class-use/GraphMapping.html @@ -0,0 +1,217 @@ + + + + + + +Uses of Interface org.jgrapht.GraphMapping (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.GraphMapping

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/class-use/GraphPath.html b/javadoc/org/jgrapht/class-use/GraphPath.html new file mode 100644 index 0000000..83b0de6 --- /dev/null +++ b/javadoc/org/jgrapht/class-use/GraphPath.html @@ -0,0 +1,283 @@ + + + + + + +Uses of Interface org.jgrapht.GraphPath (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.GraphPath

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/class-use/Graphs.html b/javadoc/org/jgrapht/class-use/Graphs.html new file mode 100644 index 0000000..4a9937e --- /dev/null +++ b/javadoc/org/jgrapht/class-use/Graphs.html @@ -0,0 +1,164 @@ + + + + + + +Uses of Class org.jgrapht.Graphs (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.Graphs

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/class-use/ListenableGraph.html b/javadoc/org/jgrapht/class-use/ListenableGraph.html new file mode 100644 index 0000000..d1803fe --- /dev/null +++ b/javadoc/org/jgrapht/class-use/ListenableGraph.html @@ -0,0 +1,212 @@ + + + + + + +Uses of Interface org.jgrapht.ListenableGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.ListenableGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/class-use/UndirectedGraph.html b/javadoc/org/jgrapht/class-use/UndirectedGraph.html new file mode 100644 index 0000000..4815cba --- /dev/null +++ b/javadoc/org/jgrapht/class-use/UndirectedGraph.html @@ -0,0 +1,652 @@ + + + + + + +Uses of Interface org.jgrapht.UndirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.UndirectedGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/class-use/VertexFactory.html b/javadoc/org/jgrapht/class-use/VertexFactory.html new file mode 100644 index 0000000..cd37d30 --- /dev/null +++ b/javadoc/org/jgrapht/class-use/VertexFactory.html @@ -0,0 +1,353 @@ + + + + + + +Uses of Interface org.jgrapht.VertexFactory (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.VertexFactory

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/class-use/WeightedGraph.html b/javadoc/org/jgrapht/class-use/WeightedGraph.html new file mode 100644 index 0000000..0567be5 --- /dev/null +++ b/javadoc/org/jgrapht/class-use/WeightedGraph.html @@ -0,0 +1,383 @@ + + + + + + +Uses of Interface org.jgrapht.WeightedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.WeightedGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/demo/CompleteGraphDemo.html b/javadoc/org/jgrapht/demo/CompleteGraphDemo.html new file mode 100644 index 0000000..7e683a4 --- /dev/null +++ b/javadoc/org/jgrapht/demo/CompleteGraphDemo.html @@ -0,0 +1,273 @@ + + + + + + +CompleteGraphDemo (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.demo
+

Class CompleteGraphDemo

+
+
+ +
+
    +
  • +
    +
    +
    public final class CompleteGraphDemo
    +extends Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CompleteGraphDemo

        +
        public CompleteGraphDemo()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        main

        +
        public static void main(String[] args)
        +
      • +
      + + + +
        +
      • +

        replaceVertex

        +
        public static boolean replaceVertex(Object oldVertex,
        +                    Object newVertex)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/demo/HelloJGraphT.html b/javadoc/org/jgrapht/demo/HelloJGraphT.html new file mode 100644 index 0000000..01c2e92 --- /dev/null +++ b/javadoc/org/jgrapht/demo/HelloJGraphT.html @@ -0,0 +1,233 @@ + + + + + + +HelloJGraphT (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.demo
+

Class HelloJGraphT

+
+
+ +
+
    +
  • +
    +
    +
    public final class HelloJGraphT
    +extends Object
    +
    A simple introduction to using JGraphT.
    +
    Since:
    +
    Jul 27, 2003
    +
    Author:
    +
    Barak Naveh
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        main

        +
        public static void main(String[] args)
        +
        The starting point for the demo.
        +
        Parameters:
        args - ignored.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/demo/JGraphAdapterDemo.html b/javadoc/org/jgrapht/demo/JGraphAdapterDemo.html new file mode 100644 index 0000000..64b5230 --- /dev/null +++ b/javadoc/org/jgrapht/demo/JGraphAdapterDemo.html @@ -0,0 +1,423 @@ + + + + + + +JGraphAdapterDemo (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.demo
+

Class JGraphAdapterDemo

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JGraphAdapterDemo

        +
        public JGraphAdapterDemo()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        main

        +
        public static void main(String[] args)
        +
        An alternative starting point for this demo, to also allow running this + applet as an application.
        +
        Parameters:
        args - ignored.
        +
      • +
      + + + +
        +
      • +

        init

        +
        public void init()
        +
        +
        Overrides:
        +
        init in class Applet
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/demo/JGraphXAdapterDemo.html b/javadoc/org/jgrapht/demo/JGraphXAdapterDemo.html new file mode 100644 index 0000000..a763611 --- /dev/null +++ b/javadoc/org/jgrapht/demo/JGraphXAdapterDemo.html @@ -0,0 +1,422 @@ + + + + + + +JGraphXAdapterDemo (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.demo
+

Class JGraphXAdapterDemo

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JGraphXAdapterDemo

        +
        public JGraphXAdapterDemo()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        main

        +
        public static void main(String[] args)
        +
        An alternative starting point for this demo, to also allow running this + applet as an application.
        +
        Parameters:
        args - ignored.
        +
      • +
      + + + +
        +
      • +

        init

        +
        public void init()
        +
        +
        Overrides:
        +
        init in class Applet
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/demo/PerformanceDemo.html b/javadoc/org/jgrapht/demo/PerformanceDemo.html new file mode 100644 index 0000000..baa2739 --- /dev/null +++ b/javadoc/org/jgrapht/demo/PerformanceDemo.html @@ -0,0 +1,277 @@ + + + + + + +PerformanceDemo (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.demo
+

Class PerformanceDemo

+
+
+ +
+
    +
  • +
    +
    +
    public final class PerformanceDemo
    +extends Object
    +
    A simple demo to test memory and CPU consumption on a graph with 3 million + elements. + +

    NOTE: To run this demo you may need to increase the JVM max mem size. In + Sun's JVM it is done using the "-Xmx" switch. Specify "-Xmx300M" to set it to + 300MB.

    + +

    WARNING: Don't run this demo as-is on machines with less than 512MB + memory. Your machine will start paging severely. You need to first modify it + to have fewer graph elements. This is easily done by changing the loop + counters below.

    +
    Since:
    +
    Aug 10, 2003
    +
    Author:
    +
    Barak Naveh
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PerformanceDemo

        +
        public PerformanceDemo()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        main

        +
        public static void main(String[] args)
        +
        The starting point for the demo.
        +
        Parameters:
        args - ignored.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/demo/class-use/CompleteGraphDemo.html b/javadoc/org/jgrapht/demo/class-use/CompleteGraphDemo.html new file mode 100644 index 0000000..e14cbbd --- /dev/null +++ b/javadoc/org/jgrapht/demo/class-use/CompleteGraphDemo.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.demo.CompleteGraphDemo (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.demo.CompleteGraphDemo

+
+
No usage of org.jgrapht.demo.CompleteGraphDemo
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/demo/class-use/HelloJGraphT.html b/javadoc/org/jgrapht/demo/class-use/HelloJGraphT.html new file mode 100644 index 0000000..31ee027 --- /dev/null +++ b/javadoc/org/jgrapht/demo/class-use/HelloJGraphT.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.demo.HelloJGraphT (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.demo.HelloJGraphT

+
+
No usage of org.jgrapht.demo.HelloJGraphT
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/demo/class-use/JGraphAdapterDemo.html b/javadoc/org/jgrapht/demo/class-use/JGraphAdapterDemo.html new file mode 100644 index 0000000..4ad51e2 --- /dev/null +++ b/javadoc/org/jgrapht/demo/class-use/JGraphAdapterDemo.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.demo.JGraphAdapterDemo (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.demo.JGraphAdapterDemo

+
+
No usage of org.jgrapht.demo.JGraphAdapterDemo
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/demo/class-use/JGraphXAdapterDemo.html b/javadoc/org/jgrapht/demo/class-use/JGraphXAdapterDemo.html new file mode 100644 index 0000000..0b3cc7a --- /dev/null +++ b/javadoc/org/jgrapht/demo/class-use/JGraphXAdapterDemo.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.demo.JGraphXAdapterDemo (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.demo.JGraphXAdapterDemo

+
+
No usage of org.jgrapht.demo.JGraphXAdapterDemo
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/demo/class-use/PerformanceDemo.html b/javadoc/org/jgrapht/demo/class-use/PerformanceDemo.html new file mode 100644 index 0000000..b85fd65 --- /dev/null +++ b/javadoc/org/jgrapht/demo/class-use/PerformanceDemo.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.demo.PerformanceDemo (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.demo.PerformanceDemo

+
+
No usage of org.jgrapht.demo.PerformanceDemo
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/demo/package-frame.html b/javadoc/org/jgrapht/demo/package-frame.html new file mode 100644 index 0000000..67d5a02 --- /dev/null +++ b/javadoc/org/jgrapht/demo/package-frame.html @@ -0,0 +1,24 @@ + + + + + + +org.jgrapht.demo (JGraphT : a free Java graph library) + + + + +

org.jgrapht.demo

+ + + diff --git a/javadoc/org/jgrapht/demo/package-summary.html b/javadoc/org/jgrapht/demo/package-summary.html new file mode 100644 index 0000000..844be83 --- /dev/null +++ b/javadoc/org/jgrapht/demo/package-summary.html @@ -0,0 +1,169 @@ + + + + + + +org.jgrapht.demo (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht.demo

+
+
Demo programs that help to get started with JGraphT.
+
+

See: Description

+
+
+
    +
  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    CompleteGraphDemo 
    HelloJGraphT +
    A simple introduction to using JGraphT.
    +
    JGraphAdapterDemo +
    A demo applet that shows how to use JGraph to visualize JGraphT graphs.
    +
    JGraphXAdapterDemo +
    A demo applet that shows how to use JGraphX to visualize JGraphT graphs.
    +
    PerformanceDemo +
    A simple demo to test memory and CPU consumption on a graph with 3 million + elements.
    +
    +
  • +
+ + + +

Package org.jgrapht.demo Description

+
Demo programs that help to get started with JGraphT.
+
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/demo/package-tree.html b/javadoc/org/jgrapht/demo/package-tree.html new file mode 100644 index 0000000..bda472c --- /dev/null +++ b/javadoc/org/jgrapht/demo/package-tree.html @@ -0,0 +1,154 @@ + + + + + + +org.jgrapht.demo Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht.demo

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/demo/package-use.html b/javadoc/org/jgrapht/demo/package-use.html new file mode 100644 index 0000000..0878bb3 --- /dev/null +++ b/javadoc/org/jgrapht/demo/package-use.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Package org.jgrapht.demo (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht.demo

+
+
No usage of org.jgrapht.demo
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/ConnectedComponentTraversalEvent.html b/javadoc/org/jgrapht/event/ConnectedComponentTraversalEvent.html new file mode 100644 index 0000000..0dcedbd --- /dev/null +++ b/javadoc/org/jgrapht/event/ConnectedComponentTraversalEvent.html @@ -0,0 +1,354 @@ + + + + + + +ConnectedComponentTraversalEvent (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.event
+

Class ConnectedComponentTraversalEvent

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable
    +
    +
    +
    +
    public class ConnectedComponentTraversalEvent
    +extends EventObject
    +
    A traversal event with respect to a connected component.
    +
    Since:
    +
    Aug 11, 2003
    +
    Author:
    +
    Barak Naveh
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        CONNECTED_COMPONENT_STARTED

        +
        public static final int CONNECTED_COMPONENT_STARTED
        +
        Connected component traversal started event.
        +
        See Also:
        Constant Field Values
        +
      • +
      + + + +
        +
      • +

        CONNECTED_COMPONENT_FINISHED

        +
        public static final int CONNECTED_COMPONENT_FINISHED
        +
        Connected component traversal finished event.
        +
        See Also:
        Constant Field Values
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ConnectedComponentTraversalEvent

        +
        public ConnectedComponentTraversalEvent(Object eventSource,
        +                                int type)
        +
        Creates a new ConnectedComponentTraversalEvent.
        +
        Parameters:
        eventSource - the source of the event.
        type - the type of event.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getType

        +
        public int getType()
        +
        Returns the event type.
        +
        Returns:
        the event type.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/EdgeTraversalEvent.html b/javadoc/org/jgrapht/event/EdgeTraversalEvent.html new file mode 100644 index 0000000..881870b --- /dev/null +++ b/javadoc/org/jgrapht/event/EdgeTraversalEvent.html @@ -0,0 +1,338 @@ + + + + + + +EdgeTraversalEvent (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.event
+

Class EdgeTraversalEvent<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable
    +
    +
    +
    +
    public class EdgeTraversalEvent<V,E>
    +extends EventObject
    +
    A traversal event for a graph edge.
    +
    Since:
    +
    Aug 11, 2003
    +
    Author:
    +
    Barak Naveh
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        edge

        +
        protected E edge
        +
        The traversed edge.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        EdgeTraversalEvent

        +
        public EdgeTraversalEvent(Object eventSource,
        +                  E edge)
        +
        Creates a new EdgeTraversalEvent.
        +
        Parameters:
        eventSource - the source of the event.
        edge - the traversed edge.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getEdge

        +
        public E getEdge()
        +
        Returns the traversed edge.
        +
        Returns:
        the traversed edge.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/GraphChangeEvent.html b/javadoc/org/jgrapht/event/GraphChangeEvent.html new file mode 100644 index 0000000..bc2644b --- /dev/null +++ b/javadoc/org/jgrapht/event/GraphChangeEvent.html @@ -0,0 +1,341 @@ + + + + + + +GraphChangeEvent (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.event
+

Class GraphChangeEvent

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        type

        +
        protected int type
        +
        The type of graph change this event indicates.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GraphChangeEvent

        +
        public GraphChangeEvent(Object eventSource,
        +                int type)
        +
        Creates a new graph change event.
        +
        Parameters:
        eventSource - the source of the event.
        type - the type of event.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getType

        +
        public int getType()
        +
        Returns the event type.
        +
        Returns:
        the event type.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/GraphEdgeChangeEvent.html b/javadoc/org/jgrapht/event/GraphEdgeChangeEvent.html new file mode 100644 index 0000000..6bc5230 --- /dev/null +++ b/javadoc/org/jgrapht/event/GraphEdgeChangeEvent.html @@ -0,0 +1,529 @@ + + + + + + +GraphEdgeChangeEvent (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.event
+

Class GraphEdgeChangeEvent<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable
    +
    +
    +
    +
    public class GraphEdgeChangeEvent<V,E>
    +extends GraphChangeEvent
    +
    An event which indicates that a graph edge has changed, or is about to + change. The event can be used either as an indication after the edge + has been added or removed, or before it is added. The type of the + event can be tested using the GraphChangeEvent.getType() method.
    +
    Since:
    +
    Aug 10, 2003
    +
    Author:
    +
    Barak Naveh
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        BEFORE_EDGE_ADDED

        +
        public static final int BEFORE_EDGE_ADDED
        +
        Before edge added event. This event is fired before an edge is added to a + graph.
        +
        See Also:
        Constant Field Values
        +
      • +
      + + + +
        +
      • +

        BEFORE_EDGE_REMOVED

        +
        public static final int BEFORE_EDGE_REMOVED
        +
        Before edge removed event. This event is fired before an edge is removed + from a graph.
        +
        See Also:
        Constant Field Values
        +
      • +
      + + + +
        +
      • +

        EDGE_ADDED

        +
        public static final int EDGE_ADDED
        +
        Edge added event. This event is fired after an edge is added to a graph.
        +
        See Also:
        Constant Field Values
        +
      • +
      + + + +
        +
      • +

        EDGE_REMOVED

        +
        public static final int EDGE_REMOVED
        +
        Edge removed event. This event is fired after an edge is removed from a + graph.
        +
        See Also:
        Constant Field Values
        +
      • +
      + + + +
        +
      • +

        edge

        +
        protected E edge
        +
        The edge that this event is related to.
        +
      • +
      + + + +
        +
      • +

        edgeSource

        +
        protected V edgeSource
        +
        The source vertex of the edge that this event is related to.
        +
      • +
      + + + +
        +
      • +

        edgeTarget

        +
        protected V edgeTarget
        +
        The target vertex of the edge that this event is related to.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        GraphEdgeChangeEvent

        +
        @Deprecated
        +public GraphEdgeChangeEvent(Object eventSource,
        +                               int type,
        +                               E edge)
        +
        Deprecated. Use new constructor which takes vertex parameters.
        +
        Constructor for GraphEdgeChangeEvent.
        +
        Parameters:
        eventSource - the source of this event.
        type - the event type of this event.
        edge - the edge that this event is related to.
        +
      • +
      + + + + + +
        +
      • +

        GraphEdgeChangeEvent

        +
        public GraphEdgeChangeEvent(Object eventSource,
        +                    int type,
        +                    E edge,
        +                    V edgeSource,
        +                    V edgeTarget)
        +
        Constructor for GraphEdgeChangeEvent.
        +
        Parameters:
        eventSource - the source of this event.
        type - the event type of this event.
        edge - the edge that this event is related to.
        edgeSource - edge source vertex
        edgeTarget - edge target vertex
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getEdge

        +
        public E getEdge()
        +
        Returns the edge that this event is related to.
        +
        Returns:
        event edge
        +
      • +
      + + + +
        +
      • +

        getEdgeSource

        +
        public V getEdgeSource()
        +
        Returns the source vertex that this event is related to.
        +
        Returns:
        event source vertex
        +
      • +
      + + + +
        +
      • +

        getEdgeTarget

        +
        public V getEdgeTarget()
        +
        Returns the target vertex that this event is related to.
        +
        Returns:
        event target vertex
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/GraphListener.html b/javadoc/org/jgrapht/event/GraphListener.html new file mode 100644 index 0000000..88db132 --- /dev/null +++ b/javadoc/org/jgrapht/event/GraphListener.html @@ -0,0 +1,254 @@ + + + + + + +GraphListener (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.event
+

Interface GraphListener<V,E>

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        edgeAdded

        +
        void edgeAdded(GraphEdgeChangeEvent<V,E> e)
        +
        Notifies that an edge has been added to the graph.
        +
        Parameters:
        e - the edge event.
        +
      • +
      + + + +
        +
      • +

        edgeRemoved

        +
        void edgeRemoved(GraphEdgeChangeEvent<V,E> e)
        +
        Notifies that an edge has been removed from the graph.
        +
        Parameters:
        e - the edge event.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/GraphVertexChangeEvent.html b/javadoc/org/jgrapht/event/GraphVertexChangeEvent.html new file mode 100644 index 0000000..32015ef --- /dev/null +++ b/javadoc/org/jgrapht/event/GraphVertexChangeEvent.html @@ -0,0 +1,434 @@ + + + + + + +GraphVertexChangeEvent (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.event
+

Class GraphVertexChangeEvent<V>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable
    +
    +
    +
    +
    public class GraphVertexChangeEvent<V>
    +extends GraphChangeEvent
    +
    An event which indicates that a graph vertex has changed, or is about to + change. The event can be used either as an indication after the vertex + has been added or removed, or before it is added. The type of the + event can be tested using the GraphChangeEvent.getType() method.
    +
    Since:
    +
    Aug 10, 2003
    +
    Author:
    +
    Barak Naveh
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        BEFORE_VERTEX_ADDED

        +
        public static final int BEFORE_VERTEX_ADDED
        +
        Before vertex added event. This event is fired before a vertex is added + to a graph.
        +
        See Also:
        Constant Field Values
        +
      • +
      + + + +
        +
      • +

        BEFORE_VERTEX_REMOVED

        +
        public static final int BEFORE_VERTEX_REMOVED
        +
        Before vertex removed event. This event is fired before a vertex is + removed from a graph.
        +
        See Also:
        Constant Field Values
        +
      • +
      + + + +
        +
      • +

        VERTEX_ADDED

        +
        public static final int VERTEX_ADDED
        +
        Vertex added event. This event is fired after a vertex is added to a + graph.
        +
        See Also:
        Constant Field Values
        +
      • +
      + + + +
        +
      • +

        VERTEX_REMOVED

        +
        public static final int VERTEX_REMOVED
        +
        Vertex removed event. This event is fired after a vertex is removed from + a graph.
        +
        See Also:
        Constant Field Values
        +
      • +
      + + + +
        +
      • +

        vertex

        +
        protected V vertex
        +
        The vertex that this event is related to.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        GraphVertexChangeEvent

        +
        public GraphVertexChangeEvent(Object eventSource,
        +                      int type,
        +                      V vertex)
        +
        Creates a new GraphVertexChangeEvent object.
        +
        Parameters:
        eventSource - the source of the event.
        type - the type of the event.
        vertex - the vertex that the event is related to.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getVertex

        +
        public V getVertex()
        +
        Returns the vertex that this event is related to.
        +
        Returns:
        the vertex that this event is related to.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/TraversalListener.html b/javadoc/org/jgrapht/event/TraversalListener.html new file mode 100644 index 0000000..85e7b67 --- /dev/null +++ b/javadoc/org/jgrapht/event/TraversalListener.html @@ -0,0 +1,303 @@ + + + + + + +TraversalListener (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.event
+

Interface TraversalListener<V,E>

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    TraversalListenerAdapter
    +
    +
    +
    +
    public interface TraversalListener<V,E>
    +
    A listener on graph iterator or on a graph traverser.
    +
    Since:
    +
    Jul 19, 2003
    +
    Author:
    +
    Barak Naveh
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        connectedComponentFinished

        +
        void connectedComponentFinished(ConnectedComponentTraversalEvent e)
        +
        Called to inform listeners that the traversal of the current connected + component has finished.
        +
        Parameters:
        e - the traversal event.
        +
      • +
      + + + +
        +
      • +

        connectedComponentStarted

        +
        void connectedComponentStarted(ConnectedComponentTraversalEvent e)
        +
        Called to inform listeners that a traversal of a new connected component + has started.
        +
        Parameters:
        e - the traversal event.
        +
      • +
      + + + +
        +
      • +

        edgeTraversed

        +
        void edgeTraversed(EdgeTraversalEvent<V,E> e)
        +
        Called to inform the listener that the specified edge have been visited + during the graph traversal. Depending on the traversal algorithm, edge + might be visited more than once.
        +
        Parameters:
        e - the edge traversal event.
        +
      • +
      + + + +
        +
      • +

        vertexTraversed

        +
        void vertexTraversed(VertexTraversalEvent<V> e)
        +
        Called to inform the listener that the specified vertex have been visited + during the graph traversal. Depending on the traversal algorithm, vertex + might be visited more than once.
        +
        Parameters:
        e - the vertex traversal event.
        +
      • +
      + + + +
        +
      • +

        vertexFinished

        +
        void vertexFinished(VertexTraversalEvent<V> e)
        +
        Called to inform the listener that the specified vertex have been + finished during the graph traversal. Exact meaning of "finish" is + algorithm-dependent; e.g. for DFS, it means that all vertices reachable + via the vertex have been visited as well.
        +
        Parameters:
        e - the vertex traversal event.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/TraversalListenerAdapter.html b/javadoc/org/jgrapht/event/TraversalListenerAdapter.html new file mode 100644 index 0000000..44b0525 --- /dev/null +++ b/javadoc/org/jgrapht/event/TraversalListenerAdapter.html @@ -0,0 +1,375 @@ + + + + + + +TraversalListenerAdapter (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.event
+

Class TraversalListenerAdapter<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    TraversalListener<V,E>
    +
    +
    +
    +
    public class TraversalListenerAdapter<V,E>
    +extends Object
    +implements TraversalListener<V,E>
    +
    An empty do-nothing implementation of the TraversalListener interface + used for subclasses.
    +
    Since:
    +
    Aug 6, 2003
    +
    Author:
    +
    Barak Naveh
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/VertexSetListener.html b/javadoc/org/jgrapht/event/VertexSetListener.html new file mode 100644 index 0000000..c5fa843 --- /dev/null +++ b/javadoc/org/jgrapht/event/VertexSetListener.html @@ -0,0 +1,251 @@ + + + + + + +VertexSetListener (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.event
+

Interface VertexSetListener<V>

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        vertexAdded

        +
        void vertexAdded(GraphVertexChangeEvent<V> e)
        +
        Notifies that a vertex has been added to the graph.
        +
        Parameters:
        e - the vertex event.
        +
      • +
      + + + +
        +
      • +

        vertexRemoved

        +
        void vertexRemoved(GraphVertexChangeEvent<V> e)
        +
        Notifies that a vertex has been removed from the graph.
        +
        Parameters:
        e - the vertex event.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/VertexTraversalEvent.html b/javadoc/org/jgrapht/event/VertexTraversalEvent.html new file mode 100644 index 0000000..bcaa66b --- /dev/null +++ b/javadoc/org/jgrapht/event/VertexTraversalEvent.html @@ -0,0 +1,338 @@ + + + + + + +VertexTraversalEvent (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.event
+

Class VertexTraversalEvent<V>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable
    +
    +
    +
    +
    public class VertexTraversalEvent<V>
    +extends EventObject
    +
    A traversal event for a graph vertex.
    +
    Since:
    +
    Aug 11, 2003
    +
    Author:
    +
    Barak Naveh
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        vertex

        +
        protected V vertex
        +
        The traversed vertex.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        VertexTraversalEvent

        +
        public VertexTraversalEvent(Object eventSource,
        +                    V vertex)
        +
        Creates a new VertexTraversalEvent.
        +
        Parameters:
        eventSource - the source of the event.
        vertex - the traversed vertex.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getVertex

        +
        public V getVertex()
        +
        Returns the traversed vertex.
        +
        Returns:
        the traversed vertex.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/class-use/ConnectedComponentTraversalEvent.html b/javadoc/org/jgrapht/event/class-use/ConnectedComponentTraversalEvent.html new file mode 100644 index 0000000..1029739 --- /dev/null +++ b/javadoc/org/jgrapht/event/class-use/ConnectedComponentTraversalEvent.html @@ -0,0 +1,212 @@ + + + + + + +Uses of Class org.jgrapht.event.ConnectedComponentTraversalEvent (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.event.ConnectedComponentTraversalEvent

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/class-use/EdgeTraversalEvent.html b/javadoc/org/jgrapht/event/class-use/EdgeTraversalEvent.html new file mode 100644 index 0000000..88f5f25 --- /dev/null +++ b/javadoc/org/jgrapht/event/class-use/EdgeTraversalEvent.html @@ -0,0 +1,193 @@ + + + + + + +Uses of Class org.jgrapht.event.EdgeTraversalEvent (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.event.EdgeTraversalEvent

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/class-use/GraphChangeEvent.html b/javadoc/org/jgrapht/event/class-use/GraphChangeEvent.html new file mode 100644 index 0000000..9262099 --- /dev/null +++ b/javadoc/org/jgrapht/event/class-use/GraphChangeEvent.html @@ -0,0 +1,170 @@ + + + + + + +Uses of Class org.jgrapht.event.GraphChangeEvent (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.event.GraphChangeEvent

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/class-use/GraphEdgeChangeEvent.html b/javadoc/org/jgrapht/event/class-use/GraphEdgeChangeEvent.html new file mode 100644 index 0000000..88a8450 --- /dev/null +++ b/javadoc/org/jgrapht/event/class-use/GraphEdgeChangeEvent.html @@ -0,0 +1,241 @@ + + + + + + +Uses of Class org.jgrapht.event.GraphEdgeChangeEvent (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.event.GraphEdgeChangeEvent

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/class-use/GraphListener.html b/javadoc/org/jgrapht/event/class-use/GraphListener.html new file mode 100644 index 0000000..6bd8b25 --- /dev/null +++ b/javadoc/org/jgrapht/event/class-use/GraphListener.html @@ -0,0 +1,261 @@ + + + + + + +Uses of Interface org.jgrapht.event.GraphListener (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.event.GraphListener

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/class-use/GraphVertexChangeEvent.html b/javadoc/org/jgrapht/event/class-use/GraphVertexChangeEvent.html new file mode 100644 index 0000000..714db8a --- /dev/null +++ b/javadoc/org/jgrapht/event/class-use/GraphVertexChangeEvent.html @@ -0,0 +1,241 @@ + + + + + + +Uses of Class org.jgrapht.event.GraphVertexChangeEvent (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.event.GraphVertexChangeEvent

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/class-use/TraversalListener.html b/javadoc/org/jgrapht/event/class-use/TraversalListener.html new file mode 100644 index 0000000..03714bb --- /dev/null +++ b/javadoc/org/jgrapht/event/class-use/TraversalListener.html @@ -0,0 +1,207 @@ + + + + + + +Uses of Interface org.jgrapht.event.TraversalListener (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.event.TraversalListener

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/class-use/TraversalListenerAdapter.html b/javadoc/org/jgrapht/event/class-use/TraversalListenerAdapter.html new file mode 100644 index 0000000..83462f6 --- /dev/null +++ b/javadoc/org/jgrapht/event/class-use/TraversalListenerAdapter.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.event.TraversalListenerAdapter (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.event.TraversalListenerAdapter

+
+
No usage of org.jgrapht.event.TraversalListenerAdapter
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/class-use/VertexSetListener.html b/javadoc/org/jgrapht/event/class-use/VertexSetListener.html new file mode 100644 index 0000000..c0f9b0a --- /dev/null +++ b/javadoc/org/jgrapht/event/class-use/VertexSetListener.html @@ -0,0 +1,289 @@ + + + + + + +Uses of Interface org.jgrapht.event.VertexSetListener (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.event.VertexSetListener

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/class-use/VertexTraversalEvent.html b/javadoc/org/jgrapht/event/class-use/VertexTraversalEvent.html new file mode 100644 index 0000000..daf6801 --- /dev/null +++ b/javadoc/org/jgrapht/event/class-use/VertexTraversalEvent.html @@ -0,0 +1,210 @@ + + + + + + +Uses of Class org.jgrapht.event.VertexTraversalEvent (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.event.VertexTraversalEvent

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/package-frame.html b/javadoc/org/jgrapht/event/package-frame.html new file mode 100644 index 0000000..6f02b98 --- /dev/null +++ b/javadoc/org/jgrapht/event/package-frame.html @@ -0,0 +1,32 @@ + + + + + + +org.jgrapht.event (JGraphT : a free Java graph library) + + + + +

org.jgrapht.event

+ + + diff --git a/javadoc/org/jgrapht/event/package-summary.html b/javadoc/org/jgrapht/event/package-summary.html new file mode 100644 index 0000000..d4ba8b4 --- /dev/null +++ b/javadoc/org/jgrapht/event/package-summary.html @@ -0,0 +1,216 @@ + + + + + + +org.jgrapht.event (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht.event

+
+
Event classes and listener interfaces, used to provide a change +notification mechanism on graph modification events.
+
+

See: Description

+
+
+ + + + +

Package org.jgrapht.event Description

+
Event classes and listener interfaces, used to provide a change +notification mechanism on graph modification events.
+
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/package-tree.html b/javadoc/org/jgrapht/event/package-tree.html new file mode 100644 index 0000000..5dbfd69 --- /dev/null +++ b/javadoc/org/jgrapht/event/package-tree.html @@ -0,0 +1,156 @@ + + + + + + +org.jgrapht.event Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht.event

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/event/package-use.html b/javadoc/org/jgrapht/event/package-use.html new file mode 100644 index 0000000..996333c --- /dev/null +++ b/javadoc/org/jgrapht/event/package-use.html @@ -0,0 +1,368 @@ + + + + + + +Uses of Package org.jgrapht.event (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht.event

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/GraphReader.html b/javadoc/org/jgrapht/experimental/GraphReader.html new file mode 100644 index 0000000..6f326c4 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/GraphReader.html @@ -0,0 +1,310 @@ + + + + + + +GraphReader (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental
+

Class GraphReader<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        generateGraph

        +
        public void generateGraph(Graph<V,E> target,
        +                 VertexFactory<V> vertexFactory,
        +                 Map<String,V> resultMap)
        +
        Generate a graph structure. The topology of the generated graph is + dependent on the implementation. For graphs in which not all vertices + share the same automorphism equivalence class, the generator may produce + a labeling indicating the roles played by generated elements. This is the + purpose of the resultMap parameter. For example, a generator for a wheel + graph would designate a hub vertex. Role names used as keys in resultMap + should be declared as public static final Strings by implementation + classes.
        +
        +
        Specified by:
        +
        generateGraph in interface GraphGenerator<V,E,V>
        +
        Parameters:
        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 © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/GraphSquare.html b/javadoc/org/jgrapht/experimental/GraphSquare.html new file mode 100644 index 0000000..3a12de2 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/GraphSquare.html @@ -0,0 +1,625 @@ + + + + + + +GraphSquare (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental
+

Class GraphSquare<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GraphSquare

        +
        public GraphSquare(Graph<V,E> g,
        +           boolean createLoops)
        +
        Constructor for GraphSquare.
        +
        Parameters:
        g - the graph of which a square is to be created.
        createLoops -
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        addEdge

        +
        public E addEdge(V sourceVertex,
        +        V targetVertex)
        +
        Description copied from interface: Graph
        +
        Creates a new edge in this graph, going from the source vertex to the + target vertex, and returns the created edge. Some graphs do not allow + edge-multiplicity. In such cases, if the graph already contains an edge + from the specified source to the specified target, than this method does + not change the graph and returns null. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        + +

        This method creates the new edge e using this graph's + EdgeFactory. For the new edge to be added e + must not be equal to any other edge the graph (even if the graph + allows edge-multiplicity). More formally, the graph must not contain any + edge e2 such that e2.equals(e). If such + e2 is found then the newly created edge e is + abandoned, the method leaves this graph unchanged returns + null.

        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Overrides:
        +
        addEdge in class AbstractBaseGraph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The newly created edge if added to the graph, otherwise + null.
        See Also:
        Graph.addEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        public boolean addEdge(V sourceVertex,
        +              V targetVertex,
        +              E e)
        +
        Description copied from interface: Graph
        +
        Adds the specified edge to this graph, going from the source vertex to + the target vertex. More formally, adds the specified edge, + e, to this graph if this graph contains no edge e2 + such that e2.equals(e). If this graph already contains such + an edge, the call leaves this graph unchanged and returns false. + Some graphs do not allow edge-multiplicity. In such cases, if the graph + already contains an edge from the specified source to the specified + target, than this method does not change the graph and returns + false. If the edge was added to the graph, returns + true. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Overrides:
        +
        addEdge in class AbstractBaseGraph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        e - edge to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + edge.
        See Also:
        Graph.addEdge(Object, Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        addVertex

        +
        public boolean addVertex(V v)
        +
        Description copied from interface: Graph
        +
        Adds the specified vertex to this graph if not already present. More + formally, adds the specified vertex, v, to this graph if + this graph contains no vertex u such that + u.equals(v). If this graph already contains such vertex, the call + leaves this graph unchanged and returns false. In combination + with the restriction on constructors, this ensures that graphs never + contain duplicate vertices.
        +
        +
        Specified by:
        +
        addVertex in interface Graph<V,E>
        +
        Overrides:
        +
        addVertex in class AbstractBaseGraph<V,E>
        +
        Parameters:
        v - vertex to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + vertex.
        See Also:
        Graph.addVertex(Object)
        +
      • +
      + + + +
        +
      • +

        removeAllEdges

        +
        public boolean removeAllEdges(Collection<? extends E> edges)
        +
        Description copied from interface: Graph
        +
        Removes all the edges in this graph that are also contained in the + specified edge collection. After this call returns, this graph will + contain no edges in common with the specified edges. This method will + invoke the Graph.removeEdge(Object) method.
        +
        +
        Specified by:
        +
        removeAllEdges in interface Graph<V,E>
        +
        Overrides:
        +
        removeAllEdges in class AbstractGraph<V,E>
        +
        Parameters:
        edges - edges to be removed from this graph.
        +
        Returns:
        true if this graph changed as a result of the call
        See Also:
        Graph.removeAllEdges(Collection)
        +
      • +
      + + + + + +
        +
      • +

        removeAllEdges

        +
        public Set<E> removeAllEdges(V sourceVertex,
        +                    V targetVertex)
        +
        Description copied from interface: Graph
        +
        Removes all the edges going from the specified source vertex to the + specified target vertex, and returns a set of all removed edges. Returns + null if any of the specified vertices does not exist in the + graph. If both vertices exist but no edge is found, returns an empty set. + This method will either invoke the Graph.removeEdge(Object) method, or + the Graph.removeEdge(Object, Object) method.
        +
        +
        Specified by:
        +
        removeAllEdges in interface Graph<V,E>
        +
        Overrides:
        +
        removeAllEdges in class AbstractGraph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        the removed edges, or null if either vertex is not + part of graph
        See Also:
        Graph.removeAllEdges(Object, Object)
        +
      • +
      + + + +
        +
      • +

        removeAllVertices

        +
        public boolean removeAllVertices(Collection<? extends V> vertices)
        +
        Description copied from interface: Graph
        +
        Removes all the vertices in this graph that are also contained in the + specified vertex collection. After this call returns, this graph will + contain no vertices in common with the specified vertices. This method + will invoke the Graph.removeVertex(Object) method.
        +
        +
        Specified by:
        +
        removeAllVertices in interface Graph<V,E>
        +
        Overrides:
        +
        removeAllVertices in class AbstractGraph<V,E>
        +
        Parameters:
        vertices - vertices to be removed from this graph.
        +
        Returns:
        true if this graph changed as a result of the call
        See Also:
        Graph.removeAllVertices(Collection)
        +
      • +
      + + + + + +
        +
      • +

        removeEdge

        +
        public boolean removeEdge(E e)
        +
        Description copied from interface: Graph
        +
        Removes the specified edge from the graph. Removes the specified edge + from this graph if it is present. More formally, removes an edge + e2 such that e2.equals(e), if the graph contains such + edge. Returns true if the graph contained the specified edge. + (The graph will not contain the specified edge once the call returns). + +

        If the specified edge is null returns + false.

        +
        +
        Specified by:
        +
        removeEdge in interface Graph<V,E>
        +
        Overrides:
        +
        removeEdge in class AbstractBaseGraph<V,E>
        +
        Parameters:
        e - edge to be removed from this graph, if present.
        +
        Returns:
        true if and only if the graph contained the + specified edge.
        See Also:
        Graph.removeEdge(Object)
        +
      • +
      + + + + + +
        +
      • +

        removeEdge

        +
        public E removeEdge(V sourceVertex,
        +           V targetVertex)
        +
        Description copied from interface: Graph
        +
        Removes an edge going from source vertex to target vertex, if such + vertices and such edge exist in this graph. Returns the edge if removed + or null otherwise.
        +
        +
        Specified by:
        +
        removeEdge in interface Graph<V,E>
        +
        Overrides:
        +
        removeEdge in class AbstractBaseGraph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The removed edge, or null if no edge removed.
        See Also:
        Graph.removeEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        removeVertex

        +
        public boolean removeVertex(V v)
        +
        Description copied from interface: Graph
        +
        Removes the specified vertex from this graph including all its touching + edges if present. More formally, if the graph contains a vertex + u such that u.equals(v), the call removes all edges + that touch u and then removes u itself. If no + such u is found, the call leaves the graph unchanged. + Returns true if the graph contained the specified vertex. (The + graph will not contain the specified vertex once the call returns). + +

        If the specified vertex is null returns + false.

        +
        +
        Specified by:
        +
        removeVertex in interface Graph<V,E>
        +
        Overrides:
        +
        removeVertex in class AbstractBaseGraph<V,E>
        +
        Parameters:
        v - vertex to be removed from this graph, if present.
        +
        Returns:
        true if the graph contained the specified vertex; + false otherwise.
        See Also:
        Graph.removeVertex(Object)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/GraphTests.html b/javadoc/org/jgrapht/experimental/GraphTests.html new file mode 100644 index 0000000..836b4b8 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/GraphTests.html @@ -0,0 +1,276 @@ + + + + + + +GraphTests (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental
+

Class GraphTests<V,E>

+
+
+ +
+
    +
  • +
    +
    +
    public final class GraphTests<V,E>
    +extends Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isEmpty

        +
        public static <V,E> boolean isEmpty(Graph<V,E> g)
        +
      • +
      + + + +
        +
      • +

        isComplete

        +
        public static <V,E> boolean isComplete(Graph<V,E> g)
        +
      • +
      + + + +
        +
      • +

        isConnected

        +
        public static <V,E> boolean isConnected(Graph<V,E> g)
        +
      • +
      + + + +
        +
      • +

        isTree

        +
        public static <V,E> boolean isTree(Graph<V,E> g)
        +
      • +
      + + + +
        +
      • +

        isBipartite

        +
        public static <V,E> boolean isBipartite(Graph<V,E> g)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/PartiteRandomGraphGenerator.html b/javadoc/org/jgrapht/experimental/PartiteRandomGraphGenerator.html new file mode 100644 index 0000000..9c7e30c --- /dev/null +++ b/javadoc/org/jgrapht/experimental/PartiteRandomGraphGenerator.html @@ -0,0 +1,314 @@ + + + + + + +PartiteRandomGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental
+

Class PartiteRandomGraphGenerator<V,E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.experimental.PartiteRandomGraphGenerator<V,E>
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    GraphGenerator<V,E,Object[]>
    +
    +
    +
    +
    public class PartiteRandomGraphGenerator<V,E>
    +extends Object
    +implements GraphGenerator<V,E,Object[]>
    +
    PartiteRandomGraphGenerator generates a partite uniform random + graph of any size. A partite uniform random graph contains edges chosen + independently uniformly at random from the set of possible edges between + partition classes.
    +
    Since:
    +
    Sep 13, 2004
    +
    Author:
    +
    Michael Behrisch
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/RandomGraphHelper.html b/javadoc/org/jgrapht/experimental/RandomGraphHelper.html new file mode 100644 index 0000000..f7868df --- /dev/null +++ b/javadoc/org/jgrapht/experimental/RandomGraphHelper.html @@ -0,0 +1,261 @@ + + + + + + +RandomGraphHelper (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental
+

Class RandomGraphHelper

+
+
+ +
+
    +
  • +
    +
    +
    public final class RandomGraphHelper
    +extends Object
    +
    UniformRandomGraphGenerator generates a uniform random graph + of any size. A uniform random graph contains edges chosen independently + uniformly at random from the set of all possible edges.
    +
    Since:
    +
    Sep 13, 2004
    +
    Author:
    +
    Michael Behrisch
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/UniformRandomGraphGenerator.html b/javadoc/org/jgrapht/experimental/UniformRandomGraphGenerator.html new file mode 100644 index 0000000..30b9fde --- /dev/null +++ b/javadoc/org/jgrapht/experimental/UniformRandomGraphGenerator.html @@ -0,0 +1,301 @@ + + + + + + +UniformRandomGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental
+

Class UniformRandomGraphGenerator

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.experimental.UniformRandomGraphGenerator
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    GraphGenerator
    +
    +
    +
    +
    public class UniformRandomGraphGenerator
    +extends Object
    +implements GraphGenerator
    +
    UniformRandomGraphGenerator generates a uniform random graph + of any size. A uniform random graph contains edges chosen independently + uniformly at random from the set of all possible edges.
    +
    Since:
    +
    Sep 13, 2004
    +
    Author:
    +
    Michael Behrisch
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UniformRandomGraphGenerator

        +
        public UniformRandomGraphGenerator(int numVertices,
        +                           int numEdges)
        +
        Construct a new UniformRandomGraphGenerator.
        +
        Parameters:
        numVertices - number of vertices to be generated
        numEdges - number of edges to be generated
        +
        Throws:
        +
        IllegalArgumentException
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        generateGraph

        +
        public void generateGraph(Graph target,
        +                 VertexFactory vertexFactory,
        +                 Map resultMap)
        +
        Description copied from interface: GraphGenerator
        +
        Generate a graph structure. The topology of the generated graph is + dependent on the implementation. For graphs in which not all vertices + share the same automorphism equivalence class, the generator may produce + a labeling indicating the roles played by generated elements. This is the + purpose of the resultMap parameter. For example, a generator for a wheel + graph would designate a hub vertex. Role names used as keys in resultMap + should be declared as public static final Strings by implementation + classes.
        +
        +
        Specified by:
        +
        generateGraph in interface GraphGenerator
        +
        Parameters:
        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)
        See Also:
        GraphGenerator.generateGraph(org.jgrapht.Graph<V, E>, org.jgrapht.VertexFactory<V>, java.util.Map<java.lang.String, T>)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/alg/ApproximationAlgorithm.html b/javadoc/org/jgrapht/experimental/alg/ApproximationAlgorithm.html new file mode 100644 index 0000000..587cbe1 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/alg/ApproximationAlgorithm.html @@ -0,0 +1,238 @@ + + + + + + +ApproximationAlgorithm (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental.alg
+

Interface ApproximationAlgorithm<ResultType,V>

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    GreedyColoring
    +
    +
    +
    +
    public interface ApproximationAlgorithm<ResultType,V>
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/alg/ExactAlgorithm.html b/javadoc/org/jgrapht/experimental/alg/ExactAlgorithm.html new file mode 100644 index 0000000..eb950fe --- /dev/null +++ b/javadoc/org/jgrapht/experimental/alg/ExactAlgorithm.html @@ -0,0 +1,212 @@ + + + + + + +ExactAlgorithm (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental.alg
+

Interface ExactAlgorithm<ResultType,V>

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    BrownBacktrackColoring
    +
    +
    +
    +
    public interface ExactAlgorithm<ResultType,V>
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/alg/IntArrayGraphAlgorithm.html b/javadoc/org/jgrapht/experimental/alg/IntArrayGraphAlgorithm.html new file mode 100644 index 0000000..c5516fe --- /dev/null +++ b/javadoc/org/jgrapht/experimental/alg/IntArrayGraphAlgorithm.html @@ -0,0 +1,299 @@ + + + + + + +IntArrayGraphAlgorithm (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental.alg
+

Class IntArrayGraphAlgorithm<V,E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.experimental.alg.IntArrayGraphAlgorithm<V,E>
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        _vertices

        +
        protected final List<V> _vertices
        +
      • +
      + + + +
        +
      • +

        _neighbors

        +
        protected final int[][] _neighbors
        +
      • +
      + + + +
        +
      • +

        _vertexToPos

        +
        protected final Map<V,Integer> _vertexToPos
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        IntArrayGraphAlgorithm

        +
        public IntArrayGraphAlgorithm(Graph<V,E> g)
        +
        Parameters:
        g -
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/alg/class-use/ApproximationAlgorithm.html b/javadoc/org/jgrapht/experimental/alg/class-use/ApproximationAlgorithm.html new file mode 100644 index 0000000..1485ec9 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/alg/class-use/ApproximationAlgorithm.html @@ -0,0 +1,157 @@ + + + + + + +Uses of Interface org.jgrapht.experimental.alg.ApproximationAlgorithm (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.experimental.alg.ApproximationAlgorithm

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/alg/class-use/ExactAlgorithm.html b/javadoc/org/jgrapht/experimental/alg/class-use/ExactAlgorithm.html new file mode 100644 index 0000000..0f9d49a --- /dev/null +++ b/javadoc/org/jgrapht/experimental/alg/class-use/ExactAlgorithm.html @@ -0,0 +1,157 @@ + + + + + + +Uses of Interface org.jgrapht.experimental.alg.ExactAlgorithm (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.experimental.alg.ExactAlgorithm

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/alg/class-use/IntArrayGraphAlgorithm.html b/javadoc/org/jgrapht/experimental/alg/class-use/IntArrayGraphAlgorithm.html new file mode 100644 index 0000000..1a7829d --- /dev/null +++ b/javadoc/org/jgrapht/experimental/alg/class-use/IntArrayGraphAlgorithm.html @@ -0,0 +1,161 @@ + + + + + + +Uses of Class org.jgrapht.experimental.alg.IntArrayGraphAlgorithm (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.experimental.alg.IntArrayGraphAlgorithm

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/alg/color/BrownBacktrackColoring.html b/javadoc/org/jgrapht/experimental/alg/color/BrownBacktrackColoring.html new file mode 100644 index 0000000..31c4b5c --- /dev/null +++ b/javadoc/org/jgrapht/experimental/alg/color/BrownBacktrackColoring.html @@ -0,0 +1,290 @@ + + + + + + +BrownBacktrackColoring (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental.alg.color
+

Class BrownBacktrackColoring<V,E>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/alg/color/GreedyColoring.html b/javadoc/org/jgrapht/experimental/alg/color/GreedyColoring.html new file mode 100644 index 0000000..54a1ef9 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/alg/color/GreedyColoring.html @@ -0,0 +1,408 @@ + + + + + + +GreedyColoring (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental.alg.color
+

Class GreedyColoring<V,E>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/alg/color/class-use/BrownBacktrackColoring.html b/javadoc/org/jgrapht/experimental/alg/color/class-use/BrownBacktrackColoring.html new file mode 100644 index 0000000..5578e21 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/alg/color/class-use/BrownBacktrackColoring.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.experimental.alg.color.BrownBacktrackColoring (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.experimental.alg.color.BrownBacktrackColoring

+
+
No usage of org.jgrapht.experimental.alg.color.BrownBacktrackColoring
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/alg/color/class-use/GreedyColoring.html b/javadoc/org/jgrapht/experimental/alg/color/class-use/GreedyColoring.html new file mode 100644 index 0000000..f7a4eb1 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/alg/color/class-use/GreedyColoring.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.experimental.alg.color.GreedyColoring (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.experimental.alg.color.GreedyColoring

+
+
No usage of org.jgrapht.experimental.alg.color.GreedyColoring
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/alg/color/package-frame.html b/javadoc/org/jgrapht/experimental/alg/color/package-frame.html new file mode 100644 index 0000000..67a81f4 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/alg/color/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +org.jgrapht.experimental.alg.color (JGraphT : a free Java graph library) + + + + +

org.jgrapht.experimental.alg.color

+ + + diff --git a/javadoc/org/jgrapht/experimental/alg/color/package-summary.html b/javadoc/org/jgrapht/experimental/alg/color/package-summary.html new file mode 100644 index 0000000..069883b --- /dev/null +++ b/javadoc/org/jgrapht/experimental/alg/color/package-summary.html @@ -0,0 +1,139 @@ + + + + + + +org.jgrapht.experimental.alg.color (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht.experimental.alg.color

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/alg/color/package-tree.html b/javadoc/org/jgrapht/experimental/alg/color/package-tree.html new file mode 100644 index 0000000..251daaa --- /dev/null +++ b/javadoc/org/jgrapht/experimental/alg/color/package-tree.html @@ -0,0 +1,135 @@ + + + + + + +org.jgrapht.experimental.alg.color Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht.experimental.alg.color

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/alg/color/package-use.html b/javadoc/org/jgrapht/experimental/alg/color/package-use.html new file mode 100644 index 0000000..f1ab621 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/alg/color/package-use.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Package org.jgrapht.experimental.alg.color (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht.experimental.alg.color

+
+
No usage of org.jgrapht.experimental.alg.color
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/alg/package-frame.html b/javadoc/org/jgrapht/experimental/alg/package-frame.html new file mode 100644 index 0000000..d27040c --- /dev/null +++ b/javadoc/org/jgrapht/experimental/alg/package-frame.html @@ -0,0 +1,25 @@ + + + + + + +org.jgrapht.experimental.alg (JGraphT : a free Java graph library) + + + + +

org.jgrapht.experimental.alg

+ + + diff --git a/javadoc/org/jgrapht/experimental/alg/package-summary.html b/javadoc/org/jgrapht/experimental/alg/package-summary.html new file mode 100644 index 0000000..dbd826e --- /dev/null +++ b/javadoc/org/jgrapht/experimental/alg/package-summary.html @@ -0,0 +1,154 @@ + + + + + + +org.jgrapht.experimental.alg (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht.experimental.alg

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/alg/package-tree.html b/javadoc/org/jgrapht/experimental/alg/package-tree.html new file mode 100644 index 0000000..24ac9db --- /dev/null +++ b/javadoc/org/jgrapht/experimental/alg/package-tree.html @@ -0,0 +1,135 @@ + + + + + + +org.jgrapht.experimental.alg Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht.experimental.alg

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/alg/package-use.html b/javadoc/org/jgrapht/experimental/alg/package-use.html new file mode 100644 index 0000000..f4aa888 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/alg/package-use.html @@ -0,0 +1,156 @@ + + + + + + +Uses of Package org.jgrapht.experimental.alg (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht.experimental.alg

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/class-use/GraphReader.html b/javadoc/org/jgrapht/experimental/class-use/GraphReader.html new file mode 100644 index 0000000..908d9c7 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/class-use/GraphReader.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.experimental.GraphReader (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.experimental.GraphReader

+
+
No usage of org.jgrapht.experimental.GraphReader
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/class-use/GraphSquare.html b/javadoc/org/jgrapht/experimental/class-use/GraphSquare.html new file mode 100644 index 0000000..fb7b785 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/class-use/GraphSquare.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.experimental.GraphSquare (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.experimental.GraphSquare

+
+
No usage of org.jgrapht.experimental.GraphSquare
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/class-use/GraphTests.html b/javadoc/org/jgrapht/experimental/class-use/GraphTests.html new file mode 100644 index 0000000..78c2988 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/class-use/GraphTests.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.experimental.GraphTests (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.experimental.GraphTests

+
+
No usage of org.jgrapht.experimental.GraphTests
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/class-use/PartiteRandomGraphGenerator.html b/javadoc/org/jgrapht/experimental/class-use/PartiteRandomGraphGenerator.html new file mode 100644 index 0000000..62b119c --- /dev/null +++ b/javadoc/org/jgrapht/experimental/class-use/PartiteRandomGraphGenerator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.experimental.PartiteRandomGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.experimental.PartiteRandomGraphGenerator

+
+
No usage of org.jgrapht.experimental.PartiteRandomGraphGenerator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/class-use/RandomGraphHelper.html b/javadoc/org/jgrapht/experimental/class-use/RandomGraphHelper.html new file mode 100644 index 0000000..671494c --- /dev/null +++ b/javadoc/org/jgrapht/experimental/class-use/RandomGraphHelper.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.experimental.RandomGraphHelper (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.experimental.RandomGraphHelper

+
+
No usage of org.jgrapht.experimental.RandomGraphHelper
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/class-use/UniformRandomGraphGenerator.html b/javadoc/org/jgrapht/experimental/class-use/UniformRandomGraphGenerator.html new file mode 100644 index 0000000..d330acf --- /dev/null +++ b/javadoc/org/jgrapht/experimental/class-use/UniformRandomGraphGenerator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.experimental.UniformRandomGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.experimental.UniformRandomGraphGenerator

+
+
No usage of org.jgrapht.experimental.UniformRandomGraphGenerator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.CycleFoundException.html b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.CycleFoundException.html new file mode 100644 index 0000000..c73727c --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.CycleFoundException.html @@ -0,0 +1,259 @@ + + + + + + +DirectedAcyclicGraph.CycleFoundException (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental.dag
+

Class DirectedAcyclicGraph.CycleFoundException

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DirectedAcyclicGraph.CycleFoundException

        +
        public DirectedAcyclicGraph.CycleFoundException()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.Region.html b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.Region.html new file mode 100644 index 0000000..6299e01 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.Region.html @@ -0,0 +1,336 @@ + + + + + + +DirectedAcyclicGraph.Region (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental.dag
+

Class DirectedAcyclicGraph.Region

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.experimental.dag.DirectedAcyclicGraph.Region
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable
    +
    +
    +
    Enclosing class:
    +
    DirectedAcyclicGraph<V,E>
    +
    +
    +
    +
    public static class DirectedAcyclicGraph.Region
    +extends Object
    +implements Serializable
    +
    Region is an *inclusive* range of indices. Esthetically displeasing, but + convenient for our purposes.
    +
    Author:
    +
    gilesp
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        start

        +
        public final int start
        +
      • +
      + + + +
        +
      • +

        finish

        +
        public final int finish
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DirectedAcyclicGraph.Region

        +
        public DirectedAcyclicGraph.Region(int start,
        +                           int finish)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getSize

        +
        public int getSize()
        +
      • +
      + + + +
        +
      • +

        isIn

        +
        public boolean isIn(int index)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.TopoOrderMapping.html b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.TopoOrderMapping.html new file mode 100644 index 0000000..05513e5 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.TopoOrderMapping.html @@ -0,0 +1,308 @@ + + + + + + +DirectedAcyclicGraph.TopoOrderMapping (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental.dag
+

Interface DirectedAcyclicGraph.TopoOrderMapping<V>

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      IntegergetTopologicalIndex(V vertex) +
      get the topological index of the given vertex.
      +
      VgetVertex(Integer index) +
      get the vertex at the given topological index.
      +
      voidputVertex(Integer index, + V vertex) +
      add a vertex at the given topological index.
      +
      voidremoveAllVertices() +
      remove all vertices from the topological ordering
      +
      IntegerremoveVertex(V vertex) +
      remove the given vertex from the topological ordering
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        putVertex

        +
        void putVertex(Integer index,
        +             V vertex)
        +
        add a vertex at the given topological index.
        +
        Parameters:
        index -
        vertex -
        +
      • +
      + + + +
        +
      • +

        getVertex

        +
        V getVertex(Integer index)
        +
        get the vertex at the given topological index.
        +
        Parameters:
        index -
        +
        Returns:
        vertex
        +
      • +
      + + + + + +
        +
      • +

        getTopologicalIndex

        +
        Integer getTopologicalIndex(V vertex)
        +
        get the topological index of the given vertex.
        +
        Parameters:
        vertex -
        +
        Returns:
        the index that the vertex is at, or null if the vertex isn't + in the topological ordering
        +
      • +
      + + + + + +
        +
      • +

        removeVertex

        +
        Integer removeVertex(V vertex)
        +
        remove the given vertex from the topological ordering
        +
        Parameters:
        vertex -
        +
        Returns:
        the index that the vertex was at, or null if the vertex + wasn't in the topological ordering
        +
      • +
      + + + +
        +
      • +

        removeAllVertices

        +
        void removeAllVertices()
        +
        remove all vertices from the topological ordering
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.TopoOrderMappingFactory.html b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.TopoOrderMappingFactory.html new file mode 100644 index 0000000..3a7fe24 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.TopoOrderMappingFactory.html @@ -0,0 +1,216 @@ + + + + + + +DirectedAcyclicGraph.TopoOrderMappingFactory (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental.dag
+

Interface DirectedAcyclicGraph.TopoOrderMappingFactory<V>

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.TopoVertexMap.html b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.TopoVertexMap.html new file mode 100644 index 0000000..a5ee1f3 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.TopoVertexMap.html @@ -0,0 +1,391 @@ + + + + + + +DirectedAcyclicGraph.TopoVertexMap (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental.dag
+

Class DirectedAcyclicGraph.TopoVertexMap

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoVertexMap
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.Visited.html b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.Visited.html new file mode 100644 index 0000000..3f7f8b4 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.Visited.html @@ -0,0 +1,264 @@ + + + + + + +DirectedAcyclicGraph.Visited (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental.dag
+

Interface DirectedAcyclicGraph.Visited

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidclearVisited(int index) +
      Clear the visited state of the given topological index
      +
      booleangetVisited(int index) +
      has the given topological index been visited?
      +
      voidsetVisited(int index) +
      mark the given topological index as visited
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setVisited

        +
        void setVisited(int index)
        +
        mark the given topological index as visited
        +
        Parameters:
        index - the topological index
        +
      • +
      + + + +
        +
      • +

        getVisited

        +
        boolean getVisited(int index)
        +
        has the given topological index been visited?
        +
        Parameters:
        index - the topological index
        +
      • +
      + + + +
        +
      • +

        clearVisited

        +
        void clearVisited(int index)
        +                  throws UnsupportedOperationException
        +
        Clear the visited state of the given topological index
        +
        Parameters:
        index -
        +
        Throws:
        +
        UnsupportedOperationException - if the implementation doesn't + support (or doesn't need) clearance. For example, if the factory + vends a new instance every time, it is a waste of cycles to clear the + state after the search of the Affected Region is done, so an + UnsupportedOperationException *should* be thrown.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.VisitedArrayImpl.html b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.VisitedArrayImpl.html new file mode 100644 index 0000000..e49df37 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.VisitedArrayImpl.html @@ -0,0 +1,361 @@ + + + + + + +DirectedAcyclicGraph.VisitedArrayImpl (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental.dag
+

Class DirectedAcyclicGraph.VisitedArrayImpl

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayImpl
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.VisitedArrayListImpl.html b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.VisitedArrayListImpl.html new file mode 100644 index 0000000..256140e --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.VisitedArrayListImpl.html @@ -0,0 +1,348 @@ + + + + + + +DirectedAcyclicGraph.VisitedArrayListImpl (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental.dag
+

Class DirectedAcyclicGraph.VisitedArrayListImpl

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayListImpl
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.VisitedBitSetImpl.html b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.VisitedBitSetImpl.html new file mode 100644 index 0000000..36cef9a --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.VisitedBitSetImpl.html @@ -0,0 +1,345 @@ + + + + + + +DirectedAcyclicGraph.VisitedBitSetImpl (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental.dag
+

Class DirectedAcyclicGraph.VisitedBitSetImpl

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedBitSetImpl
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.VisitedFactory.html b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.VisitedFactory.html new file mode 100644 index 0000000..fb9649a --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.VisitedFactory.html @@ -0,0 +1,224 @@ + + + + + + +DirectedAcyclicGraph.VisitedFactory (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental.dag
+

Interface DirectedAcyclicGraph.VisitedFactory

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.VisitedHashSetImpl.html b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.VisitedHashSetImpl.html new file mode 100644 index 0000000..078406b --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.VisitedHashSetImpl.html @@ -0,0 +1,347 @@ + + + + + + +DirectedAcyclicGraph.VisitedHashSetImpl (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental.dag
+

Class DirectedAcyclicGraph.VisitedHashSetImpl

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedHashSetImpl
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.html b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.html new file mode 100644 index 0000000..72d50f1 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/DirectedAcyclicGraph.html @@ -0,0 +1,716 @@ + + + + + + +DirectedAcyclicGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.experimental.dag
+

Class DirectedAcyclicGraph<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, Cloneable, DirectedGraph<V,E>, Graph<V,E>
    +
    +
    +
    +
    public class DirectedAcyclicGraph<V,E>
    +extends SimpleDirectedGraph<V,E>
    +

    DirectedAcyclicGraph implements a DAG that can be modified (vertices & + edges added and removed), is guaranteed to remain acyclic, and provides fast + topological order iteration.

    + +

    This is done using a dynamic topological sort which is based on the + algorithm PK described in "D. Pearce & P. Kelly, 2007: A Dynamic + Topological Sort Algorithm for Directed Acyclic Graphs", (see Paper or ACM link for details). +

    + +

    The implementation differs from the algorithm specified in the above paper + in some ways, perhaps most notably in that the topological ordering is stored + by default using two HashMaps, which will have some effects on runtime, but + also allows for vertex addition and removal, and other operations which are + helpful for manipulating or combining DAGs. This storage mechanism is + pluggable for subclassers.

    + +

    This class makes no claims to thread safety, and concurrent usage from + multiple threads will produce undefined results.

    +
    Author:
    +
    Peter Giles, gilesp@u.washington.edu
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DirectedAcyclicGraph

        +
        public DirectedAcyclicGraph(Class<? extends E> arg0)
        +
      • +
      + + + +
        +
      • +

        DirectedAcyclicGraph

        +
        public DirectedAcyclicGraph(EdgeFactory<V,E> ef)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        iterator

        +
        public Iterator<V> iterator()
        +
        iterator will traverse the vertices in topological order, meaning that + for a directed graph G = (V,E), if there exists a path from vertex va to + vertex vb then va is guaranteed to come before vertex vb in the iteration + order.
        +
        Returns:
        an iterator that will traverse the graph in topological order
        +
      • +
      + + + + + +
        +
      • +

        addVertex

        +
        public boolean addVertex(V v)
        +
        adds the vertex if it wasn't already in the graph, and puts it at the top + of the internal topological vertex ordering
        +
        +
        Specified by:
        +
        addVertex in interface Graph<V,E>
        +
        Overrides:
        +
        addVertex in class AbstractBaseGraph<V,E>
        +
        Parameters:
        v - vertex to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + vertex.
        See Also:
        Graph.addVertex(Object)
        +
      • +
      + + + + + +
        +
      • +

        addVertex

        +
        public boolean addVertex(V v,
        +                boolean addToTop)
        +
        adds the vertex if it wasn't already in the graph, and puts it either at + the top or the bottom of the topological ordering, depending on the value + of addToTop. This may provide useful optimizations for merging + DirectedAcyclicGraphs that become connected.
        +
        Parameters:
        v -
        addToTop -
        +
        Returns:
        whether new vertex was added
        +
      • +
      + + + + + + + + + + + + + + + + + +
        +
      • +

        addDagEdge

        +
        public boolean addDagEdge(V fromVertex,
        +                 V toVertex,
        +                 E e)
        +                   throws DirectedAcyclicGraph.CycleFoundException
        +

        Adds the given edge and updates the internal topological order for + consistency IFF + +

          +
        • the given edge is not already a member of the graph +
        • there is not already an edge (fromVertex, toVertex) in the graph +
        • the edge does not induce a cycle in the graph +
        +
        Returns:
        true if the edge was added to the graph
        +
        Throws:
        +
        DirectedAcyclicGraph.CycleFoundException - if adding an edge (fromVertex, toVertex) to + the graph would induce a cycle.
        See Also:
        Graph.addEdge(Object, Object, Object)
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        removeVertex

        +
        public boolean removeVertex(V v)
        +
        Description copied from interface: Graph
        +
        Removes the specified vertex from this graph including all its touching + edges if present. More formally, if the graph contains a vertex + u such that u.equals(v), the call removes all edges + that touch u and then removes u itself. If no + such u is found, the call leaves the graph unchanged. + Returns true if the graph contained the specified vertex. (The + graph will not contain the specified vertex once the call returns). + +

        If the specified vertex is null returns + false.

        +
        +
        Specified by:
        +
        removeVertex in interface Graph<V,E>
        +
        Overrides:
        +
        removeVertex in class AbstractBaseGraph<V,E>
        +
        Parameters:
        v - vertex to be removed from this graph, if present.
        +
        Returns:
        true if the graph contained the specified vertex; + false otherwise.
        See Also:
        Graph.removeVertex(Object)
        +
      • +
      + + + +
        +
      • +

        removeAllVertices

        +
        public boolean removeAllVertices(Collection<? extends V> arg0)
        +
        Description copied from interface: Graph
        +
        Removes all the vertices in this graph that are also contained in the + specified vertex collection. After this call returns, this graph will + contain no vertices in common with the specified vertices. This method + will invoke the Graph.removeVertex(Object) method.
        +
        +
        Specified by:
        +
        removeAllVertices in interface Graph<V,E>
        +
        Overrides:
        +
        removeAllVertices in class AbstractGraph<V,E>
        +
        Parameters:
        arg0 - vertices to be removed from this graph.
        +
        Returns:
        true if this graph changed as a result of the call
        See Also:
        Graph.removeAllVertices(Collection)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.CycleFoundException.html b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.CycleFoundException.html new file mode 100644 index 0000000..2a346b3 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.CycleFoundException.html @@ -0,0 +1,181 @@ + + + + + + +Uses of Class org.jgrapht.experimental.dag.DirectedAcyclicGraph.CycleFoundException (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.experimental.dag.DirectedAcyclicGraph.CycleFoundException

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.Region.html b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.Region.html new file mode 100644 index 0000000..60e8d05 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.Region.html @@ -0,0 +1,184 @@ + + + + + + +Uses of Class org.jgrapht.experimental.dag.DirectedAcyclicGraph.Region (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.experimental.dag.DirectedAcyclicGraph.Region

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.TopoOrderMapping.html b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.TopoOrderMapping.html new file mode 100644 index 0000000..e597305 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.TopoOrderMapping.html @@ -0,0 +1,177 @@ + + + + + + +Uses of Interface org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoOrderMapping (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoOrderMapping

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.TopoOrderMappingFactory.html b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.TopoOrderMappingFactory.html new file mode 100644 index 0000000..27f9be3 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.TopoOrderMappingFactory.html @@ -0,0 +1,160 @@ + + + + + + +Uses of Interface org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoOrderMappingFactory (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoOrderMappingFactory

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.TopoVertexMap.html b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.TopoVertexMap.html new file mode 100644 index 0000000..c1bb34f --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.TopoVertexMap.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoVertexMap (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoVertexMap

+
+
No usage of org.jgrapht.experimental.dag.DirectedAcyclicGraph.TopoVertexMap
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.Visited.html b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.Visited.html new file mode 100644 index 0000000..ed76403 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.Visited.html @@ -0,0 +1,210 @@ + + + + + + +Uses of Interface org.jgrapht.experimental.dag.DirectedAcyclicGraph.Visited (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.experimental.dag.DirectedAcyclicGraph.Visited

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.VisitedArrayImpl.html b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.VisitedArrayImpl.html new file mode 100644 index 0000000..4a346f7 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.VisitedArrayImpl.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayImpl (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayImpl

+
+
No usage of org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayImpl
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.VisitedArrayListImpl.html b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.VisitedArrayListImpl.html new file mode 100644 index 0000000..680f00d --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.VisitedArrayListImpl.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayListImpl (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayListImpl

+
+
No usage of org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedArrayListImpl
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.VisitedBitSetImpl.html b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.VisitedBitSetImpl.html new file mode 100644 index 0000000..2a1e505 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.VisitedBitSetImpl.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedBitSetImpl (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedBitSetImpl

+
+
No usage of org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedBitSetImpl
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.VisitedFactory.html b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.VisitedFactory.html new file mode 100644 index 0000000..1a8e619 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.VisitedFactory.html @@ -0,0 +1,181 @@ + + + + + + +Uses of Interface org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedFactory (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedFactory

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.VisitedHashSetImpl.html b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.VisitedHashSetImpl.html new file mode 100644 index 0000000..30c00b3 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.VisitedHashSetImpl.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedHashSetImpl (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedHashSetImpl

+
+
No usage of org.jgrapht.experimental.dag.DirectedAcyclicGraph.VisitedHashSetImpl
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.html b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.html new file mode 100644 index 0000000..68eba4e --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/class-use/DirectedAcyclicGraph.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.experimental.dag.DirectedAcyclicGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.experimental.dag.DirectedAcyclicGraph

+
+
No usage of org.jgrapht.experimental.dag.DirectedAcyclicGraph
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/package-frame.html b/javadoc/org/jgrapht/experimental/dag/package-frame.html new file mode 100644 index 0000000..2c1ce0e --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/package-frame.html @@ -0,0 +1,36 @@ + + + + + + +org.jgrapht.experimental.dag (JGraphT : a free Java graph library) + + + + +

org.jgrapht.experimental.dag

+ + + diff --git a/javadoc/org/jgrapht/experimental/dag/package-summary.html b/javadoc/org/jgrapht/experimental/dag/package-summary.html new file mode 100644 index 0000000..8d3b380 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/package-summary.html @@ -0,0 +1,225 @@ + + + + + + +org.jgrapht.experimental.dag (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht.experimental.dag

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/package-tree.html b/javadoc/org/jgrapht/experimental/dag/package-tree.html new file mode 100644 index 0000000..5596ec6 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/package-tree.html @@ -0,0 +1,168 @@ + + + + + + +org.jgrapht.experimental.dag Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht.experimental.dag

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/dag/package-use.html b/javadoc/org/jgrapht/experimental/dag/package-use.html new file mode 100644 index 0000000..e2eef9a --- /dev/null +++ b/javadoc/org/jgrapht/experimental/dag/package-use.html @@ -0,0 +1,177 @@ + + + + + + +Uses of Package org.jgrapht.experimental.dag (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht.experimental.dag

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/package-frame.html b/javadoc/org/jgrapht/experimental/package-frame.html new file mode 100644 index 0000000..1c51754 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/package-frame.html @@ -0,0 +1,25 @@ + + + + + + +org.jgrapht.experimental (JGraphT : a free Java graph library) + + + + +

org.jgrapht.experimental

+ + + diff --git a/javadoc/org/jgrapht/experimental/package-summary.html b/javadoc/org/jgrapht/experimental/package-summary.html new file mode 100644 index 0000000..3b49ba5 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/package-summary.html @@ -0,0 +1,184 @@ + + + + + + +org.jgrapht.experimental (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht.experimental

+
+
A package that contains experimental work or work-in-progress that +is not yet ready to be included in a release.
+
+

See: Description

+
+
+ + + + +

Package org.jgrapht.experimental Description

+

A package that contains experimental work or work-in-progress that +is not yet ready to be included in a release. It may contain classes +that are: incomplete, not yet documented, have not yet reached a +satisfying form, etc.

+ +

The only requirement for classes included here is to compile.

+
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/package-tree.html b/javadoc/org/jgrapht/experimental/package-tree.html new file mode 100644 index 0000000..6b0e7ba --- /dev/null +++ b/javadoc/org/jgrapht/experimental/package-tree.html @@ -0,0 +1,143 @@ + + + + + + +org.jgrapht.experimental Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht.experimental

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/experimental/package-use.html b/javadoc/org/jgrapht/experimental/package-use.html new file mode 100644 index 0000000..77b0264 --- /dev/null +++ b/javadoc/org/jgrapht/experimental/package-use.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Package org.jgrapht.experimental (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht.experimental

+
+
No usage of org.jgrapht.experimental
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/ComponentAttributeProvider.html b/javadoc/org/jgrapht/ext/ComponentAttributeProvider.html new file mode 100644 index 0000000..ab07397 --- /dev/null +++ b/javadoc/org/jgrapht/ext/ComponentAttributeProvider.html @@ -0,0 +1,222 @@ + + + + + + +ComponentAttributeProvider (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Interface ComponentAttributeProvider<T>

+
+
+
+
    +
  • +
    +
    +
    public interface ComponentAttributeProvider<T>
    +
    Provides display attributes for vertices and/or edges in a graph.
    +
    Version:
    +
    $Id$
    +
    Author:
    +
    John Sichi
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      Map<String,String>getComponentAttributes(T component) +
      Returns a set of attribute key/value pairs for a vertex or edge.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getComponentAttributes

        +
        Map<String,String> getComponentAttributes(T component)
        +
        Returns a set of attribute key/value pairs for a vertex or edge. If order + is important in the output, be sure to use an order-deterministic map + implementation.
        +
        Parameters:
        component - vertex or edge for which attributes are to be obtained
        +
        Returns:
        key/value pairs, or null if no attributes should be supplied
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/DOTExporter.html b/javadoc/org/jgrapht/ext/DOTExporter.html new file mode 100644 index 0000000..b7b8f01 --- /dev/null +++ b/javadoc/org/jgrapht/ext/DOTExporter.html @@ -0,0 +1,333 @@ + + + + + + +DOTExporter (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Class DOTExporter<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DOTExporter

        +
        public DOTExporter()
        +
        Constructs a new DOTExporter object with an integer name provider for the + vertex IDs and null providers for the vertex and edge labels.
        +
      • +
      + + + +
        +
      • +

        DOTExporter

        +
        public DOTExporter(VertexNameProvider<V> vertexIDProvider,
        +           VertexNameProvider<V> vertexLabelProvider,
        +           EdgeNameProvider<E> edgeLabelProvider)
        +
        Constructs a new DOTExporter object with the given ID and label + providers.
        +
        Parameters:
        vertexIDProvider - for generating vertex IDs. Must not be null.
        vertexLabelProvider - for generating vertex labels. If null, vertex + labels will not be written to the file.
        edgeLabelProvider - for generating edge labels. If null, edge labels + will not be written to the file.
        +
      • +
      + + + +
        +
      • +

        DOTExporter

        +
        public DOTExporter(VertexNameProvider<V> vertexIDProvider,
        +           VertexNameProvider<V> vertexLabelProvider,
        +           EdgeNameProvider<E> edgeLabelProvider,
        +           ComponentAttributeProvider<V> vertexAttributeProvider,
        +           ComponentAttributeProvider<E> edgeAttributeProvider)
        +
        Constructs a new DOTExporter object with the given ID, label, and + attribute providers. Note that if a label provider conflicts with a + label-supplying attribute provider, the label provider is given + precedence.
        +
        Parameters:
        vertexIDProvider - for generating vertex IDs. Must not be null.
        vertexLabelProvider - for generating vertex labels. If null, vertex + labels will not be written to the file (unless an attribute provider is + supplied which also supplies labels).
        edgeLabelProvider - for generating edge labels. If null, edge labels + will not be written to the file.
        vertexAttributeProvider - for generating vertex attributes. If null, + vertex attributes will not be written to the file.
        edgeAttributeProvider - for generating edge attributes. If null, + edge attributes will not be written to the file.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        export

        +
        public void export(Writer writer,
        +          Graph<V,E> g)
        +
        Exports a graph into a plain text file in DOT format.
        +
        Parameters:
        writer - the writer to which the graph to be exported
        g - the graph to be exported
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/DOTImporter.html b/javadoc/org/jgrapht/ext/DOTImporter.html new file mode 100644 index 0000000..979b7dc --- /dev/null +++ b/javadoc/org/jgrapht/ext/DOTImporter.html @@ -0,0 +1,348 @@ + + + + + + +DOTImporter (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Class DOTImporter<V,E>

+
+
+ +
+
    +
  • +
    +
    +
    public class DOTImporter<V,E>
    +extends Object
    +
    Imports a graph from a DOT file. + +

    For a description of the format see + http://en.wikipedia.org/wiki/DOT_language and + http://www.graphviz.org/doc/info/lang.html

    + + state machine description (In dot format naturally): + +
    
    +
    + digraph G {
    +    1 [label="start" description="Entry point"];
    +    2 [label="header" description="Processing The header"];
    +    3 [label="next" description="work out what the type of the next node is"];
    +    4 [label="edge" description="process an edge entry"];
    +    5 [label="edge_quotes" description="process a section of an edge in quotes"];
    +    6 [label="node" description="process a node entry"];
    +    7 [label="node_quotes" description="process a section of a node in quotes"];
    +    8 [label="line_comment" description="process and ignore a line comment"];
    +    9 [label="block_comment" description="process and ignore a block comment"];
    +    10 [label="done" description="exit point"];
    +    1 -> 2;
    +    2 -> 3;
    +    3 -> 4;
    +    4 -> 3;
    +    4 -> 5;
    +    5 -> 4;
    +    3 -> 6;
    +    6 -> 3;
    +    6 -> 7;
    +    7 -> 6;
    +    3 -> 10;
    +    2 -> 8;
    +    8 -> 2;
    +    2 -> 9;
    +    9 -> 2;
    +    3 -> 8;
    +    8 -> 3;
    +    3 -> 9;
    +    9 -> 3;
    +    4 -> 8;
    +    8 -> 4;
    +    4 -> 9;
    +    9 -> 4;
    +    6 -> 8;
    +    8 -> 6;
    +    6 -> 9;
    +    9 -> 6;
    + }
    +
    + 
    +
    Author:
    +
    Wil Selwood
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DOTImporter

        +
        public DOTImporter(VertexProvider<V> vertexProvider,
        +           EdgeProvider<V,E> edgeProvider)
        +
        Constructs a new DOTImporter with the given providers
        +
        Parameters:
        vertexProvider - Provider to create a vertex
        edgeProvider - Provider to create an edge
        +
      • +
      + + + +
        +
      • +

        DOTImporter

        +
        public DOTImporter(VertexProvider<V> vertexProvider,
        +           EdgeProvider<V,E> edgeProvider,
        +           VertexUpdater<V> updater)
        +
        Constructs a new DOTImporter with the given providers
        +
        Parameters:
        vertexProvider - Provider to create a vertex
        edgeProvider - Provider to create an edge
        updater - Method used to update an existing Vertex
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        read

        +
        public void read(String input,
        +        AbstractBaseGraph<V,E> graph)
        +          throws ImportException
        +
        Read a dot formatted string and populate the provided graph.
        +
        Parameters:
        input - the content of a dot file.
        graph - the graph to update.
        +
        Throws:
        +
        ImportException - if there is a problem parsing the file.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/EdgeNameProvider.html b/javadoc/org/jgrapht/ext/EdgeNameProvider.html new file mode 100644 index 0000000..7ec14b8 --- /dev/null +++ b/javadoc/org/jgrapht/ext/EdgeNameProvider.html @@ -0,0 +1,221 @@ + + + + + + +EdgeNameProvider (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Interface EdgeNameProvider<E>

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      StringgetEdgeName(E edge) +
      Returns a unique name for an edge.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getEdgeName

        +
        String getEdgeName(E edge)
        +
        Returns a unique name for an edge. This is useful when exporting a graph, + as it ensures that all edges are assigned simple, consistent names.
        +
        Parameters:
        edge - the edge to be named
        +
        Returns:
        the name of the edge
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/EdgeProvider.html b/javadoc/org/jgrapht/ext/EdgeProvider.html new file mode 100644 index 0000000..53b1670 --- /dev/null +++ b/javadoc/org/jgrapht/ext/EdgeProvider.html @@ -0,0 +1,223 @@ + + + + + + +EdgeProvider (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Interface EdgeProvider<V,E>

+
+
+
+
    +
  • +
    Type Parameters:
    V - the type of vertex being linked.
    E - the type of edge being created.
    +
    +
    +
    public interface EdgeProvider<V,E>
    +
    Defines a provider of edges of type E
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      EbuildEdge(V from, + V to, + String label, + Map<String,String> attributes) +
      Construct an edge
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        buildEdge

        +
        E buildEdge(V from,
        +          V to,
        +          String label,
        +          Map<String,String> attributes)
        +
        Construct an edge
        +
        Parameters:
        from - the source vertex
        to - the target vertex
        label - the label of the edge.
        attributes - extra attributes for the edge.
        +
        Returns:
        the edge.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/GmlExporter.html b/javadoc/org/jgrapht/ext/GmlExporter.html new file mode 100644 index 0000000..fc0b62f --- /dev/null +++ b/javadoc/org/jgrapht/ext/GmlExporter.html @@ -0,0 +1,454 @@ + + + + + + +GmlExporter (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Class GmlExporter<V,E>

+
+
+ +
+
    +
  • +
    +
    +
    public class GmlExporter<V,E>
    +extends Object
    +
    Exports a graph into a GML file (Graph Modelling Language). + +

    For a description of the format see + http://www.infosun.fmi.uni-passau.de/Graphlet/GML/.

    + +

    The objects associated with vertices and edges are exported as labels + using their toString() implementation. See the setPrintLabels(Integer) method. The default behavior is to export no label + information.

    +
    Author:
    +
    Dimitrios Michail
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        PRINT_NO_LABELS

        +
        public static final Integer PRINT_NO_LABELS
        +
        Option to export no vertex or edge labels.
        +
      • +
      + + + +
        +
      • +

        PRINT_EDGE_LABELS

        +
        public static final Integer PRINT_EDGE_LABELS
        +
        Option to export only the edge labels.
        +
      • +
      + + + +
        +
      • +

        PRINT_EDGE_VERTEX_LABELS

        +
        public static final Integer PRINT_EDGE_VERTEX_LABELS
        +
        Option to export both edge and vertex labels.
        +
      • +
      + + + +
        +
      • +

        PRINT_VERTEX_LABELS

        +
        public static final Integer PRINT_VERTEX_LABELS
        +
        Option to export only the vertex labels.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GmlExporter

        +
        public GmlExporter()
        +
        Creates a new GmlExporter object with integer name providers for the + vertex and edge IDs and null providers for the vertex and edge labels.
        +
      • +
      + + + +
        +
      • +

        GmlExporter

        +
        public GmlExporter(VertexNameProvider<V> vertexIDProvider,
        +           VertexNameProvider<V> vertexLabelProvider,
        +           EdgeNameProvider<E> edgeIDProvider,
        +           EdgeNameProvider<E> edgeLabelProvider)
        +
        Constructs a new GmlExporter object with the given ID and label + providers.
        +
        Parameters:
        vertexIDProvider - for generating vertex IDs. Must not be null.
        vertexLabelProvider - for generating vertex labels. If null, vertex + labels will be generated using the toString() method of the vertex + object.
        edgeIDProvider - for generating vertex IDs. Must not be null.
        edgeLabelProvider - for generating edge labels. If null, edge labels + will be generated using the toString() method of the edge object.
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/GraphMLExporter.html b/javadoc/org/jgrapht/ext/GraphMLExporter.html new file mode 100644 index 0000000..a3d5c03 --- /dev/null +++ b/javadoc/org/jgrapht/ext/GraphMLExporter.html @@ -0,0 +1,309 @@ + + + + + + +GraphMLExporter (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Class GraphMLExporter<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GraphMLExporter

        +
        public GraphMLExporter()
        +
        Constructs a new GraphMLExporter object with integer name providers for + the vertex and edge IDs and null providers for the vertex and edge + labels.
        +
      • +
      + + + +
        +
      • +

        GraphMLExporter

        +
        public GraphMLExporter(VertexNameProvider<V> vertexIDProvider,
        +               VertexNameProvider<V> vertexLabelProvider,
        +               EdgeNameProvider<E> edgeIDProvider,
        +               EdgeNameProvider<E> edgeLabelProvider)
        +
        Constructs a new GraphMLExporter object with the given ID and label + providers.
        +
        Parameters:
        vertexIDProvider - for generating vertex IDs. Must not be null.
        vertexLabelProvider - for generating vertex labels. If null, vertex + labels will not be written to the file.
        edgeIDProvider - for generating vertex IDs. Must not be null.
        edgeLabelProvider - for generating edge labels. If null, edge labels + will not be written to the file.
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/ImportException.html b/javadoc/org/jgrapht/ext/ImportException.html new file mode 100644 index 0000000..e75aaf4 --- /dev/null +++ b/javadoc/org/jgrapht/ext/ImportException.html @@ -0,0 +1,267 @@ + + + + + + +ImportException (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Class ImportException

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ImportException

        +
        public ImportException(String message)
        +
      • +
      + + + +
        +
      • +

        ImportException

        +
        public ImportException(String message,
        +               Throwable cause)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/IntegerEdgeNameProvider.html b/javadoc/org/jgrapht/ext/IntegerEdgeNameProvider.html new file mode 100644 index 0000000..c877d54 --- /dev/null +++ b/javadoc/org/jgrapht/ext/IntegerEdgeNameProvider.html @@ -0,0 +1,295 @@ + + + + + + +IntegerEdgeNameProvider (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Class IntegerEdgeNameProvider<E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    EdgeNameProvider<E>
    +
    +
    +
    +
    public class IntegerEdgeNameProvider<E>
    +extends Object
    +implements EdgeNameProvider<E>
    +
    Assigns a unique integer to represent each edge. Each instance of + IntegerEdgeNameProvider maintains an internal map between every edge it has + ever seen and the unique integer representing that edge. As a result it is + probably desirable to have a separate instance for each distinct graph.
    +
    Author:
    +
    Trevor Harmon
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        IntegerEdgeNameProvider

        +
        public IntegerEdgeNameProvider()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        clear

        +
        public void clear()
        +
        Clears all cached identifiers, and resets the unique identifier counter.
        +
      • +
      + + + + + +
        +
      • +

        getEdgeName

        +
        public String getEdgeName(E edge)
        +
        Returns the String representation of an edge.
        +
        +
        Specified by:
        +
        getEdgeName in interface EdgeNameProvider<E>
        +
        Parameters:
        edge - the edge to be named
        +
        Returns:
        the name of the edge
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/IntegerNameProvider.html b/javadoc/org/jgrapht/ext/IntegerNameProvider.html new file mode 100644 index 0000000..a3cce43 --- /dev/null +++ b/javadoc/org/jgrapht/ext/IntegerNameProvider.html @@ -0,0 +1,297 @@ + + + + + + +IntegerNameProvider (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Class IntegerNameProvider<V>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    VertexNameProvider<V>
    +
    +
    +
    +
    public class IntegerNameProvider<V>
    +extends Object
    +implements VertexNameProvider<V>
    +
    Assigns a unique integer to represent each vertex. Each instance of + IntegerNameProvider maintains an internal map between every vertex it has + ever seen and the unique integer representing that vertex. As a result it is + probably desirable to have a separate instance for each distinct graph.
    +
    Author:
    +
    Charles Fry
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        IntegerNameProvider

        +
        public IntegerNameProvider()
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/JGraphModelAdapter.CellFactory.html b/javadoc/org/jgrapht/ext/JGraphModelAdapter.CellFactory.html new file mode 100644 index 0000000..8aec3b9 --- /dev/null +++ b/javadoc/org/jgrapht/ext/JGraphModelAdapter.CellFactory.html @@ -0,0 +1,248 @@ + + + + + + +JGraphModelAdapter.CellFactory (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Interface JGraphModelAdapter.CellFactory<VV,EE>

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    JGraphModelAdapter.DefaultCellFactory
    +
    +
    +
    Enclosing class:
    +
    JGraphModelAdapter<V,E>
    +
    +
    +
    +
    public static interface JGraphModelAdapter.CellFactory<VV,EE>
    +
    Creates the JGraph cells that reflect the respective JGraphT elements.
    +
    Since:
    +
    Dec 12, 2003
    +
    Author:
    +
    Barak Naveh
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      org.jgraph.graph.DefaultEdgecreateEdgeCell(EE jGraphTEdge) +
      Creates an edge cell that contains its respective JGraphT edge.
      +
      org.jgraph.graph.DefaultGraphCellcreateVertexCell(VV jGraphTVertex) +
      Creates a vertex cell that contains its respective JGraphT vertex.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        createEdgeCell

        +
        org.jgraph.graph.DefaultEdge createEdgeCell(EE jGraphTEdge)
        +
        Creates an edge cell that contains its respective JGraphT edge.
        +
        Parameters:
        jGraphTEdge - a JGraphT edge to be contained.
        +
        Returns:
        an edge cell that contains its respective JGraphT edge.
        +
      • +
      + + + + + +
        +
      • +

        createVertexCell

        +
        org.jgraph.graph.DefaultGraphCell createVertexCell(VV jGraphTVertex)
        +
        Creates a vertex cell that contains its respective JGraphT vertex.
        +
        Parameters:
        jGraphTVertex - a JGraphT vertex to be contained.
        +
        Returns:
        a vertex cell that contains its respective JGraphT vertex.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/JGraphModelAdapter.DefaultCellFactory.html b/javadoc/org/jgrapht/ext/JGraphModelAdapter.DefaultCellFactory.html new file mode 100644 index 0000000..8166745 --- /dev/null +++ b/javadoc/org/jgrapht/ext/JGraphModelAdapter.DefaultCellFactory.html @@ -0,0 +1,308 @@ + + + + + + +JGraphModelAdapter.DefaultCellFactory (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Class JGraphModelAdapter.DefaultCellFactory<VV,EE>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.ext.JGraphModelAdapter.DefaultCellFactory<VV,EE>
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/JGraphModelAdapter.html b/javadoc/org/jgrapht/ext/JGraphModelAdapter.html new file mode 100644 index 0000000..0f095b2 --- /dev/null +++ b/javadoc/org/jgrapht/ext/JGraphModelAdapter.html @@ -0,0 +1,613 @@ + + + + + + +JGraphModelAdapter (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Class JGraphModelAdapter<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, org.jgraph.graph.GraphModel
    +
    +
    +
    +
    public class JGraphModelAdapter<V,E>
    +extends org.jgraph.graph.DefaultGraphModel
    +
    An adapter that reflects a JGraphT graph as a JGraph graph. This adapter is + useful when using JGraph in order to visualize JGraphT graphs. For more about + JGraph see + http://jgraph.sourceforge.net + +

    Modifications made to the underlying JGraphT graph are reflected to this + JGraph model if and only if the underlying JGraphT graph is a ListenableGraph. If the underlying JGraphT graph is not + ListenableGraph, then this JGraph model represent a snapshot if the graph at + the time of its creation.

    + +

    Changes made to this JGraph model are also reflected back to the + underlying JGraphT graph. To avoid confusion, variables are prefixed + according to the JGraph/JGraphT object(s) they are referring to.

    + +

    KNOWN BUGS: There is a small issue to be aware of. JGraph allows + 'dangling edges' incident with just one vertex; JGraphT doesn't. Such a + configuration can arise when adding an edge or removing a vertex. The code + handles this by removing the newly-added dangling edge or removing all edges + incident with the vertex before actually removing the vertex, respectively. + This works very well, only it doesn't play all that nicely with the + undo-manager in the JGraph: for the second situation where you remove a + vertex incident with some edges, if you undo the removal, the vertex is + 'unremoved' but the edges aren't.

    +
    Since:
    +
    Aug 2, 2003
    +
    Author:
    +
    Barak Naveh
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static interface JGraphModelAdapter.CellFactory<VV,EE> +
      Creates the JGraph cells that reflect the respective JGraphT elements.
      +
      static class JGraphModelAdapter.DefaultCellFactory<VV,EE> +
      A simple default cell factory.
      +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class org.jgraph.graph.DefaultGraphModel

        +org.jgraph.graph.DefaultGraphModel.EmptyIterator, org.jgraph.graph.DefaultGraphModel.GraphModelEdit, org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class org.jgraph.graph.DefaultGraphModel

        +asksAllowsChildren, attributes, emptyIterator, listenerList, removeEmptyGroups, roots, transAddedCells, transEditAttrs, transEditCS, transEditPM, transRemovedCells, updateLevel
      • +
      + +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      JGraphModelAdapter(Graph<V,E> jGraphTGraph) +
      Constructs a new JGraph model adapter for the specified JGraphT graph.
      +
      JGraphModelAdapter(Graph<V,E> jGraphTGraph, + org.jgraph.graph.AttributeMap defaultVertexAttributes, + org.jgraph.graph.AttributeMap defaultEdgeAttributes) +
      Constructs a new JGraph model adapter for the specified JGraphT graph.
      +
      JGraphModelAdapter(Graph<V,E> jGraphTGraph, + org.jgraph.graph.AttributeMap defaultVertexAttributes, + org.jgraph.graph.AttributeMap defaultEdgeAttributes, + JGraphModelAdapter.CellFactory<V,E> cellFactory) +
      Constructs a new JGraph model adapter for the specified JGraphT graph.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static <V,E> org.jgraph.graph.AttributeMapcreateDefaultEdgeAttributes(Graph<V,E> jGraphTGraph) +
      Creates and returns a map of attributes to be used as defaults for edge + attributes, depending on the specified graph.
      +
      static org.jgraph.graph.AttributeMapcreateDefaultVertexAttributes() +
      Creates and returns a map of attributes to be used as defaults for vertex + attributes.
      +
      JGraphModelAdapter.CellFactory<V,E>getCellFactory() +
      Returns the cell factory used to create the JGraph cells.
      +
      org.jgraph.graph.AttributeMapgetDefaultEdgeAttributes() +
      Returns the default edge attributes used for creating new JGraph edges.
      +
      org.jgraph.graph.AttributeMapgetDefaultVertexAttributes() +
      Returns the default vertex attributes used for creating new JGraph + vertices.
      +
      org.jgraph.graph.DefaultEdgegetEdgeCell(E jGraphTEdge) +
      Returns the JGraph edge cell that corresponds to the specified JGraphT + edge.
      +
      org.jgraph.graph.DefaultGraphCellgetVertexCell(Object jGraphTVertex) +
      Returns the JGraph vertex cell that corresponds to the specified JGraphT + vertex.
      +
      org.jgraph.graph.DefaultPortgetVertexPort(Object jGraphTVertex) +
      Returns the JGraph port cell that corresponds to the specified JGraphT + vertex.
      +
      voidsetDefaultEdgeAttributes(org.jgraph.graph.AttributeMap defaultEdgeAttributes) +
      Sets the default edge attributes used for creating new JGraph edges.
      +
      voidsetDefaultVertexAttributes(org.jgraph.graph.AttributeMap defaultVertexAttributes) +
      Sets the default vertex attributes used for creating new JGraph vertices.
      +
      +
        +
      • + + +

        Methods inherited from class org.jgraph.graph.DefaultGraphModel

        +acceptsSource, acceptsTarget, addGraphModelListener, beginUpdate, cellsChanged, cloneCell, cloneCell, cloneCell, cloneCells, cloneUserObject, connect, contains, containsEdgeBetween, createEdit, createLayerEdit, createRemoveEdit, edges, edit, edit, endUpdate, execute, fireGraphChanged, getAll, getAttributes, getAttributes, getChild, getChildCount, getConnectionSet, getDescendants, getEdges, getEdges, getEdgesBetween, getGraphModelListeners, getIncomingEdges, getIndexOfChild, getIndexOfRoot, getOpposite, getOutgoingEdges, getParent, getRootAt, getRootCount, getRoots, getRoots, getRoots, getRootsAsCollection, getSource, getSourceVertex, getTarget, getTargetVertex, getTopmostCells, getUpdateLevel, getUserObject, getValue, handleAttributes, handleConnection, handleConnectionSet, handleInsert, handleParentMap, handleRemove, hasAncestorIn, insert, isEdge, isGroup, isLeaf, isPort, isRemoveEmptyGroups, isVertex, order, remove, removeGraphModelListener, setParent, setRemoveEmptyGroups, setSourcePort, setTargetPort, toBack, toFront, updateTransaction, valueForCellChanged
      • +
      + + +
        +
      • + + +

        Methods inherited from interface org.jgraph.graph.GraphModel

        +addUndoableEditListener, removeUndoableEditListener
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JGraphModelAdapter

        +
        public JGraphModelAdapter(Graph<V,E> jGraphTGraph)
        +
        Constructs a new JGraph model adapter for the specified JGraphT graph.
        +
        Parameters:
        jGraphTGraph - the JGraphT graph for which JGraph model adapter to + be created. null is NOT permitted.
        +
      • +
      + + + +
        +
      • +

        JGraphModelAdapter

        +
        public JGraphModelAdapter(Graph<V,E> jGraphTGraph,
        +                  org.jgraph.graph.AttributeMap defaultVertexAttributes,
        +                  org.jgraph.graph.AttributeMap defaultEdgeAttributes)
        +
        Constructs a new JGraph model adapter for the specified JGraphT graph.
        +
        Parameters:
        jGraphTGraph - the JGraphT graph for which JGraph model adapter to + be created. null is NOT permitted.
        defaultVertexAttributes - a default map of JGraph attributes to + format vertices. null is NOT permitted.
        defaultEdgeAttributes - a default map of JGraph attributes to format + edges. null is NOT permitted.
        +
      • +
      + + + +
        +
      • +

        JGraphModelAdapter

        +
        public JGraphModelAdapter(Graph<V,E> jGraphTGraph,
        +                  org.jgraph.graph.AttributeMap defaultVertexAttributes,
        +                  org.jgraph.graph.AttributeMap defaultEdgeAttributes,
        +                  JGraphModelAdapter.CellFactory<V,E> cellFactory)
        +
        Constructs a new JGraph model adapter for the specified JGraphT graph.
        +
        Parameters:
        jGraphTGraph - the JGraphT graph for which JGraph model adapter to + be created. null is NOT permitted.
        defaultVertexAttributes - a default map of JGraph attributes to + format vertices. null is NOT permitted.
        defaultEdgeAttributes - a default map of JGraph attributes to format + edges. null is NOT permitted.
        cellFactory - a JGraphModelAdapter.CellFactory to be used to create the JGraph + cells. null is NOT permitted.
        +
        Throws:
        +
        IllegalArgumentException
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createDefaultEdgeAttributes

        +
        public static <V,E> org.jgraph.graph.AttributeMap createDefaultEdgeAttributes(Graph<V,E> jGraphTGraph)
        +
        Creates and returns a map of attributes to be used as defaults for edge + attributes, depending on the specified graph.
        +
        Parameters:
        jGraphTGraph - the graph for which default edge attributes to be + created.
        +
        Returns:
        a map of attributes to be used as default for edge attributes.
        +
      • +
      + + + +
        +
      • +

        createDefaultVertexAttributes

        +
        public static org.jgraph.graph.AttributeMap createDefaultVertexAttributes()
        +
        Creates and returns a map of attributes to be used as defaults for vertex + attributes.
        +
        Returns:
        a map of attributes to be used as defaults for vertex attributes.
        +
      • +
      + + + +
        +
      • +

        getCellFactory

        +
        public JGraphModelAdapter.CellFactory<V,E> getCellFactory()
        +
        Returns the cell factory used to create the JGraph cells.
        +
        Returns:
        the cell factory used to create the JGraph cells.
        +
      • +
      + + + +
        +
      • +

        setDefaultEdgeAttributes

        +
        public void setDefaultEdgeAttributes(org.jgraph.graph.AttributeMap defaultEdgeAttributes)
        +
        Sets the default edge attributes used for creating new JGraph edges.
        +
        Parameters:
        defaultEdgeAttributes - the default edge attributes to set.
        +
      • +
      + + + +
        +
      • +

        getDefaultEdgeAttributes

        +
        public org.jgraph.graph.AttributeMap getDefaultEdgeAttributes()
        +
        Returns the default edge attributes used for creating new JGraph edges.
        +
        Returns:
        the default edge attributes used for creating new JGraph edges.
        +
      • +
      + + + +
        +
      • +

        setDefaultVertexAttributes

        +
        public void setDefaultVertexAttributes(org.jgraph.graph.AttributeMap defaultVertexAttributes)
        +
        Sets the default vertex attributes used for creating new JGraph vertices.
        +
        Parameters:
        defaultVertexAttributes - the default vertex attributes to set.
        +
      • +
      + + + +
        +
      • +

        getDefaultVertexAttributes

        +
        public org.jgraph.graph.AttributeMap getDefaultVertexAttributes()
        +
        Returns the default vertex attributes used for creating new JGraph + vertices.
        +
        Returns:
        the default vertex attributes used for creating new JGraph + vertices.
        +
      • +
      + + + + + +
        +
      • +

        getEdgeCell

        +
        public org.jgraph.graph.DefaultEdge getEdgeCell(E jGraphTEdge)
        +
        Returns the JGraph edge cell that corresponds to the specified JGraphT + edge. If no corresponding cell found, returns null.
        +
        Parameters:
        jGraphTEdge - a JGraphT edge of the JGraphT graph.
        +
        Returns:
        the JGraph edge cell that corresponds to the specified JGraphT + edge, or null if no corresponding cell found.
        +
      • +
      + + + +
        +
      • +

        getVertexCell

        +
        public org.jgraph.graph.DefaultGraphCell getVertexCell(Object jGraphTVertex)
        +
        Returns the JGraph vertex cell that corresponds to the specified JGraphT + vertex. If no corresponding cell found, returns null.
        +
        Parameters:
        jGraphTVertex - a JGraphT vertex of the JGraphT graph.
        +
        Returns:
        the JGraph vertex cell that corresponds to the specified JGraphT + vertex, or null if no corresponding cell found.
        +
      • +
      + + + +
        +
      • +

        getVertexPort

        +
        public org.jgraph.graph.DefaultPort getVertexPort(Object jGraphTVertex)
        +
        Returns the JGraph port cell that corresponds to the specified JGraphT + vertex. If no corresponding port found, returns null.
        +
        Parameters:
        jGraphTVertex - a JGraphT vertex of the JGraphT graph.
        +
        Returns:
        the JGraph port cell that corresponds to the specified JGraphT + vertex, or null if no corresponding cell found.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/JGraphXAdapter.html b/javadoc/org/jgrapht/ext/JGraphXAdapter.html new file mode 100644 index 0000000..b18a024 --- /dev/null +++ b/javadoc/org/jgrapht/ext/JGraphXAdapter.html @@ -0,0 +1,516 @@ + + + + + + +JGraphXAdapter (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Class JGraphXAdapter<V,E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.mxgraph.util.mxEventSource
    • +
    • +
        +
      • com.mxgraph.view.mxGraph
      • +
      • +
          +
        • org.jgrapht.ext.JGraphXAdapter<V,E>
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    Type Parameters:
    V - Vertex
    E - Edge
    +
    +
    All Implemented Interfaces:
    +
    EventListener, GraphListener<V,E>, VertexSetListener<V>
    +
    +
    +
    +
    public class JGraphXAdapter<V,E>
    +extends com.mxgraph.view.mxGraph
    +implements GraphListener<V,E>
    +

    Adapter to draw a JGraphT graph with the JGraphX drawing library.

    + +

    This adapter will not convert JGraphX to JGraphT - this should be handled + in another class entirely.

    + +

    Known Bugs: If this class is used with String-Edges, please note that + there is a bug with the method JgraphT.addEdge(vertex1, vertex2); The edge + will be created with an empty String "" as value and saved (in JGraphT as + well as in this class), which results in the edge not saving correctly. So, + if you're using Strings as Edgeclass please use the method addEdge(vertex1, + vertex2, "Edgename"); with a unique edgename.

    +
    Since:
    +
    09 July, 2013
    +
    Author:
    +
    Original: JeanYves Tinevez
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class com.mxgraph.view.mxGraph

        +com.mxgraph.view.mxGraph.mxICellVisitor
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource

        +com.mxgraph.util.mxEventSource.mxIEventListener
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class com.mxgraph.view.mxGraph

        +allowDanglingEdges, allowLoops, allowNegativeCoordinates, alternateEdgeStyle, autoOrigin, autoSizeCells, border, cellsBendable, cellsCloneable, cellsDeletable, cellsDisconnectable, cellsEditable, cellsLocked, cellsMovable, cellsResizable, cellsSelectable, changesRepaintThreshold, changeSupport, cloneInvalidEdges, collapseToPreferredSize, connectableEdges, constrainChildren, defaultLoopStyle, defaultOverlap, defaultParent, disconnectOnMove, dropEnabled, edgeLabelsMovable, enabled, extendParents, extendParentsOnAdd, fullRepaintHandler, graphModelChangeHandler, gridEnabled, gridSize, htmlLabels, imageBundles, keepEdgesInBackground, keepEdgesInForeground, labelsClipped, labelsVisible, maximumGraphBounds, minimumGraphSize, model, multigraph, multiplicities, origin, resetEdgesOnConnect, resetEdgesOnMove, resetEdgesOnResize, resetViewOnRootChange, selectionModel, splitEnabled, stylesheet, swimlaneNesting, updateOriginHandler, VERSION, vertexLabelsMovable, view
      • +
      +
        +
      • + + +

        Fields inherited from class com.mxgraph.util.mxEventSource

        +eventListeners, eventsEnabled, eventSource
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidedgeAdded(GraphEdgeChangeEvent<V,E> e) +
      Notifies that an edge has been added to the graph.
      +
      voidedgeRemoved(GraphEdgeChangeEvent<V,E> e) +
      Notifies that an edge has been removed from the graph.
      +
      HashMap<com.mxgraph.model.mxICell,E>getCellToEdgeMap() +
      Returns Hashmap which maps the visualization mxICells onto their edges.
      +
      HashMap<com.mxgraph.model.mxICell,V>getCellToVertexMap() +
      Returns Hashmap which maps the visualization mxICells onto their + vertices.
      +
      HashMap<E,com.mxgraph.model.mxICell>getEdgeToCellMap() +
      Returns Hashmap which maps the edges onto their visualization mxICells.
      +
      HashMap<V,com.mxgraph.model.mxICell>getVertexToCellMap() +
      Returns Hashmap which maps the vertices onto their visualization + mxICells.
      +
      voidvertexAdded(GraphVertexChangeEvent<V> e) +
      Notifies that a vertex has been added to the graph.
      +
      voidvertexRemoved(GraphVertexChangeEvent<V> e) +
      Notifies that a vertex has been removed from the graph.
      +
      +
        +
      • + + +

        Methods inherited from class com.mxgraph.view.mxGraph

        +addAllEdges, addCell, addCell, addCell, addCells, addCells, addCells, addCells, addEdge, addImageBundle, addPropertyChangeListener, addPropertyChangeListener, addSelectionCell, addSelectionCells, alignCells, alignCells, alignCells, cellConnected, cellDrawn, cellLabelChanged, cellsAdded, cellsAdded, cellsFolded, cellsFolded, cellSizeUpdated, cellsMoved, cellsOrdered, cellsRemoved, cellsResized, cellsToggled, clearSelection, cloneCells, cloneCells, connectCell, connectCell, constrainChild, convertValueToString, createEdge, createGraphView, createGroupCell, createSelectionModel, createStylesheet, createVertex, createVertex, disconnectGraph, drawCell, drawGraph, drawState, enterGroup, enterGroup, exitGroup, extendParent, findTreeRoots, findTreeRoots, findTreeRoots, flipEdge, foldCells, foldCells, foldCells, foldCells, getAllConnectionConstraints, getAllEdges, getAlternateEdgeStyle, getBorder, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBoxFromGeometry, getBoundsForCells, getBoundsForGroup, getCellBounds, getCellBounds, getCellBounds, getCellBounds, getCellContainmentArea, getCellGeometry, getCellsBeyond, getCellsForGroup, getCellStyle, getCellValidationError, getChangesRepaintThreshold, getChildCells, getChildCells, getChildEdges, getChildOffsetForCell, getChildVertices, getCloneableCells, getConnectionConstraint, getConnectionPoint, getConnections, getConnections, getConnections, getCurrentRoot, getDefaultLoopStyle, getDefaultOverlap, getDefaultParent, getDeletableCells, getDropTarget, getEdges, getEdges, getEdges, getEdges, getEdgesBetween, getEdgesBetween, getEdgeValidationError, getFoldableCells, getGraphBounds, getGridSize, getImage, getImageBundles, getImageBundles, getImageFromBundles, getIncomingEdges, getIncomingEdges, getLabel, getLinkForCell, getMaximumGraphBounds, getMinimumGraphSize, getModel, getMovableCells, getMultiplicities, getOpposites, getOpposites, getOrigin, getOutgoingEdges, getOutgoingEdges, getOverlap, getPaintBounds, getPreferredSizeForCell, getRemovedCellsForChanges, getSelectionCell, getSelectionCells, getSelectionCellsForChanges, getSelectionCount, getSelectionModel, getStartSize, getStylesheet, getTargetForCell, getTerminalForPort, getToolTipForCell, getTranslateForRoot, getView, graphModelChanged, groupCells, groupCells, groupCells, groupCells, home, insertEdge, insertEdge, insertVertex, insertVertex, insertVertex, isAllowDanglingEdges, isAllowLoops, isAllowNegativeCoordinates, isAllowOverlapParent, isAutoOrigin, isAutoSizeCell, isAutoSizeCells, isCellBendable, isCellCloneable, isCellCollapsed, isCellConnectable, isCellDeletable, isCellDisconnectable, isCellEditable, isCellFoldable, isCellLocked, isCellMovable, isCellResizable, isCellsBendable, isCellsCloneable, isCellsDeletable, isCellsDisconnectable, isCellsEditable, isCellSelectable, isCellSelected, isCellsLocked, isCellsMovable, isCellsResizable, isCellsSelectable, isCellVisible, isCloneInvalidEdges, isCollapseToPreferredSize, isConnectableEdges, isConstrainChild, isConstrainChildren, isDisconnectOnMove, isDropEnabled, isEdgeLabelsMovable, isEdgeValid, isEnabled, isExtendParent, isExtendParents, isExtendParentsOnAdd, isGridEnabled, isHtmlLabel, isHtmlLabels, isKeepEdgesInBackground, isKeepEdgesInForeground, isLabelClipped, isLabelMovable, isLabelsClipped, isLabelsVisible, isLoop, isMultigraph, isOrthogonal, isPort, isResetEdgesOnConnect, isResetEdgesOnMove, isResetEdgesOnResize, isResetViewOnRootChange, isSelectionEmpty, isSplitEnabled, isSplitTarget, isSwimlane, isSwimlaneNesting, isTerminalPointMovable, isValidAncestor, isValidConnection, isValidDropTarget, isValidRoot, isValidSource, isValidTarget, isVertexLabelsMovable, main, moveCells, moveCells, moveCells, orderCells, orderCells, postProcessCellStyle, processChange, processChanges, refresh, removeCells, removeCells, removeCells, removeCellsFromParent, removeCellsFromParent, removeImageBundle, removePropertyChangeListener, removePropertyChangeListener, removeSelectionCell, removeSelectionCells, removeStateForCell, repaint, repaint, resetEdge, resetEdges, resizeCell, resizeCells, selectAll, selectAll, selectCell, selectCells, selectCells, selectChildCell, selectEdges, selectEdges, selectNextCell, selectParentCell, selectPreviousCell, selectVertices, selectVertices, setAllowDanglingEdges, setAllowLoops, setAllowNegativeCoordinates, setAlternateEdgeStyle, setAutoOrigin, setAutoSizeCells, setBorder, setCellsBendable, setCellsCloneable, setCellsDeletable, setCellsDisconnectable, setCellsEditable, setCellsLocked, setCellsMovable, setCellsResizable, setCellsSelectable, setCellStyle, setCellStyle, setCellStyleFlags, setCellStyleFlags, setCellStyles, setCellStyles, setChangesRepaintThreshold, setCloneInvalidEdges, setCollapseToPreferredSize, setConnectableEdges, setConnectionConstraint, setConstrainChildren, setDefaultLoopStyle, setDefaultOverlap, setDefaultParent, setDisconnectOnMove, setDropEnabled, setEdgeLabelsMovable, setEnabled, setExtendParents, setExtendParentsOnAdd, setGridEnabled, setGridSize, setHtmlLabels, setKeepEdgesInBackground, setKeepEdgesInForeground, setLabelsClipped, setLabelsVisible, setMaximumGraphBounds, setMinimumGraphSize, setModel, setMultigraph, setMultiplicities, setOrigin, setResetEdgesOnConnect, setResetEdgesOnMove, setResetEdgesOnResize, setResetViewOnRootChange, setSelectionCell, setSelectionCells, setSelectionCells, setSplitEnabled, setStylesheet, setSwimlaneNesting, setVertexLabelsMovable, setView, snap, splitEdge, splitEdge, splitEdge, swapBounds, toggleCells, toggleCells, toggleCells, toggleCellStyle, toggleCellStyleFlags, toggleCellStyleFlags, toggleCellStyles, toggleCellStyles, translateCell, traverse, traverse, ungroupCells, ungroupCells, updateAlternateBounds, updateCellSize, updateCellSize, updateGroupBounds, updateGroupBounds, updateGroupBounds, updateGroupBounds, updateOrigin, validateCell, validateEdge
      • +
      +
        +
      • + + +

        Methods inherited from class com.mxgraph.util.mxEventSource

        +addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
      • +
      + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JGraphXAdapter

        +
        public JGraphXAdapter(ListenableGraph<V,E> graph)
        +
        Constructs and draws a new ListenableGraph. If the graph changes through + as ListenableGraph, the JGraphXAdapter will automatically add/remove the + new edge/vertex as it implements the GraphListener interface. Throws a + IllegalArgumentException if the graph is null.
        +
        Parameters:
        graph - casted to graph
        +
      • +
      + + + +
        +
      • +

        JGraphXAdapter

        +
        public JGraphXAdapter(Graph<V,E> graph)
        +
        Constructs and draws a new mxGraph from a jGraphT graph. Changes on the + jgraphT graph will not edit this mxGraph any further; use the constructor + with the ListenableGraph parameter instead or use this graph as a normal + mxGraph. Throws an IllegalArgumentException if the parameter is null.
        +
        Parameters:
        graph - is a graph
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getVertexToCellMap

        +
        public HashMap<V,com.mxgraph.model.mxICell> getVertexToCellMap()
        +
        Returns Hashmap which maps the vertices onto their visualization + mxICells.
        +
        Returns:
        vertexToCellMap
        +
      • +
      + + + +
        +
      • +

        getEdgeToCellMap

        +
        public HashMap<E,com.mxgraph.model.mxICell> getEdgeToCellMap()
        +
        Returns Hashmap which maps the edges onto their visualization mxICells.
        +
        Returns:
        edgeToCellMap
        +
      • +
      + + + +
        +
      • +

        getCellToEdgeMap

        +
        public HashMap<com.mxgraph.model.mxICell,E> getCellToEdgeMap()
        +
        Returns Hashmap which maps the visualization mxICells onto their edges.
        +
        Returns:
        cellToEdgeMap
        +
      • +
      + + + +
        +
      • +

        getCellToVertexMap

        +
        public HashMap<com.mxgraph.model.mxICell,V> getCellToVertexMap()
        +
        Returns Hashmap which maps the visualization mxICells onto their + vertices.
        +
        Returns:
        cellToVertexMap
        +
      • +
      + + + + + + + + + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/MatrixExporter.html b/javadoc/org/jgrapht/ext/MatrixExporter.html new file mode 100644 index 0000000..df55296 --- /dev/null +++ b/javadoc/org/jgrapht/ext/MatrixExporter.html @@ -0,0 +1,351 @@ + + + + + + +MatrixExporter (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Class MatrixExporter<V,E>

+
+
+ +
+
    +
  • +
    +
    +
    public class MatrixExporter<V,E>
    +extends Object
    +
    Exports a graph to a plain text matrix format, which can be processed by + matrix manipulation software, such as + MTJ or MATLAB.
    +
    Author:
    +
    Charles Fry
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MatrixExporter

        +
        public MatrixExporter()
        +
        Creates a new MatrixExporter object.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        exportAdjacencyMatrix

        +
        public void exportAdjacencyMatrix(Writer output,
        +                         UndirectedGraph<V,E> g)
        +
        Exports the specified graph into a plain text file format containing a + sparse representation of the graph's adjacency matrix. The value stored + in each position of the matrix indicates the number of edges between two + vertices. With an undirected graph, the adjacency matrix is symetric.
        +
        Parameters:
        output - the writer to which the graph to be exported.
        g - the graph to be exported.
        +
      • +
      + + + +
        +
      • +

        exportAdjacencyMatrix

        +
        public void exportAdjacencyMatrix(Writer output,
        +                         DirectedGraph<V,E> g)
        +
        Exports the specified graph into a plain text file format containing a + sparse representation of the graph's adjacency matrix. The value stored + in each position of the matrix indicates the number of directed edges + going from one vertex to another.
        +
        Parameters:
        output - the writer to which the graph to be exported.
        g - the graph to be exported.
        +
      • +
      + + + +
        +
      • +

        exportLaplacianMatrix

        +
        public void exportLaplacianMatrix(Writer output,
        +                         UndirectedGraph<V,E> g)
        +
        Exports the specified graph into a plain text file format containing a + sparse representation of the graph's Laplacian matrix. Laplacian matrices + are only defined for simple graphs, so edge direction, multiple edges, + loops, and weights are all ignored when creating the Laplacian matrix. If + you're unsure about Laplacian matrices, see: + http://mathworld.wolfram.com/LaplacianMatrix.html.
        +
        Parameters:
        output - the writer to which the graph is to be exported.
        g - the graph to be exported.
        +
      • +
      + + + +
        +
      • +

        exportNormalizedLaplacianMatrix

        +
        public void exportNormalizedLaplacianMatrix(Writer output,
        +                                   UndirectedGraph<V,E> g)
        +
        Exports the specified graph into a plain text file format containing a + sparse representation of the graph's normalized Laplacian matrix. + Laplacian matrices are only defined for simple graphs, so edge direction, + multiple edges, loops, and weights are all ignored when creating the + Laplacian matrix. If you're unsure about normalized Laplacian matrices, + see: + http://mathworld.wolfram.com/LaplacianMatrix.html.
        +
        Parameters:
        output - the writer to which the graph is to be exported.
        g - the graph to be exported.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/StringEdgeNameProvider.html b/javadoc/org/jgrapht/ext/StringEdgeNameProvider.html new file mode 100644 index 0000000..6245fdf --- /dev/null +++ b/javadoc/org/jgrapht/ext/StringEdgeNameProvider.html @@ -0,0 +1,278 @@ + + + + + + +StringEdgeNameProvider (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Class StringEdgeNameProvider<E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        StringEdgeNameProvider

        +
        public StringEdgeNameProvider()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getEdgeName

        +
        public String getEdgeName(E edge)
        +
        Returns the String representation an edge.
        +
        +
        Specified by:
        +
        getEdgeName in interface EdgeNameProvider<E>
        +
        Parameters:
        edge - the edge to be named
        +
        Returns:
        the name of the edge
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/StringNameProvider.html b/javadoc/org/jgrapht/ext/StringNameProvider.html new file mode 100644 index 0000000..bcd49d0 --- /dev/null +++ b/javadoc/org/jgrapht/ext/StringNameProvider.html @@ -0,0 +1,280 @@ + + + + + + +StringNameProvider (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Class StringNameProvider<V>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/VertexNameProvider.html b/javadoc/org/jgrapht/ext/VertexNameProvider.html new file mode 100644 index 0000000..e38e8c8 --- /dev/null +++ b/javadoc/org/jgrapht/ext/VertexNameProvider.html @@ -0,0 +1,222 @@ + + + + + + +VertexNameProvider (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Interface VertexNameProvider<V>

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      StringgetVertexName(V vertex) +
      Returns a unique name for a vertex.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getVertexName

        +
        String getVertexName(V vertex)
        +
        Returns a unique name for a vertex. This is useful when exporting a a + graph, as it ensures that all vertices are assigned simple, consistent + names.
        +
        Parameters:
        vertex - the vertex to be named
        +
        Returns:
        the name of the vertex
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/VertexProvider.html b/javadoc/org/jgrapht/ext/VertexProvider.html new file mode 100644 index 0000000..8473cbe --- /dev/null +++ b/javadoc/org/jgrapht/ext/VertexProvider.html @@ -0,0 +1,217 @@ + + + + + + +VertexProvider (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Interface VertexProvider<V>

+
+
+
+
    +
  • +
    Type Parameters:
    V - Vertex type
    +
    +
    +
    public interface VertexProvider<V>
    +
    Creates a Vertex of type V
    +
  • +
+
+
+
    +
  • + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        buildVertex

        +
        V buildVertex(String label,
        +            Map<String,String> attributes)
        +
        Create a vertex
        +
        Parameters:
        label - the label of the vertex
        attributes - any other attributes of the vertex
        +
        Returns:
        the vertex.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/VertexUpdater.html b/javadoc/org/jgrapht/ext/VertexUpdater.html new file mode 100644 index 0000000..c37360f --- /dev/null +++ b/javadoc/org/jgrapht/ext/VertexUpdater.html @@ -0,0 +1,219 @@ + + + + + + +VertexUpdater (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Interface VertexUpdater<V>

+
+
+
+
    +
  • +
    Type Parameters:
    V -
    +
    +
    +
    public interface VertexUpdater<V>
    +
    Type to handle updates to a vertex when an import gets more information about + a vertex after it has been created.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidupdateVertex(V vertex, + Map<String,String> attributes) +
      Update vertex with the extra attributes.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        updateVertex

        +
        void updateVertex(V vertex,
        +                Map<String,String> attributes)
        +
        Update vertex with the extra attributes.
        +
        Parameters:
        vertex - to update
        attributes - to add to the vertex
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/VisioExporter.html b/javadoc/org/jgrapht/ext/VisioExporter.html new file mode 100644 index 0000000..dfac5f0 --- /dev/null +++ b/javadoc/org/jgrapht/ext/VisioExporter.html @@ -0,0 +1,297 @@ + + + + + + +VisioExporter (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.ext
+

Class VisioExporter<V,E>

+
+
+ +
+
    +
  • +
    +
    +
    public class VisioExporter<V,E>
    +extends Object
    +
    Exports a graph to a csv format that can be imported into MS Visio. + +

    Tip: By default, the exported graph doesn't show link directions. + To show link directions:
    + +

      +
    1. Select All (Ctrl-A)
    2. +
    3. Right Click the selected items
    4. +
    5. Format/Line...
    6. +
    7. Line ends: End: (choose an arrow)
    8. +
    +
    Author:
    +
    Avner Linder
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        VisioExporter

        +
        public VisioExporter(VertexNameProvider<V> vertexNameProvider)
        +
        Creates a new VisioExporter object with the specified naming policy.
        +
        Parameters:
        vertexNameProvider - the vertex name provider to be used for naming + the Visio shapes.
        +
      • +
      + + + +
        +
      • +

        VisioExporter

        +
        public VisioExporter()
        +
        Creates a new VisioExporter object.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        export

        +
        public void export(OutputStream output,
        +          Graph<V,E> g)
        +
        Exports the specified graph into a Visio csv file format.
        +
        Parameters:
        output - the print stream to which the graph to be exported.
        g - the graph to be exported.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/ComponentAttributeProvider.html b/javadoc/org/jgrapht/ext/class-use/ComponentAttributeProvider.html new file mode 100644 index 0000000..576fe47 --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/ComponentAttributeProvider.html @@ -0,0 +1,175 @@ + + + + + + +Uses of Interface org.jgrapht.ext.ComponentAttributeProvider (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.ext.ComponentAttributeProvider

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/DOTExporter.html b/javadoc/org/jgrapht/ext/class-use/DOTExporter.html new file mode 100644 index 0000000..10930cf --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/DOTExporter.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.ext.DOTExporter (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.ext.DOTExporter

+
+
No usage of org.jgrapht.ext.DOTExporter
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/DOTImporter.html b/javadoc/org/jgrapht/ext/class-use/DOTImporter.html new file mode 100644 index 0000000..8b0a8c6 --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/DOTImporter.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.ext.DOTImporter (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.ext.DOTImporter

+
+
No usage of org.jgrapht.ext.DOTImporter
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/EdgeNameProvider.html b/javadoc/org/jgrapht/ext/class-use/EdgeNameProvider.html new file mode 100644 index 0000000..ea5091d --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/EdgeNameProvider.html @@ -0,0 +1,230 @@ + + + + + + +Uses of Interface org.jgrapht.ext.EdgeNameProvider (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.ext.EdgeNameProvider

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/EdgeProvider.html b/javadoc/org/jgrapht/ext/class-use/EdgeProvider.html new file mode 100644 index 0000000..ebbd34a --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/EdgeProvider.html @@ -0,0 +1,168 @@ + + + + + + +Uses of Interface org.jgrapht.ext.EdgeProvider (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.ext.EdgeProvider

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/GmlExporter.html b/javadoc/org/jgrapht/ext/class-use/GmlExporter.html new file mode 100644 index 0000000..6dd6729 --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/GmlExporter.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.ext.GmlExporter (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.ext.GmlExporter

+
+
No usage of org.jgrapht.ext.GmlExporter
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/GraphMLExporter.html b/javadoc/org/jgrapht/ext/class-use/GraphMLExporter.html new file mode 100644 index 0000000..5a7ce45 --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/GraphMLExporter.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.ext.GraphMLExporter (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.ext.GraphMLExporter

+
+
No usage of org.jgrapht.ext.GraphMLExporter
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/ImportException.html b/javadoc/org/jgrapht/ext/class-use/ImportException.html new file mode 100644 index 0000000..13f03bd --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/ImportException.html @@ -0,0 +1,163 @@ + + + + + + +Uses of Class org.jgrapht.ext.ImportException (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.ext.ImportException

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/IntegerEdgeNameProvider.html b/javadoc/org/jgrapht/ext/class-use/IntegerEdgeNameProvider.html new file mode 100644 index 0000000..43c40af --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/IntegerEdgeNameProvider.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.ext.IntegerEdgeNameProvider (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.ext.IntegerEdgeNameProvider

+
+
No usage of org.jgrapht.ext.IntegerEdgeNameProvider
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/IntegerNameProvider.html b/javadoc/org/jgrapht/ext/class-use/IntegerNameProvider.html new file mode 100644 index 0000000..24efa39 --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/IntegerNameProvider.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.ext.IntegerNameProvider (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.ext.IntegerNameProvider

+
+
No usage of org.jgrapht.ext.IntegerNameProvider
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/JGraphModelAdapter.CellFactory.html b/javadoc/org/jgrapht/ext/class-use/JGraphModelAdapter.CellFactory.html new file mode 100644 index 0000000..174794a --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/JGraphModelAdapter.CellFactory.html @@ -0,0 +1,193 @@ + + + + + + +Uses of Interface org.jgrapht.ext.JGraphModelAdapter.CellFactory (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.ext.JGraphModelAdapter.CellFactory

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/JGraphModelAdapter.DefaultCellFactory.html b/javadoc/org/jgrapht/ext/class-use/JGraphModelAdapter.DefaultCellFactory.html new file mode 100644 index 0000000..cec1b71 --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/JGraphModelAdapter.DefaultCellFactory.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.ext.JGraphModelAdapter.DefaultCellFactory (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.ext.JGraphModelAdapter.DefaultCellFactory

+
+
No usage of org.jgrapht.ext.JGraphModelAdapter.DefaultCellFactory
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/JGraphModelAdapter.html b/javadoc/org/jgrapht/ext/class-use/JGraphModelAdapter.html new file mode 100644 index 0000000..55f10ac --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/JGraphModelAdapter.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.ext.JGraphModelAdapter (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.ext.JGraphModelAdapter

+
+
No usage of org.jgrapht.ext.JGraphModelAdapter
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/JGraphXAdapter.html b/javadoc/org/jgrapht/ext/class-use/JGraphXAdapter.html new file mode 100644 index 0000000..3631f08 --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/JGraphXAdapter.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.ext.JGraphXAdapter (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.ext.JGraphXAdapter

+
+
No usage of org.jgrapht.ext.JGraphXAdapter
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/MatrixExporter.html b/javadoc/org/jgrapht/ext/class-use/MatrixExporter.html new file mode 100644 index 0000000..3df3277 --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/MatrixExporter.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.ext.MatrixExporter (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.ext.MatrixExporter

+
+
No usage of org.jgrapht.ext.MatrixExporter
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/StringEdgeNameProvider.html b/javadoc/org/jgrapht/ext/class-use/StringEdgeNameProvider.html new file mode 100644 index 0000000..d318a2a --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/StringEdgeNameProvider.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.ext.StringEdgeNameProvider (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.ext.StringEdgeNameProvider

+
+
No usage of org.jgrapht.ext.StringEdgeNameProvider
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/StringNameProvider.html b/javadoc/org/jgrapht/ext/class-use/StringNameProvider.html new file mode 100644 index 0000000..5f1e190 --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/StringNameProvider.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.ext.StringNameProvider (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.ext.StringNameProvider

+
+
No usage of org.jgrapht.ext.StringNameProvider
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/VertexNameProvider.html b/javadoc/org/jgrapht/ext/class-use/VertexNameProvider.html new file mode 100644 index 0000000..2e1f45e --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/VertexNameProvider.html @@ -0,0 +1,253 @@ + + + + + + +Uses of Interface org.jgrapht.ext.VertexNameProvider (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.ext.VertexNameProvider

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/VertexProvider.html b/javadoc/org/jgrapht/ext/class-use/VertexProvider.html new file mode 100644 index 0000000..ae0d879 --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/VertexProvider.html @@ -0,0 +1,168 @@ + + + + + + +Uses of Interface org.jgrapht.ext.VertexProvider (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.ext.VertexProvider

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/VertexUpdater.html b/javadoc/org/jgrapht/ext/class-use/VertexUpdater.html new file mode 100644 index 0000000..09ba554 --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/VertexUpdater.html @@ -0,0 +1,162 @@ + + + + + + +Uses of Interface org.jgrapht.ext.VertexUpdater (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.ext.VertexUpdater

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/class-use/VisioExporter.html b/javadoc/org/jgrapht/ext/class-use/VisioExporter.html new file mode 100644 index 0000000..11bf70d --- /dev/null +++ b/javadoc/org/jgrapht/ext/class-use/VisioExporter.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.ext.VisioExporter (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.ext.VisioExporter

+
+
No usage of org.jgrapht.ext.VisioExporter
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/package-frame.html b/javadoc/org/jgrapht/ext/package-frame.html new file mode 100644 index 0000000..9aed0c2 --- /dev/null +++ b/javadoc/org/jgrapht/ext/package-frame.html @@ -0,0 +1,46 @@ + + + + + + +org.jgrapht.ext (JGraphT : a free Java graph library) + + + + +

org.jgrapht.ext

+ + + diff --git a/javadoc/org/jgrapht/ext/package-summary.html b/javadoc/org/jgrapht/ext/package-summary.html new file mode 100644 index 0000000..4bfd1e2 --- /dev/null +++ b/javadoc/org/jgrapht/ext/package-summary.html @@ -0,0 +1,294 @@ + + + + + + +org.jgrapht.ext (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht.ext

+
+
+Extensions and integration means to other products.
+
+

See: Description

+
+
+ + + + +

Package org.jgrapht.ext Description

+

+Extensions and integration means to other products. +

+
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/package-tree.html b/javadoc/org/jgrapht/ext/package-tree.html new file mode 100644 index 0000000..a2a38bb --- /dev/null +++ b/javadoc/org/jgrapht/ext/package-tree.html @@ -0,0 +1,177 @@ + + + + + + +org.jgrapht.ext Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht.ext

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/ext/package-use.html b/javadoc/org/jgrapht/ext/package-use.html new file mode 100644 index 0000000..073471c --- /dev/null +++ b/javadoc/org/jgrapht/ext/package-use.html @@ -0,0 +1,191 @@ + + + + + + +Uses of Package org.jgrapht.ext (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht.ext

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/CompleteBipartiteGraphGenerator.html b/javadoc/org/jgrapht/generate/CompleteBipartiteGraphGenerator.html new file mode 100644 index 0000000..c8f17a3 --- /dev/null +++ b/javadoc/org/jgrapht/generate/CompleteBipartiteGraphGenerator.html @@ -0,0 +1,292 @@ + + + + + + +CompleteBipartiteGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.generate
+

Class CompleteBipartiteGraphGenerator<V,E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.generate.CompleteBipartiteGraphGenerator<V,E>
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    GraphGenerator<V,E,V>
    +
    +
    +
    +
    public class CompleteBipartiteGraphGenerator<V,E>
    +extends Object
    +implements GraphGenerator<V,E,V>
    +
    Generates a complete + bipartite graph of any size. This is a graph with two partitions; two + vertices will contain an edge if and only if they belong to different + partitions.
    +
    Since:
    +
    Dec 21, 2008
    +
    Author:
    +
    Andrew Newell
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CompleteBipartiteGraphGenerator

        +
        public CompleteBipartiteGraphGenerator(int partitionOne,
        +                               int partitionTwo)
        +
        Creates a new CompleteBipartiteGraphGenerator object.
        +
        Parameters:
        partitionOne - This is the number of vertices in the first partition
        partitionTwo - This is the number of vertices in the second parition
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        generateGraph

        +
        public void generateGraph(Graph<V,E> target,
        +                 VertexFactory<V> vertexFactory,
        +                 Map<String,V> resultMap)
        +
        Construct a complete bipartite graph
        +
        +
        Specified by:
        +
        generateGraph in interface GraphGenerator<V,E,V>
        +
        Parameters:
        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 © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/CompleteGraphGenerator.html b/javadoc/org/jgrapht/generate/CompleteGraphGenerator.html new file mode 100644 index 0000000..e3dbfde --- /dev/null +++ b/javadoc/org/jgrapht/generate/CompleteGraphGenerator.html @@ -0,0 +1,303 @@ + + + + + + +CompleteGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.generate
+

Class CompleteGraphGenerator<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    GraphGenerator<V,E,V>
    +
    +
    +
    +
    public class CompleteGraphGenerator<V,E>
    +extends Object
    +implements GraphGenerator<V,E,V>
    +
    Generates a complete graph of any size. A complete graph is a graph where + every vertex shares an edge with every other vertex. If it is a directed + graph, then edges must always exist in both directions. On a side note, a + complete graph is the least efficient possible graph in terms of memory and + cpu usage. Note: This contructor was designed for a simple undirected or + directed graph. It will act strangely when used with certain graph types, + such as undirected multigraphs. Note, though, that a complete undirected + multigraph is rather senseless -- you can keep adding edges and the graph is + never truly complete.
    +
    Since:
    +
    Nov 02, 2008
    +
    Author:
    +
    Tim Shearouse
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CompleteGraphGenerator

        +
        public CompleteGraphGenerator(int size)
        +
        Construct a new CompleteGraphGenerator.
        +
        Parameters:
        size - number of vertices to be generated
        +
        Throws:
        +
        IllegalArgumentException - if the specified size is negative.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        generateGraph

        +
        public void generateGraph(Graph<V,E> target,
        +                 VertexFactory<V> vertexFactory,
        +                 Map<String,V> resultMap)
        +
        Generate a graph structure. The topology of the generated graph is + dependent on the implementation. For graphs in which not all vertices + share the same automorphism equivalence class, the generator may produce + a labeling indicating the roles played by generated elements. This is the + purpose of the resultMap parameter. For example, a generator for a wheel + graph would designate a hub vertex. Role names used as keys in resultMap + should be declared as public static final Strings by implementation + classes.
        +
        +
        Specified by:
        +
        generateGraph in interface GraphGenerator<V,E,V>
        +
        Parameters:
        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 © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/EmptyGraphGenerator.html b/javadoc/org/jgrapht/generate/EmptyGraphGenerator.html new file mode 100644 index 0000000..b6c19bf --- /dev/null +++ b/javadoc/org/jgrapht/generate/EmptyGraphGenerator.html @@ -0,0 +1,296 @@ + + + + + + +EmptyGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.generate
+

Class EmptyGraphGenerator<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    GraphGenerator<V,E,V>
    +
    +
    +
    +
    public class EmptyGraphGenerator<V,E>
    +extends Object
    +implements GraphGenerator<V,E,V>
    +
    Generates an empty + graph of any size. An empty graph is a graph that has no edges.
    +
    Since:
    +
    Sep 16, 2003
    +
    Author:
    +
    John V. Sichi
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        EmptyGraphGenerator

        +
        public EmptyGraphGenerator(int size)
        +
        Construct a new EmptyGraphGenerator.
        +
        Parameters:
        size - number of vertices to be generated
        +
        Throws:
        +
        IllegalArgumentException - if the specified size is negative.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        generateGraph

        +
        public void generateGraph(Graph<V,E> target,
        +                 VertexFactory<V> vertexFactory,
        +                 Map<String,V> resultMap)
        +
        Generate a graph structure. The topology of the generated graph is + dependent on the implementation. For graphs in which not all vertices + share the same automorphism equivalence class, the generator may produce + a labeling indicating the roles played by generated elements. This is the + purpose of the resultMap parameter. For example, a generator for a wheel + graph would designate a hub vertex. Role names used as keys in resultMap + should be declared as public static final Strings by implementation + classes.
        +
        +
        Specified by:
        +
        generateGraph in interface GraphGenerator<V,E,V>
        +
        Parameters:
        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 © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/GraphGenerator.html b/javadoc/org/jgrapht/generate/GraphGenerator.html new file mode 100644 index 0000000..b8229a9 --- /dev/null +++ b/javadoc/org/jgrapht/generate/GraphGenerator.html @@ -0,0 +1,235 @@ + + + + + + +GraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.generate
+

Interface GraphGenerator<V,E,T>

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        generateGraph

        +
        void generateGraph(Graph<V,E> target,
        +                 VertexFactory<V> vertexFactory,
        +                 Map<String,T> resultMap)
        +
        Generate a graph structure. The topology of the generated graph is + dependent on the implementation. For graphs in which not all vertices + share the same automorphism equivalence class, the generator may produce + a labeling indicating the roles played by generated elements. This is the + purpose of the resultMap parameter. For example, a generator for a wheel + graph would designate a hub vertex. Role names used as keys in resultMap + should be declared as public static final Strings by implementation + classes.
        +
        Parameters:
        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 © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/GridGraphGenerator.html b/javadoc/org/jgrapht/generate/GridGraphGenerator.html new file mode 100644 index 0000000..5313184 --- /dev/null +++ b/javadoc/org/jgrapht/generate/GridGraphGenerator.html @@ -0,0 +1,341 @@ + + + + + + +GridGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.generate
+

Class GridGraphGenerator<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    GraphGenerator<V,E,V>
    +
    +
    +
    +
    public class GridGraphGenerator<V,E>
    +extends Object
    +implements GraphGenerator<V,E,V>
    +
    Generates a bidirectional grid graph of any + size. A grid graph is a two dimensional graph whose vertices correspond to + the points in the plane with integer coordinates, x-coordinates being in the + range 0,..., n, y-coordinates being in the range 1,...m, and two vertices are + connected by an edge whenever the corresponding points are at distance 1. + Vertices are created from left to right and from top to bottom.
    +
    Since:
    +
    Dec 29, 2010
    +
    Author:
    +
    Assaf Mizrachi
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GridGraphGenerator

        +
        public GridGraphGenerator(int rows,
        +                  int cols)
        +
        Creates a new GridGraphGenerator object with rows x cols dimension.
        +
        Parameters:
        rows - the number of rows
        cols - the number of columns
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        generateGraph

        +
        public void generateGraph(Graph<V,E> target,
        +                 VertexFactory<V> vertexFactory,
        +                 Map<String,V> resultMap)
        +
        Generate a graph structure. The topology of the generated graph is + dependent on the implementation. For graphs in which not all vertices + share the same automorphism equivalence class, the generator may produce + a labeling indicating the roles played by generated elements. This is the + purpose of the resultMap parameter. For example, a generator for a wheel + graph would designate a hub vertex. Role names used as keys in resultMap + should be declared as public static final Strings by implementation + classes.
        +
        +
        Specified by:
        +
        generateGraph in interface GraphGenerator<V,E,V>
        +
        Parameters:
        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 © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/HyperCubeGraphGenerator.html b/javadoc/org/jgrapht/generate/HyperCubeGraphGenerator.html new file mode 100644 index 0000000..e4c9da7 --- /dev/null +++ b/javadoc/org/jgrapht/generate/HyperCubeGraphGenerator.html @@ -0,0 +1,290 @@ + + + + + + +HyperCubeGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.generate
+

Class HyperCubeGraphGenerator<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    GraphGenerator<V,E,V>
    +
    +
    +
    +
    public class HyperCubeGraphGenerator<V,E>
    +extends Object
    +implements GraphGenerator<V,E,V>
    +
    Generates a hyper + cube graph of any size. This is a graph that can be represented by bit + strings, so for an n-dimensial hypercube each vertex resembles an n-length + bit string. Then, two vertices are adjacent if and only if their bitstring + differ by exactly one element.
    +
    Since:
    +
    Dec 21, 2008
    +
    Author:
    +
    Andrew Newell
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HyperCubeGraphGenerator

        +
        public HyperCubeGraphGenerator(int dim)
        +
        Creates a new HyperCubeGraphGenerator object.
        +
        Parameters:
        dim - This is the dimension of the hypercube.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        generateGraph

        +
        public void generateGraph(Graph<V,E> target,
        +                 VertexFactory<V> vertexFactory,
        +                 Map<String,V> resultMap)
        +
        This will generate the hypercube graph
        +
        +
        Specified by:
        +
        generateGraph in interface GraphGenerator<V,E,V>
        +
        Parameters:
        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 © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/LinearGraphGenerator.html b/javadoc/org/jgrapht/generate/LinearGraphGenerator.html new file mode 100644 index 0000000..3f58e3a --- /dev/null +++ b/javadoc/org/jgrapht/generate/LinearGraphGenerator.html @@ -0,0 +1,353 @@ + + + + + + +LinearGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.generate
+

Class LinearGraphGenerator<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    GraphGenerator<V,E,V>
    +
    +
    +
    +
    public class LinearGraphGenerator<V,E>
    +extends Object
    +implements GraphGenerator<V,E,V>
    +
    Generates a linear graph of any size. For a directed graph, the edges are + oriented from START_VERTEX to END_VERTEX.
    +
    Since:
    +
    Sep 16, 2003
    +
    Author:
    +
    John V. Sichi
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        LinearGraphGenerator

        +
        public LinearGraphGenerator(int size)
        +
        Construct a new LinearGraphGenerator.
        +
        Parameters:
        size - number of vertices to be generated
        +
        Throws:
        +
        IllegalArgumentException - if the specified size is negative.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        generateGraph

        +
        public void generateGraph(Graph<V,E> target,
        +                 VertexFactory<V> vertexFactory,
        +                 Map<String,V> resultMap)
        +
        Generate a graph structure. The topology of the generated graph is + dependent on the implementation. For graphs in which not all vertices + share the same automorphism equivalence class, the generator may produce + a labeling indicating the roles played by generated elements. This is the + purpose of the resultMap parameter. For example, a generator for a wheel + graph would designate a hub vertex. Role names used as keys in resultMap + should be declared as public static final Strings by implementation + classes.
        +
        +
        Specified by:
        +
        generateGraph in interface GraphGenerator<V,E,V>
        +
        Parameters:
        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 © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/RandomGraphGenerator.DefaultEdgeTopologyFactory.html b/javadoc/org/jgrapht/generate/RandomGraphGenerator.DefaultEdgeTopologyFactory.html new file mode 100644 index 0000000..dbbff95 --- /dev/null +++ b/javadoc/org/jgrapht/generate/RandomGraphGenerator.DefaultEdgeTopologyFactory.html @@ -0,0 +1,399 @@ + + + + + + +RandomGraphGenerator.DefaultEdgeTopologyFactory (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.generate
+

Class RandomGraphGenerator.DefaultEdgeTopologyFactory<VV,EE>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.generate.RandomGraphGenerator.DefaultEdgeTopologyFactory<VV,EE>
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    RandomGraphGenerator.EdgeTopologyFactory<VV,EE>
    +
    +
    +
    Enclosing class:
    +
    RandomGraphGenerator<V,E>
    +
    +
    +
    +
    public class RandomGraphGenerator.DefaultEdgeTopologyFactory<VV,EE>
    +extends Object
    +implements RandomGraphGenerator.EdgeTopologyFactory<VV,EE>
    +
    Default implementation of the EdgeTopologyFactory interface. randomly + chooses an edge and tries to add it. If the add fails from any reason + (like: self edge / multiple edges in unpermitted graph type) it will just + choose another and try again. Performance: + +
      +
    1. when the number of possible edges becomes slim , this class will have + a very poor performance , cause it will not use gready methods to choose + them. for example : In simple graph , if #V = N (#x = number Of x) and we + want full mesh #edges= N*(N-1)/2 , the first added edges will do so + quickly (O(1) , the last will take O(N^2). So , do not use it in this + kind of graphs.
    2. +
    3. If the numberOfEdges is bigger than what the graph can add, there + will be an infinite loop here. It is not tested.
    4. +
    +
    Since:
    +
    Aug 6, 2005
    +
    Author:
    +
    Assaf
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RandomGraphGenerator.DefaultEdgeTopologyFactory

        +
        public RandomGraphGenerator.DefaultEdgeTopologyFactory()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createEdges

        +
        public void createEdges(Graph<VV,EE> targetGraph,
        +               Map<Integer,VV> orderToVertexMap,
        +               int numberOfEdges,
        +               Random randomizer)
        +
        Description copied from interface: RandomGraphGenerator.EdgeTopologyFactory
        +
        Two different calls to the createEdges() with the same parameters + must result in the generation of the same. But if the randomizer is + different, it should, usually, create different edge topology.
        +
        +
        Specified by:
        +
        createEdges in interface RandomGraphGenerator.EdgeTopologyFactory<VV,EE>
        +
        Parameters:
        targetGraph - - guranteed to start with zero edges.
        orderToVertexMap - - key=Integer of vertex order . between zero + to numOfVertexes (exclusive). value = vertex from the graph. unique.
        numberOfEdges - - to create in the graph
        +
      • +
      + + + +
        +
      • +

        isNumberOfEdgesValid

        +
        public boolean isNumberOfEdgesValid(Graph<VV,EE> targetGraph,
        +                           int numberOfEdges)
        +
        checks if the numOfEdges is smaller than the Max edges according to + the following table: + +

        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Graph TypeDirected / UnDirectedmultiple edgesloopsMax Edges
        SimpleGraphUnDirected--N(N-1)/2
        MultigraphUnDirected+-Infinite
        PseudographUnDirected++Infinite
        SimpleDirectedGraphDirected--N (N-1)
        DefaultDirectedGraphDirected-+N*(N-1)+ N = N^2
        DirectedMultigraphDirected++Infinite

        +
        +
        Specified by:
        +
        isNumberOfEdgesValid in interface RandomGraphGenerator.EdgeTopologyFactory<VV,EE>
        +
        Parameters:
        targetGraph - guranteed to start with zero edges.
        See Also:
        RandomGraphGenerator.EdgeTopologyFactory.isNumberOfEdgesValid(Graph, + int)
        +
      • +
      + + + +
        +
      • +

        getMaxEdgesForVertexNum

        +
        public int getMaxEdgesForVertexNum(Graph<VV,EE> targetGraph)
        +
        Return max edges for that graph. If it is infinite return -1 instead.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/RandomGraphGenerator.EdgeTopologyFactory.html b/javadoc/org/jgrapht/generate/RandomGraphGenerator.EdgeTopologyFactory.html new file mode 100644 index 0000000..381fd75 --- /dev/null +++ b/javadoc/org/jgrapht/generate/RandomGraphGenerator.EdgeTopologyFactory.html @@ -0,0 +1,261 @@ + + + + + + +RandomGraphGenerator.EdgeTopologyFactory (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.generate
+

Interface RandomGraphGenerator.EdgeTopologyFactory<VV,EE>

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidcreateEdges(Graph<VV,EE> targetGraph, + Map<Integer,VV> orderToVertexMap, + int numberOfEdges, + Random randomizer) +
      Two different calls to the createEdges() with the same parameters + must result in the generation of the same.
      +
      booleanisNumberOfEdgesValid(Graph<VV,EE> targetGraph, + int numberOfEdges) +
      Checks if the graph can contain the givven numberOfEdges according to + the graph type restrictions.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createEdges

        +
        void createEdges(Graph<VV,EE> targetGraph,
        +               Map<Integer,VV> orderToVertexMap,
        +               int numberOfEdges,
        +               Random randomizer)
        +
        Two different calls to the createEdges() with the same parameters + must result in the generation of the same. But if the randomizer is + different, it should, usually, create different edge topology.
        +
        Parameters:
        targetGraph - - guranteed to start with zero edges.
        orderToVertexMap - - key=Integer of vertex order . between zero + to numOfVertexes (exclusive). value = vertex from the graph. unique.
        numberOfEdges - - to create in the graph
        randomizer -
        +
      • +
      + + + +
        +
      • +

        isNumberOfEdgesValid

        +
        boolean isNumberOfEdgesValid(Graph<VV,EE> targetGraph,
        +                           int numberOfEdges)
        +
        Checks if the graph can contain the givven numberOfEdges according to + the graph type restrictions. For example: + +
          +
        1. #V means number of vertexes in graph +
        2. a Simple Graph, can have max of #V*(#V-1)/2 edges. etc +
        +
        Parameters:
        targetGraph - guranteed to start with zero edges.
        numberOfEdges -
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/RandomGraphGenerator.html b/javadoc/org/jgrapht/generate/RandomGraphGenerator.html new file mode 100644 index 0000000..c2f3393 --- /dev/null +++ b/javadoc/org/jgrapht/generate/RandomGraphGenerator.html @@ -0,0 +1,416 @@ + + + + + + +RandomGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.generate
+

Class RandomGraphGenerator<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    GraphGenerator<V,E,V>
    +
    +
    +
    +
    public class RandomGraphGenerator<V,E>
    +extends Object
    +implements GraphGenerator<V,E,V>
    +
    This Generator creates a random-topology graph of a specified number of + vertexes and edges. An instance of this generator will always return the same + graph-topology in calls to generateGraph(). The vertexes can be different + (depends on the VertexFactory implementation) + +

    However, two instances which use the same constructor parameters will + produce two different random graphs (note: as with any random generator, + there is always a small possibility that two instances will create the same + results).

    +
    Since:
    +
    Aug 6, 2005
    +
    Author:
    +
    Assaf Lehr
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        numOfVertexes

        +
        protected int numOfVertexes
        +
      • +
      + + + +
        +
      • +

        numOfEdges

        +
        protected int numOfEdges
        +
      • +
      + + + +
        +
      • +

        randomizer

        +
        protected Random randomizer
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RandomGraphGenerator

        +
        public RandomGraphGenerator(int aNumOfVertexes,
        +                    int aNumOfEdges)
        +
      • +
      + + + +
        +
      • +

        RandomGraphGenerator

        +
        public RandomGraphGenerator(int aNumOfVertexes,
        +                    int aNumOfEdges,
        +                    long seed)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getRandomSeed

        +
        public long getRandomSeed()
        +
      • +
      + + + +
        +
      • +

        generateGraph

        +
        public void generateGraph(Graph<V,E> target,
        +                 VertexFactory<V> vertexFactory,
        +                 Map<String,V> resultMap)
        +
        (non-Javadoc)
        +
        +
        Specified by:
        +
        generateGraph in interface GraphGenerator<V,E,V>
        +
        Parameters:
        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)
        +
        Throws:
        +
        IllegalArgumentException - if the aNumOfEdges passed in the + constructor, cannot be created on a graph of the concrete type with + aNumOfVertexes. + org.jgrapht.generate.RandomGraphGenerator.DefaultEdgeTopologyFactory#isNumberOfEdgesValid(org.jgrapht.Graph, + int)
        See Also:
        GraphGenerator.generateGraph(Graph, VertexFactory, Map)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/RingGraphGenerator.html b/javadoc/org/jgrapht/generate/RingGraphGenerator.html new file mode 100644 index 0000000..fcf5578 --- /dev/null +++ b/javadoc/org/jgrapht/generate/RingGraphGenerator.html @@ -0,0 +1,298 @@ + + + + + + +RingGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.generate
+

Class RingGraphGenerator<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    GraphGenerator<V,E,V>
    +
    +
    +
    +
    public class RingGraphGenerator<V,E>
    +extends Object
    +implements GraphGenerator<V,E,V>
    +
    Generates a ring graph of any size. A ring graph is a graph that contains a + single cycle that passes through all its vertices exactly once. For a + directed graph, the generated edges are oriented consistently around the + ring.
    +
    Since:
    +
    Sep 16, 2003
    +
    Author:
    +
    John V. Sichi
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RingGraphGenerator

        +
        public RingGraphGenerator(int size)
        +
        Construct a new RingGraphGenerator.
        +
        Parameters:
        size - number of vertices to be generated
        +
        Throws:
        +
        IllegalArgumentException - if the specified size is negative.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        generateGraph

        +
        public void generateGraph(Graph<V,E> target,
        +                 VertexFactory<V> vertexFactory,
        +                 Map<String,V> resultMap)
        +
        Generate a graph structure. The topology of the generated graph is + dependent on the implementation. For graphs in which not all vertices + share the same automorphism equivalence class, the generator may produce + a labeling indicating the roles played by generated elements. This is the + purpose of the resultMap parameter. For example, a generator for a wheel + graph would designate a hub vertex. Role names used as keys in resultMap + should be declared as public static final Strings by implementation + classes.
        +
        +
        Specified by:
        +
        generateGraph in interface GraphGenerator<V,E,V>
        +
        Parameters:
        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 © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/ScaleFreeGraphGenerator.html b/javadoc/org/jgrapht/generate/ScaleFreeGraphGenerator.html new file mode 100644 index 0000000..19e07aa --- /dev/null +++ b/javadoc/org/jgrapht/generate/ScaleFreeGraphGenerator.html @@ -0,0 +1,311 @@ + + + + + + +ScaleFreeGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.generate
+

Class ScaleFreeGraphGenerator<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    GraphGenerator<V,E,V>
    +
    +
    +
    +
    public class ScaleFreeGraphGenerator<V,E>
    +extends Object
    +implements GraphGenerator<V,E,V>
    +
    Generates directed or undirected scale-free network + of any size. Scale-free network is a connected graph, where degrees of + vertices are distributed in unusual way. There are many vertices with small + degrees and only small amount of vertices with big degrees.
    +
    Author:
    +
    Ilya Razenshteyn
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ScaleFreeGraphGenerator

        +
        public ScaleFreeGraphGenerator(int size)
        +
        Constructs a new ScaleFreeGraphGenerator.
        +
        Parameters:
        size - number of vertices to be generated
        +
      • +
      + + + +
        +
      • +

        ScaleFreeGraphGenerator

        +
        public ScaleFreeGraphGenerator(int size,
        +                       long seed)
        +
        Constructs a new ScaleFreeGraphGenerator using fixed + seed for the random generator.
        +
        Parameters:
        size - number of vertices to be generated
        seed - initial seed for the random generator
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        generateGraph

        +
        public void generateGraph(Graph<V,E> target,
        +                 VertexFactory<V> vertexFactory,
        +                 Map<String,V> resultMap)
        +
        Generates scale-free network with size passed to the + constructor. Each call of this method produces identical output (but if + target is an undirected graph, the directions of edges will be + lost).
        +
        +
        Specified by:
        +
        generateGraph in interface GraphGenerator<V,E,V>
        +
        Parameters:
        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 - unused parameter
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/SimpleWeightedBipartiteGraphMatrixGenerator.html b/javadoc/org/jgrapht/generate/SimpleWeightedBipartiteGraphMatrixGenerator.html new file mode 100644 index 0000000..9894a4a --- /dev/null +++ b/javadoc/org/jgrapht/generate/SimpleWeightedBipartiteGraphMatrixGenerator.html @@ -0,0 +1,323 @@ + + + + + + +SimpleWeightedBipartiteGraphMatrixGenerator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.generate
+

Class SimpleWeightedBipartiteGraphMatrixGenerator<V,E>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/SimpleWeightedGraphMatrixGenerator.html b/javadoc/org/jgrapht/generate/SimpleWeightedGraphMatrixGenerator.html new file mode 100644 index 0000000..369840d --- /dev/null +++ b/javadoc/org/jgrapht/generate/SimpleWeightedGraphMatrixGenerator.html @@ -0,0 +1,353 @@ + + + + + + +SimpleWeightedGraphMatrixGenerator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.generate
+

Class SimpleWeightedGraphMatrixGenerator<V,E>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/StarGraphGenerator.html b/javadoc/org/jgrapht/generate/StarGraphGenerator.html new file mode 100644 index 0000000..7b7f332 --- /dev/null +++ b/javadoc/org/jgrapht/generate/StarGraphGenerator.html @@ -0,0 +1,325 @@ + + + + + + +StarGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.generate
+

Class StarGraphGenerator<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    GraphGenerator<V,E,V>
    +
    +
    +
    +
    public class StarGraphGenerator<V,E>
    +extends Object
    +implements GraphGenerator<V,E,V>
    +
    Generates a star + graph of any size. This is a graph where every vertex has exactly one + edge with a center vertex.
    +
    Since:
    +
    Dec 21, 2008
    +
    Author:
    +
    Andrew Newell
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        StarGraphGenerator

        +
        public StarGraphGenerator(int order)
        +
        Creates a new StarGraphGenerator object.
        +
        Parameters:
        order - number of total vertices including the center vertex
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        generateGraph

        +
        public void generateGraph(Graph<V,E> target,
        +                 VertexFactory<V> vertexFactory,
        +                 Map<String,V> resultMap)
        +
        Generates a star graph with the designated order from the constructor
        +
        +
        Specified by:
        +
        generateGraph in interface GraphGenerator<V,E,V>
        +
        Parameters:
        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 © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/WeightedGraphGenerator.html b/javadoc/org/jgrapht/generate/WeightedGraphGenerator.html new file mode 100644 index 0000000..2de604d --- /dev/null +++ b/javadoc/org/jgrapht/generate/WeightedGraphGenerator.html @@ -0,0 +1,358 @@ + + + + + + +WeightedGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.generate
+

Class WeightedGraphGenerator<V,E>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/WeightedGraphGeneratorAdapter.html b/javadoc/org/jgrapht/generate/WeightedGraphGeneratorAdapter.html new file mode 100644 index 0000000..4966b0b --- /dev/null +++ b/javadoc/org/jgrapht/generate/WeightedGraphGeneratorAdapter.html @@ -0,0 +1,361 @@ + + + + + + +WeightedGraphGeneratorAdapter (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.generate
+

Class WeightedGraphGeneratorAdapter<V,E,T>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.generate.WeightedGraphGeneratorAdapter<V,E,T>
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        weights

        +
        protected double[][] weights
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        WeightedGraphGeneratorAdapter

        +
        public WeightedGraphGeneratorAdapter()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + + + + + +
        +
      • +

        generateGraph

        +
        public void generateGraph(Graph<V,E> target,
        +                 VertexFactory<V> vertexFactory,
        +                 Map<String,T> resultMap)
        +
        Description copied from interface: GraphGenerator
        +
        Generate a graph structure. The topology of the generated graph is + dependent on the implementation. For graphs in which not all vertices + share the same automorphism equivalence class, the generator may produce + a labeling indicating the roles played by generated elements. This is the + purpose of the resultMap parameter. For example, a generator for a wheel + graph would designate a hub vertex. Role names used as keys in resultMap + should be declared as public static final Strings by implementation + classes.
        +
        +
        Specified by:
        +
        generateGraph in interface GraphGenerator<V,E,T>
        +
        Parameters:
        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 © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/WheelGraphGenerator.html b/javadoc/org/jgrapht/generate/WheelGraphGenerator.html new file mode 100644 index 0000000..54e8fb8 --- /dev/null +++ b/javadoc/org/jgrapht/generate/WheelGraphGenerator.html @@ -0,0 +1,360 @@ + + + + + + +WheelGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.generate
+

Class WheelGraphGenerator<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    GraphGenerator<V,E,V>
    +
    +
    +
    +
    public class WheelGraphGenerator<V,E>
    +extends Object
    +implements GraphGenerator<V,E,V>
    +
    Generates a wheel + graph of any size. Reminding a bicycle wheel, a wheel graph has a hub + vertex in the center and a rim of vertices around it that are connected to + each other (as a ring). The rim vertices are also connected to the hub with + edges that are called "spokes".
    +
    Since:
    +
    Sep 16, 2003
    +
    Author:
    +
    John V. Sichi
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        WheelGraphGenerator

        +
        public WheelGraphGenerator(int size)
        +
        Creates a new WheelGraphGenerator object. This constructor is more + suitable for undirected graphs, where spokes' direction is meaningless. + In the directed case, spokes will be oriented from rim to hub.
        +
        Parameters:
        size - number of vertices to be generated.
        +
      • +
      + + + +
        +
      • +

        WheelGraphGenerator

        +
        public WheelGraphGenerator(int size,
        +                   boolean inwardSpokes)
        +
        Construct a new WheelGraphGenerator.
        +
        Parameters:
        size - number of vertices to be generated.
        inwardSpokes - if true and graph is directed, spokes + are oriented from rim to hub; else from hub to rim.
        +
        Throws:
        +
        IllegalArgumentException
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        generateGraph

        +
        public void generateGraph(Graph<V,E> target,
        +                 VertexFactory<V> vertexFactory,
        +                 Map<String,V> resultMap)
        +
        Generate a graph structure. The topology of the generated graph is + dependent on the implementation. For graphs in which not all vertices + share the same automorphism equivalence class, the generator may produce + a labeling indicating the roles played by generated elements. This is the + purpose of the resultMap parameter. For example, a generator for a wheel + graph would designate a hub vertex. Role names used as keys in resultMap + should be declared as public static final Strings by implementation + classes.
        +
        +
        Specified by:
        +
        generateGraph in interface GraphGenerator<V,E,V>
        +
        Parameters:
        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 © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/class-use/CompleteBipartiteGraphGenerator.html b/javadoc/org/jgrapht/generate/class-use/CompleteBipartiteGraphGenerator.html new file mode 100644 index 0000000..7e1dd0a --- /dev/null +++ b/javadoc/org/jgrapht/generate/class-use/CompleteBipartiteGraphGenerator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.generate.CompleteBipartiteGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.generate.CompleteBipartiteGraphGenerator

+
+
No usage of org.jgrapht.generate.CompleteBipartiteGraphGenerator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/class-use/CompleteGraphGenerator.html b/javadoc/org/jgrapht/generate/class-use/CompleteGraphGenerator.html new file mode 100644 index 0000000..def499a --- /dev/null +++ b/javadoc/org/jgrapht/generate/class-use/CompleteGraphGenerator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.generate.CompleteGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.generate.CompleteGraphGenerator

+
+
No usage of org.jgrapht.generate.CompleteGraphGenerator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/class-use/EmptyGraphGenerator.html b/javadoc/org/jgrapht/generate/class-use/EmptyGraphGenerator.html new file mode 100644 index 0000000..c554ada --- /dev/null +++ b/javadoc/org/jgrapht/generate/class-use/EmptyGraphGenerator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.generate.EmptyGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.generate.EmptyGraphGenerator

+
+
No usage of org.jgrapht.generate.EmptyGraphGenerator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/class-use/GraphGenerator.html b/javadoc/org/jgrapht/generate/class-use/GraphGenerator.html new file mode 100644 index 0000000..65cc86f --- /dev/null +++ b/javadoc/org/jgrapht/generate/class-use/GraphGenerator.html @@ -0,0 +1,292 @@ + + + + + + +Uses of Interface org.jgrapht.generate.GraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.generate.GraphGenerator

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/class-use/GridGraphGenerator.html b/javadoc/org/jgrapht/generate/class-use/GridGraphGenerator.html new file mode 100644 index 0000000..a43abd5 --- /dev/null +++ b/javadoc/org/jgrapht/generate/class-use/GridGraphGenerator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.generate.GridGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.generate.GridGraphGenerator

+
+
No usage of org.jgrapht.generate.GridGraphGenerator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/class-use/HyperCubeGraphGenerator.html b/javadoc/org/jgrapht/generate/class-use/HyperCubeGraphGenerator.html new file mode 100644 index 0000000..1c8bd98 --- /dev/null +++ b/javadoc/org/jgrapht/generate/class-use/HyperCubeGraphGenerator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.generate.HyperCubeGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.generate.HyperCubeGraphGenerator

+
+
No usage of org.jgrapht.generate.HyperCubeGraphGenerator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/class-use/LinearGraphGenerator.html b/javadoc/org/jgrapht/generate/class-use/LinearGraphGenerator.html new file mode 100644 index 0000000..8f31a0f --- /dev/null +++ b/javadoc/org/jgrapht/generate/class-use/LinearGraphGenerator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.generate.LinearGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.generate.LinearGraphGenerator

+
+
No usage of org.jgrapht.generate.LinearGraphGenerator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/class-use/RandomGraphGenerator.DefaultEdgeTopologyFactory.html b/javadoc/org/jgrapht/generate/class-use/RandomGraphGenerator.DefaultEdgeTopologyFactory.html new file mode 100644 index 0000000..01328ee --- /dev/null +++ b/javadoc/org/jgrapht/generate/class-use/RandomGraphGenerator.DefaultEdgeTopologyFactory.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.generate.RandomGraphGenerator.DefaultEdgeTopologyFactory (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.generate.RandomGraphGenerator.DefaultEdgeTopologyFactory

+
+
No usage of org.jgrapht.generate.RandomGraphGenerator.DefaultEdgeTopologyFactory
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/class-use/RandomGraphGenerator.EdgeTopologyFactory.html b/javadoc/org/jgrapht/generate/class-use/RandomGraphGenerator.EdgeTopologyFactory.html new file mode 100644 index 0000000..1e31218 --- /dev/null +++ b/javadoc/org/jgrapht/generate/class-use/RandomGraphGenerator.EdgeTopologyFactory.html @@ -0,0 +1,161 @@ + + + + + + +Uses of Interface org.jgrapht.generate.RandomGraphGenerator.EdgeTopologyFactory (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.generate.RandomGraphGenerator.EdgeTopologyFactory

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/class-use/RandomGraphGenerator.html b/javadoc/org/jgrapht/generate/class-use/RandomGraphGenerator.html new file mode 100644 index 0000000..2940ddd --- /dev/null +++ b/javadoc/org/jgrapht/generate/class-use/RandomGraphGenerator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.generate.RandomGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.generate.RandomGraphGenerator

+
+
No usage of org.jgrapht.generate.RandomGraphGenerator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/class-use/RingGraphGenerator.html b/javadoc/org/jgrapht/generate/class-use/RingGraphGenerator.html new file mode 100644 index 0000000..172af4f --- /dev/null +++ b/javadoc/org/jgrapht/generate/class-use/RingGraphGenerator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.generate.RingGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.generate.RingGraphGenerator

+
+
No usage of org.jgrapht.generate.RingGraphGenerator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/class-use/ScaleFreeGraphGenerator.html b/javadoc/org/jgrapht/generate/class-use/ScaleFreeGraphGenerator.html new file mode 100644 index 0000000..4b59957 --- /dev/null +++ b/javadoc/org/jgrapht/generate/class-use/ScaleFreeGraphGenerator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.generate.ScaleFreeGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.generate.ScaleFreeGraphGenerator

+
+
No usage of org.jgrapht.generate.ScaleFreeGraphGenerator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/class-use/SimpleWeightedBipartiteGraphMatrixGenerator.html b/javadoc/org/jgrapht/generate/class-use/SimpleWeightedBipartiteGraphMatrixGenerator.html new file mode 100644 index 0000000..319057b --- /dev/null +++ b/javadoc/org/jgrapht/generate/class-use/SimpleWeightedBipartiteGraphMatrixGenerator.html @@ -0,0 +1,163 @@ + + + + + + +Uses of Class org.jgrapht.generate.SimpleWeightedBipartiteGraphMatrixGenerator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.generate.SimpleWeightedBipartiteGraphMatrixGenerator

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/class-use/SimpleWeightedGraphMatrixGenerator.html b/javadoc/org/jgrapht/generate/class-use/SimpleWeightedGraphMatrixGenerator.html new file mode 100644 index 0000000..9611efc --- /dev/null +++ b/javadoc/org/jgrapht/generate/class-use/SimpleWeightedGraphMatrixGenerator.html @@ -0,0 +1,159 @@ + + + + + + +Uses of Class org.jgrapht.generate.SimpleWeightedGraphMatrixGenerator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.generate.SimpleWeightedGraphMatrixGenerator

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/class-use/StarGraphGenerator.html b/javadoc/org/jgrapht/generate/class-use/StarGraphGenerator.html new file mode 100644 index 0000000..d62bb45 --- /dev/null +++ b/javadoc/org/jgrapht/generate/class-use/StarGraphGenerator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.generate.StarGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.generate.StarGraphGenerator

+
+
No usage of org.jgrapht.generate.StarGraphGenerator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/class-use/WeightedGraphGenerator.html b/javadoc/org/jgrapht/generate/class-use/WeightedGraphGenerator.html new file mode 100644 index 0000000..39e823d --- /dev/null +++ b/javadoc/org/jgrapht/generate/class-use/WeightedGraphGenerator.html @@ -0,0 +1,167 @@ + + + + + + +Uses of Class org.jgrapht.generate.WeightedGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.generate.WeightedGraphGenerator

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/class-use/WeightedGraphGeneratorAdapter.html b/javadoc/org/jgrapht/generate/class-use/WeightedGraphGeneratorAdapter.html new file mode 100644 index 0000000..6d6e9f9 --- /dev/null +++ b/javadoc/org/jgrapht/generate/class-use/WeightedGraphGeneratorAdapter.html @@ -0,0 +1,176 @@ + + + + + + +Uses of Class org.jgrapht.generate.WeightedGraphGeneratorAdapter (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.generate.WeightedGraphGeneratorAdapter

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/class-use/WheelGraphGenerator.html b/javadoc/org/jgrapht/generate/class-use/WheelGraphGenerator.html new file mode 100644 index 0000000..c86a0a9 --- /dev/null +++ b/javadoc/org/jgrapht/generate/class-use/WheelGraphGenerator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.generate.WheelGraphGenerator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.generate.WheelGraphGenerator

+
+
No usage of org.jgrapht.generate.WheelGraphGenerator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/package-frame.html b/javadoc/org/jgrapht/generate/package-frame.html new file mode 100644 index 0000000..ddca67d --- /dev/null +++ b/javadoc/org/jgrapht/generate/package-frame.html @@ -0,0 +1,39 @@ + + + + + + +org.jgrapht.generate (JGraphT : a free Java graph library) + + + + +

org.jgrapht.generate

+ + + diff --git a/javadoc/org/jgrapht/generate/package-summary.html b/javadoc/org/jgrapht/generate/package-summary.html new file mode 100644 index 0000000..283b2ad --- /dev/null +++ b/javadoc/org/jgrapht/generate/package-summary.html @@ -0,0 +1,259 @@ + + + + + + +org.jgrapht.generate (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht.generate

+
+
Generators for graphs of various topologies.
+
+

See: Description

+
+
+ + + + +

Package org.jgrapht.generate Description

+
Generators for graphs of various topologies.
+
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/package-tree.html b/javadoc/org/jgrapht/generate/package-tree.html new file mode 100644 index 0000000..41621e3 --- /dev/null +++ b/javadoc/org/jgrapht/generate/package-tree.html @@ -0,0 +1,153 @@ + + + + + + +org.jgrapht.generate Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht.generate

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/generate/package-use.html b/javadoc/org/jgrapht/generate/package-use.html new file mode 100644 index 0000000..8c3cca5 --- /dev/null +++ b/javadoc/org/jgrapht/generate/package-use.html @@ -0,0 +1,198 @@ + + + + + + +Uses of Package org.jgrapht.generate (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht.generate

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/AbstractBaseGraph.DirectedEdgeContainer.html b/javadoc/org/jgrapht/graph/AbstractBaseGraph.DirectedEdgeContainer.html new file mode 100644 index 0000000..5bea78e --- /dev/null +++ b/javadoc/org/jgrapht/graph/AbstractBaseGraph.DirectedEdgeContainer.html @@ -0,0 +1,338 @@ + + + + + + +AbstractBaseGraph.DirectedEdgeContainer (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class AbstractBaseGraph.DirectedEdgeContainer<VV,EE>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.graph.AbstractBaseGraph.DirectedEdgeContainer<VV,EE>
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable
    +
    +
    +
    Enclosing class:
    +
    AbstractBaseGraph<V,E>
    +
    +
    +
    +
    protected static class AbstractBaseGraph.DirectedEdgeContainer<VV,EE>
    +extends Object
    +implements Serializable
    +
    A container for vertex edges. + +

    In this edge container we use array lists to minimize memory toll. + However, for high-degree vertices we replace the entire edge container + with a direct access subclass (to be implemented).

    +
    Author:
    +
    Barak Naveh
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getUnmodifiableIncomingEdges

        +
        public Set<EE> getUnmodifiableIncomingEdges()
        +
        A lazy build of unmodifiable incoming edge set.
        +
        Returns:
        +
      • +
      + + + +
        +
      • +

        getUnmodifiableOutgoingEdges

        +
        public Set<EE> getUnmodifiableOutgoingEdges()
        +
        A lazy build of unmodifiable outgoing edge set.
        +
        Returns:
        +
      • +
      + + + + + +
        +
      • +

        addIncomingEdge

        +
        public void addIncomingEdge(EE e)
        +
        .
        +
        Parameters:
        e -
        +
      • +
      + + + + + +
        +
      • +

        addOutgoingEdge

        +
        public void addOutgoingEdge(EE e)
        +
        .
        +
        Parameters:
        e -
        +
      • +
      + + + + + +
        +
      • +

        removeIncomingEdge

        +
        public void removeIncomingEdge(EE e)
        +
        .
        +
        Parameters:
        e -
        +
      • +
      + + + + + +
        +
      • +

        removeOutgoingEdge

        +
        public void removeOutgoingEdge(EE e)
        +
        .
        +
        Parameters:
        e -
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/AbstractBaseGraph.DirectedSpecifics.html b/javadoc/org/jgrapht/graph/AbstractBaseGraph.DirectedSpecifics.html new file mode 100644 index 0000000..58973cf --- /dev/null +++ b/javadoc/org/jgrapht/graph/AbstractBaseGraph.DirectedSpecifics.html @@ -0,0 +1,530 @@ + + + + + + +AbstractBaseGraph.DirectedSpecifics (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class AbstractBaseGraph.DirectedSpecifics

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.graph.AbstractBaseGraph.DirectedSpecifics
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/AbstractBaseGraph.UndirectedSpecifics.html b/javadoc/org/jgrapht/graph/AbstractBaseGraph.UndirectedSpecifics.html new file mode 100644 index 0000000..4799b91 --- /dev/null +++ b/javadoc/org/jgrapht/graph/AbstractBaseGraph.UndirectedSpecifics.html @@ -0,0 +1,494 @@ + + + + + + +AbstractBaseGraph.UndirectedSpecifics (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class AbstractBaseGraph.UndirectedSpecifics

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.graph.AbstractBaseGraph.UndirectedSpecifics
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/AbstractBaseGraph.html b/javadoc/org/jgrapht/graph/AbstractBaseGraph.html new file mode 100644 index 0000000..de2fad5 --- /dev/null +++ b/javadoc/org/jgrapht/graph/AbstractBaseGraph.html @@ -0,0 +1,1059 @@ + + + + + + +AbstractBaseGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class AbstractBaseGraph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AbstractBaseGraph

        +
        protected AbstractBaseGraph(EdgeFactory<V,E> ef,
        +                 boolean allowMultipleEdges,
        +                 boolean allowLoops)
        +
        Construct a new graph. The graph can either be directed or undirected, + depending on the specified edge factory.
        +
        Parameters:
        ef - the edge factory of the new graph.
        allowMultipleEdges - whether to allow multiple edges or not.
        allowLoops - whether to allow edges that are self-loops or not.
        +
        Throws:
        +
        NullPointerException - if the specified edge factory is + null.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getAllEdges

        +
        public Set<E> getAllEdges(V sourceVertex,
        +                 V targetVertex)
        +
        Description copied from interface: Graph
        +
        Returns a set of all edges connecting source vertex to target vertex if + such vertices exist in this graph. If any of the vertices does not exist + or is null, returns null. If both vertices + exist but no edges found, returns an empty set. + +

        In undirected graphs, some of the returned edges may have their source + and target vertices in the opposite order. In simple graphs the returned + set is either singleton set or empty set.

        +
        +
        Specified by:
        +
        getAllEdges in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        a set of all edges connecting source vertex to target vertex.
        See Also:
        Graph.getAllEdges(Object, Object)
        +
      • +
      + + + +
        +
      • +

        isAllowingLoops

        +
        public boolean isAllowingLoops()
        +
        Returns true if and only if self-loops are allowed in this + graph. A self loop is an edge that its source and target vertices are the + same.
        +
        Returns:
        true if and only if graph loops are allowed.
        +
      • +
      + + + +
        +
      • +

        isAllowingMultipleEdges

        +
        public boolean isAllowingMultipleEdges()
        +
        Returns true if and only if multiple edges are allowed in + this graph. The meaning of multiple edges is that there can be many edges + going from vertex v1 to vertex v2.
        +
        Returns:
        true if and only if multiple edges are allowed.
        +
      • +
      + + + + + +
        +
      • +

        getEdge

        +
        public E getEdge(V sourceVertex,
        +        V targetVertex)
        +
        Description copied from interface: Graph
        +
        Returns an edge connecting source vertex to target vertex if such + vertices and such edge exist in this graph. Otherwise returns + null. If any of the specified vertices is null + returns null + +

        In undirected graphs, the returned edge may have its source and target + vertices in the opposite order.

        +
        +
        Specified by:
        +
        getEdge in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        an edge connecting source vertex to target vertex.
        See Also:
        Graph.getEdge(Object, Object)
        +
      • +
      + + + +
        +
      • +

        getEdgeFactory

        +
        public EdgeFactory<V,E> getEdgeFactory()
        +
        Description copied from interface: Graph
        +
        Returns the edge factory using which this graph creates new edges. The + edge factory is defined when the graph is constructed and must not be + modified.
        +
        +
        Specified by:
        +
        getEdgeFactory in interface Graph<V,E>
        +
        Returns:
        the edge factory using which this graph creates new edges.
        See Also:
        Graph.getEdgeFactory()
        +
      • +
      + + + +
        +
      • +

        setEdgeSetFactory

        +
        public void setEdgeSetFactory(EdgeSetFactory<V,E> edgeSetFactory)
        +
        Set the EdgeSetFactory to use for this graph. Initially, a graph + is created with a default implementation which always supplies an ArrayList with capacity 1.
        +
        Parameters:
        edgeSetFactory - factory to use for subsequently created edge sets + (this call has no effect on existing edge sets)
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        public E addEdge(V sourceVertex,
        +        V targetVertex)
        +
        Description copied from interface: Graph
        +
        Creates a new edge in this graph, going from the source vertex to the + target vertex, and returns the created edge. Some graphs do not allow + edge-multiplicity. In such cases, if the graph already contains an edge + from the specified source to the specified target, than this method does + not change the graph and returns null. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        + +

        This method creates the new edge e using this graph's + EdgeFactory. For the new edge to be added e + must not be equal to any other edge the graph (even if the graph + allows edge-multiplicity). More formally, the graph must not contain any + edge e2 such that e2.equals(e). If such + e2 is found then the newly created edge e is + abandoned, the method leaves this graph unchanged returns + null.

        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The newly created edge if added to the graph, otherwise + null.
        See Also:
        Graph.addEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        public boolean addEdge(V sourceVertex,
        +              V targetVertex,
        +              E e)
        +
        Description copied from interface: Graph
        +
        Adds the specified edge to this graph, going from the source vertex to + the target vertex. More formally, adds the specified edge, + e, to this graph if this graph contains no edge e2 + such that e2.equals(e). If this graph already contains such + an edge, the call leaves this graph unchanged and returns false. + Some graphs do not allow edge-multiplicity. In such cases, if the graph + already contains an edge from the specified source to the specified + target, than this method does not change the graph and returns + false. If the edge was added to the graph, returns + true. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        e - edge to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + edge.
        See Also:
        Graph.addEdge(Object, Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        addVertex

        +
        public boolean addVertex(V v)
        +
        Description copied from interface: Graph
        +
        Adds the specified vertex to this graph if not already present. More + formally, adds the specified vertex, v, to this graph if + this graph contains no vertex u such that + u.equals(v). If this graph already contains such vertex, the call + leaves this graph unchanged and returns false. In combination + with the restriction on constructors, this ensures that graphs never + contain duplicate vertices.
        +
        +
        Specified by:
        +
        addVertex in interface Graph<V,E>
        +
        Parameters:
        v - vertex to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + vertex.
        See Also:
        Graph.addVertex(Object)
        +
      • +
      + + + + + +
        +
      • +

        getEdgeSource

        +
        public V getEdgeSource(E e)
        +
        Description copied from interface: Graph
        +
        Returns the source vertex of an edge. For an undirected graph, source and + target are distinguishable designations (but without any mathematical + meaning).
        +
        +
        Specified by:
        +
        getEdgeSource in interface Graph<V,E>
        +
        Parameters:
        e - edge of interest
        +
        Returns:
        source vertex
        See Also:
        Graph.getEdgeSource(Object)
        +
      • +
      + + + + + +
        +
      • +

        getEdgeTarget

        +
        public V getEdgeTarget(E e)
        +
        Description copied from interface: Graph
        +
        Returns the target vertex of an edge. For an undirected graph, source and + target are distinguishable designations (but without any mathematical + meaning).
        +
        +
        Specified by:
        +
        getEdgeTarget in interface Graph<V,E>
        +
        Parameters:
        e - edge of interest
        +
        Returns:
        target vertex
        See Also:
        Graph.getEdgeTarget(Object)
        +
      • +
      + + + +
        +
      • +

        clone

        +
        public Object clone()
        +
        Returns a shallow copy of this graph instance. Neither edges nor vertices + are cloned.
        +
        +
        Overrides:
        +
        clone in class Object
        +
        Returns:
        a shallow copy of this set.
        +
        Throws:
        +
        RuntimeException
        See Also:
        Object.clone()
        +
      • +
      + + + + + +
        +
      • +

        containsEdge

        +
        public boolean containsEdge(E e)
        +
        Description copied from interface: Graph
        +
        Returns true if this graph contains the specified edge. More + formally, returns true if and only if this graph contains an + edge e2 such that e.equals(e2). If the + specified edge is null returns false.
        +
        +
        Specified by:
        +
        containsEdge in interface Graph<V,E>
        +
        Parameters:
        e - edge whose presence in this graph is to be tested.
        +
        Returns:
        true if this graph contains the specified edge.
        See Also:
        Graph.containsEdge(Object)
        +
      • +
      + + + + + +
        +
      • +

        containsVertex

        +
        public boolean containsVertex(V v)
        +
        Description copied from interface: Graph
        +
        Returns true if this graph contains the specified vertex. More + formally, returns true if and only if this graph contains a + vertex u such that u.equals(v). If the + specified vertex is null returns false.
        +
        +
        Specified by:
        +
        containsVertex in interface Graph<V,E>
        +
        Parameters:
        v - vertex whose presence in this graph is to be tested.
        +
        Returns:
        true if this graph contains the specified vertex.
        See Also:
        Graph.containsVertex(Object)
        +
      • +
      + + + + + + + + + +
        +
      • +

        edgeSet

        +
        public Set<E> edgeSet()
        +
        Description copied from interface: Graph
        +
        Returns a set of the edges contained in this graph. The set is backed by + the graph, so changes to the graph are reflected in the set. If the graph + is modified while an iteration over the set is in progress, the results + of the iteration are undefined. + +

        The graph implementation may maintain a particular set ordering (e.g. + via LinkedHashSet) for deterministic iteration, but + this is not required. It is the responsibility of callers who rely on + this behavior to only use graph implementations which support it.

        +
        +
        Specified by:
        +
        edgeSet in interface Graph<V,E>
        +
        Returns:
        a set of the edges contained in this graph.
        See Also:
        Graph.edgeSet()
        +
      • +
      + + + + + +
        +
      • +

        edgesOf

        +
        public Set<E> edgesOf(V vertex)
        +
        Description copied from interface: Graph
        +
        Returns a set of all edges touching the specified vertex. If no edges are + touching the specified vertex returns an empty set.
        +
        +
        Specified by:
        +
        edgesOf in interface Graph<V,E>
        +
        Parameters:
        vertex - the vertex for which a set of touching edges is to be + returned.
        +
        Returns:
        a set of all edges touching the specified vertex.
        See Also:
        Graph.edgesOf(Object)
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        removeEdge

        +
        public E removeEdge(V sourceVertex,
        +           V targetVertex)
        +
        Description copied from interface: Graph
        +
        Removes an edge going from source vertex to target vertex, if such + vertices and such edge exist in this graph. Returns the edge if removed + or null otherwise.
        +
        +
        Specified by:
        +
        removeEdge in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The removed edge, or null if no edge removed.
        See Also:
        Graph.removeEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        removeEdge

        +
        public boolean removeEdge(E e)
        +
        Description copied from interface: Graph
        +
        Removes the specified edge from the graph. Removes the specified edge + from this graph if it is present. More formally, removes an edge + e2 such that e2.equals(e), if the graph contains such + edge. Returns true if the graph contained the specified edge. + (The graph will not contain the specified edge once the call returns). + +

        If the specified edge is null returns + false.

        +
        +
        Specified by:
        +
        removeEdge in interface Graph<V,E>
        +
        Parameters:
        e - edge to be removed from this graph, if present.
        +
        Returns:
        true if and only if the graph contained the + specified edge.
        See Also:
        Graph.removeEdge(Object)
        +
      • +
      + + + + + +
        +
      • +

        removeVertex

        +
        public boolean removeVertex(V v)
        +
        Description copied from interface: Graph
        +
        Removes the specified vertex from this graph including all its touching + edges if present. More formally, if the graph contains a vertex + u such that u.equals(v), the call removes all edges + that touch u and then removes u itself. If no + such u is found, the call leaves the graph unchanged. + Returns true if the graph contained the specified vertex. (The + graph will not contain the specified vertex once the call returns). + +

        If the specified vertex is null returns + false.

        +
        +
        Specified by:
        +
        removeVertex in interface Graph<V,E>
        +
        Parameters:
        v - vertex to be removed from this graph, if present.
        +
        Returns:
        true if the graph contained the specified vertex; + false otherwise.
        See Also:
        Graph.removeVertex(Object)
        +
      • +
      + + + +
        +
      • +

        vertexSet

        +
        public Set<V> vertexSet()
        +
        Description copied from interface: Graph
        +
        Returns a set of the vertices contained in this graph. The set is backed + by the graph, so changes to the graph are reflected in the set. If the + graph is modified while an iteration over the set is in progress, the + results of the iteration are undefined. + +

        The graph implementation may maintain a particular set ordering (e.g. + via LinkedHashSet) for deterministic iteration, but + this is not required. It is the responsibility of callers who rely on + this behavior to only use graph implementations which support it.

        +
        +
        Specified by:
        +
        vertexSet in interface Graph<V,E>
        +
        Returns:
        a set view of the vertices contained in this graph.
        See Also:
        Graph.vertexSet()
        +
      • +
      + + + + + +
        +
      • +

        getEdgeWeight

        +
        public double getEdgeWeight(E e)
        +
        Description copied from interface: Graph
        +
        Returns the weight assigned to a given edge. Unweighted graphs return 1.0 + (as defined by WeightedGraph.DEFAULT_EDGE_WEIGHT), allowing + weighted-graph algorithms to apply to them where meaningful.
        +
        +
        Specified by:
        +
        getEdgeWeight in interface Graph<V,E>
        +
        Parameters:
        e - edge of interest
        +
        Returns:
        edge weight
        See Also:
        Graph.getEdgeWeight(Object)
        +
      • +
      + + + + + + + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/AbstractGraph.html b/javadoc/org/jgrapht/graph/AbstractGraph.html new file mode 100644 index 0000000..6dc9efc --- /dev/null +++ b/javadoc/org/jgrapht/graph/AbstractGraph.html @@ -0,0 +1,533 @@ + + + + + + +AbstractGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class AbstractGraph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AbstractGraph

        +
        protected AbstractGraph()
        +
        Construct a new empty graph object.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        containsEdge

        +
        public boolean containsEdge(V sourceVertex,
        +                   V targetVertex)
        +
        Description copied from interface: Graph
        +
        Returns true if and only if this graph contains an edge going + from the source vertex to the target vertex. In undirected graphs the + same result is obtained when source and target are inverted. If any of + the specified vertices does not exist in the graph, or if is + null, returns false.
        +
        +
        Specified by:
        +
        containsEdge in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        true if this graph contains the specified edge.
        See Also:
        Graph.containsEdge(Object, Object)
        +
      • +
      + + + +
        +
      • +

        removeAllEdges

        +
        public boolean removeAllEdges(Collection<? extends E> edges)
        +
        Description copied from interface: Graph
        +
        Removes all the edges in this graph that are also contained in the + specified edge collection. After this call returns, this graph will + contain no edges in common with the specified edges. This method will + invoke the Graph.removeEdge(Object) method.
        +
        +
        Specified by:
        +
        removeAllEdges in interface Graph<V,E>
        +
        Parameters:
        edges - edges to be removed from this graph.
        +
        Returns:
        true if this graph changed as a result of the call
        See Also:
        Graph.removeAllEdges(Collection)
        +
      • +
      + + + + + +
        +
      • +

        removeAllEdges

        +
        public Set<E> removeAllEdges(V sourceVertex,
        +                    V targetVertex)
        +
        Description copied from interface: Graph
        +
        Removes all the edges going from the specified source vertex to the + specified target vertex, and returns a set of all removed edges. Returns + null if any of the specified vertices does not exist in the + graph. If both vertices exist but no edge is found, returns an empty set. + This method will either invoke the Graph.removeEdge(Object) method, or + the Graph.removeEdge(Object, Object) method.
        +
        +
        Specified by:
        +
        removeAllEdges in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        the removed edges, or null if either vertex is not + part of graph
        See Also:
        Graph.removeAllEdges(Object, Object)
        +
      • +
      + + + +
        +
      • +

        removeAllVertices

        +
        public boolean removeAllVertices(Collection<? extends V> vertices)
        +
        Description copied from interface: Graph
        +
        Removes all the vertices in this graph that are also contained in the + specified vertex collection. After this call returns, this graph will + contain no vertices in common with the specified vertices. This method + will invoke the Graph.removeVertex(Object) method.
        +
        +
        Specified by:
        +
        removeAllVertices in interface Graph<V,E>
        +
        Parameters:
        vertices - vertices to be removed from this graph.
        +
        Returns:
        true if this graph changed as a result of the call
        See Also:
        Graph.removeAllVertices(Collection)
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public String toString()
        +
        Returns a string of the parenthesized pair (V, E) representing this + G=(V,E) graph. 'V' is the string representation of the vertex set, and + 'E' is the string representation of the edge set.
        +
        +
        Overrides:
        +
        toString in class Object
        +
        Returns:
        a string representation of this graph.
        +
      • +
      + + + + + +
        +
      • +

        assertVertexExist

        +
        protected boolean assertVertexExist(V v)
        +
        Ensures that the specified vertex exists in this graph, or else throws + exception.
        +
        Parameters:
        v - vertex
        +
        Returns:
        true if this assertion holds.
        +
        Throws:
        +
        NullPointerException - if specified vertex is null.
        +
        IllegalArgumentException - if specified vertex does not exist in + this graph.
        +
      • +
      + + + + + +
        +
      • +

        removeAllEdges

        +
        protected boolean removeAllEdges(E[] edges)
        +
        Removes all the edges in this graph that are also contained in the + specified edge array. After this call returns, this graph will contain no + edges in common with the specified edges. This method will invoke the + Graph.removeEdge(Object) method.
        +
        Parameters:
        edges - edges to be removed from this graph.
        +
        Returns:
        true if this graph changed as a result of the call.
        See Also:
        Graph.removeEdge(Object), +Graph.containsEdge(Object)
        +
      • +
      + + + +
        +
      • +

        toStringFromSets

        +
        protected String toStringFromSets(Collection<? extends V> vertexSet,
        +                      Collection<? extends E> edgeSet,
        +                      boolean directed)
        +
        Helper for subclass implementations of toString( ).
        +
        Parameters:
        vertexSet - the vertex set V to be printed
        edgeSet - the edge set E to be printed
        directed - true to use parens for each edge (representing directed); + false to use curly braces (representing undirected)
        +
        Returns:
        a string representation of (V,E)
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        Returns a hash code value for this graph. The hash code of a graph is + defined to be the sum of the hash codes of vertices and edges in the + graph. It is also based on graph topology and edges weights.
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        Returns:
        the hash code value this graph
        See Also:
        Object.hashCode()
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(Object obj)
        +
        Indicates whether some other object is "equal to" this graph. Returns + true if the given object is also a graph, the two graphs are + instances of the same graph class, have identical vertices and edges sets + with the same weights.
        +
        +
        Overrides:
        +
        equals in class Object
        +
        Parameters:
        obj - object to be compared for equality with this graph
        +
        Returns:
        true if the specified object is equal to this graph
        See Also:
        Object.equals(Object)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/AsUndirectedGraph.html b/javadoc/org/jgrapht/graph/AsUndirectedGraph.html new file mode 100644 index 0000000..0cd6567 --- /dev/null +++ b/javadoc/org/jgrapht/graph/AsUndirectedGraph.html @@ -0,0 +1,601 @@ + + + + + + +AsUndirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class AsUndirectedGraph<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, Graph<V,E>, UndirectedGraph<V,E>
    +
    +
    +
    +
    public class AsUndirectedGraph<V,E>
    +extends GraphDelegator<V,E>
    +implements Serializable, UndirectedGraph<V,E>
    +
    An undirected view of the backing directed graph specified in the + constructor. This graph allows modules to apply algorithms designed for + undirected graphs to a directed graph by simply ignoring edge direction. If + the backing directed graph is an oriented graph, + then the view will be a simple graph; otherwise, it will be a multigraph. + Query operations on this graph "read through" to the backing graph. Attempts + to add edges will result in an UnsupportedOperationException, + but vertex addition/removal and edge removal are all supported (and + immediately reflected in the backing graph). + +

    Note that edges returned by this graph's accessors are really just the + edges of the underlying directed graph. Since there is no interface + distinction between directed and undirected edges, this detail should be + irrelevant to algorithms.

    + +

    This graph does not pass the hashCode and equals operations through + to the backing graph, but relies on Object's equals and + hashCode methods. This graph will be serializable if the backing + graph is serializable.

    +
    Since:
    +
    Aug 14, 2003
    +
    Author:
    +
    John V. Sichi
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AsUndirectedGraph

        +
        public AsUndirectedGraph(DirectedGraph<V,E> g)
        +
        Constructor for AsUndirectedGraph.
        +
        Parameters:
        g - the backing directed graph over which an undirected view is to + be created.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getAllEdges

        +
        public Set<E> getAllEdges(V sourceVertex,
        +                 V targetVertex)
        +
        Description copied from interface: Graph
        +
        Returns a set of all edges connecting source vertex to target vertex if + such vertices exist in this graph. If any of the vertices does not exist + or is null, returns null. If both vertices + exist but no edges found, returns an empty set. + +

        In undirected graphs, some of the returned edges may have their source + and target vertices in the opposite order. In simple graphs the returned + set is either singleton set or empty set.

        +
        +
        Specified by:
        +
        getAllEdges in interface Graph<V,E>
        +
        Overrides:
        +
        getAllEdges in class GraphDelegator<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        a set of all edges connecting source vertex to target vertex.
        See Also:
        Graph.getAllEdges(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        getEdge

        +
        public E getEdge(V sourceVertex,
        +        V targetVertex)
        +
        Description copied from interface: Graph
        +
        Returns an edge connecting source vertex to target vertex if such + vertices and such edge exist in this graph. Otherwise returns + null. If any of the specified vertices is null + returns null + +

        In undirected graphs, the returned edge may have its source and target + vertices in the opposite order.

        +
        +
        Specified by:
        +
        getEdge in interface Graph<V,E>
        +
        Overrides:
        +
        getEdge in class GraphDelegator<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        an edge connecting source vertex to target vertex.
        See Also:
        Graph.getEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        public E addEdge(V sourceVertex,
        +        V targetVertex)
        +
        Description copied from interface: Graph
        +
        Creates a new edge in this graph, going from the source vertex to the + target vertex, and returns the created edge. Some graphs do not allow + edge-multiplicity. In such cases, if the graph already contains an edge + from the specified source to the specified target, than this method does + not change the graph and returns null. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        + +

        This method creates the new edge e using this graph's + EdgeFactory. For the new edge to be added e + must not be equal to any other edge the graph (even if the graph + allows edge-multiplicity). More formally, the graph must not contain any + edge e2 such that e2.equals(e). If such + e2 is found then the newly created edge e is + abandoned, the method leaves this graph unchanged returns + null.

        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Overrides:
        +
        addEdge in class GraphDelegator<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The newly created edge if added to the graph, otherwise + null.
        See Also:
        Graph.addEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        public boolean addEdge(V sourceVertex,
        +              V targetVertex,
        +              E e)
        +
        Description copied from interface: Graph
        +
        Adds the specified edge to this graph, going from the source vertex to + the target vertex. More formally, adds the specified edge, + e, to this graph if this graph contains no edge e2 + such that e2.equals(e). If this graph already contains such + an edge, the call leaves this graph unchanged and returns false. + Some graphs do not allow edge-multiplicity. In such cases, if the graph + already contains an edge from the specified source to the specified + target, than this method does not change the graph and returns + false. If the edge was added to the graph, returns + true. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Overrides:
        +
        addEdge in class GraphDelegator<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        e - edge to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + edge.
        See Also:
        Graph.addEdge(Object, Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        degreeOf

        +
        public int degreeOf(V vertex)
        +
        Description copied from interface: UndirectedGraph
        +
        Returns the degree of the specified vertex. A degree of a vertex in an + undirected graph is the number of edges touching that vertex.
        +
        +
        Specified by:
        +
        degreeOf in interface UndirectedGraph<V,E>
        +
        Overrides:
        +
        degreeOf in class GraphDelegator<V,E>
        +
        Parameters:
        vertex - vertex whose degree is to be calculated.
        +
        Returns:
        the degree of the specified vertex.
        See Also:
        UndirectedGraph.degreeOf(Object)
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        toString

        +
        public String toString()
        +
        Description copied from class: AbstractGraph
        +
        Returns a string of the parenthesized pair (V, E) representing this + G=(V,E) graph. 'V' is the string representation of the vertex set, and + 'E' is the string representation of the edge set.
        +
        +
        Overrides:
        +
        toString in class GraphDelegator<V,E>
        +
        Returns:
        a string representation of this graph.
        See Also:
        AbstractGraph.toString()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/AsUnweightedDirectedGraph.html b/javadoc/org/jgrapht/graph/AsUnweightedDirectedGraph.html new file mode 100644 index 0000000..098a40b --- /dev/null +++ b/javadoc/org/jgrapht/graph/AsUnweightedDirectedGraph.html @@ -0,0 +1,309 @@ + + + + + + +AsUnweightedDirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class AsUnweightedDirectedGraph<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, DirectedGraph<V,E>, Graph<V,E>
    +
    +
    +
    +
    public class AsUnweightedDirectedGraph<V,E>
    +extends AsUnweightedGraph<V,E>
    +implements DirectedGraph<V,E>
    +
    An unweighted view of the backing weighted graph specified in the + constructor. This graph allows modules to apply algorithms designed for + unweighted graphs to a weighted graph by simply ignoring edge weights. Query + operations on this graph "read through" to the backing graph. Vertex + addition/removal and edge addition/removal are all supported (and immediately + reflected in the backing graph). + +

    Note that edges returned by this graph's accessors are really just the + edges of the underlying directed graph.

    + +

    This graph does not pass the hashCode and equals operations through + to the backing graph, but relies on Object's equals and + hashCode methods. This graph will be serializable if the backing + graph is serializable.

    +
    Since:
    +
    Sep 7, 2007
    +
    Author:
    +
    Lucas J. Scharenbroich, Joris Kinable
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AsUnweightedDirectedGraph

        +
        public AsUnweightedDirectedGraph(DirectedGraph<V,E> g)
        +
        Constructor for AsUnweightedGraph.
        +
        Parameters:
        g - the backing graph over which an unweighted view is to be + created.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/AsUnweightedGraph.html b/javadoc/org/jgrapht/graph/AsUnweightedGraph.html new file mode 100644 index 0000000..bb8925a --- /dev/null +++ b/javadoc/org/jgrapht/graph/AsUnweightedGraph.html @@ -0,0 +1,337 @@ + + + + + + +AsUnweightedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class AsUnweightedGraph<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, Graph<V,E>
    +
    +
    +
    Direct Known Subclasses:
    +
    AsUnweightedDirectedGraph
    +
    +
    +
    +
    public class AsUnweightedGraph<V,E>
    +extends GraphDelegator<V,E>
    +implements Serializable
    +
    An unweighted view of the backing weighted graph specified in the + constructor. This graph allows modules to apply algorithms designed for + unweighted graphs to a weighted graph by simply ignoring edge weights. Query + operations on this graph "read through" to the backing graph. Vertex + addition/removal and edge addition/removal are all supported (and immediately + reflected in the backing graph). + +

    Note that edges returned by this graph's accessors are really just the + edges of the underlying directed graph.

    + +

    This graph does not pass the hashCode and equals operations through + to the backing graph, but relies on Object's equals and + hashCode methods. This graph will be serializable if the backing + graph is serializable.

    +
    Since:
    +
    Sep 7, 2007
    +
    Author:
    +
    Lucas J. Scharenbroich
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AsUnweightedGraph

        +
        public AsUnweightedGraph(Graph<V,E> g)
        +
        Constructor for AsUnweightedGraph.
        +
        Parameters:
        g - the backing graph over which an unweighted view is to be + created.
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/AsWeightedDirectedGraph.html b/javadoc/org/jgrapht/graph/AsWeightedDirectedGraph.html new file mode 100644 index 0000000..1f6c53a --- /dev/null +++ b/javadoc/org/jgrapht/graph/AsWeightedDirectedGraph.html @@ -0,0 +1,341 @@ + + + + + + +AsWeightedDirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class AsWeightedDirectedGraph<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, DirectedGraph<V,E>, Graph<V,E>, WeightedGraph<V,E>
    +
    +
    +
    +
    public class AsWeightedDirectedGraph<V,E>
    +extends AsWeightedGraph<V,E>
    +implements DirectedGraph<V,E>
    +

    A weighted view of the backing graph specified in the constructor. This + allows you to apply algorithms designed for weighted graphs to an unweighted + graph by providing an explicit edge weight mapping. The implementation also + allows for "masking" weights for a subset of the edges in an existing + weighted graph.

    + +

    Query operations on this graph "read through" to the backing graph. Vertex + addition/removal and edge addition/removal are all supported (and immediately + reflected in the backing graph). Setting an edge weight will pass the + operation to the backing graph as well if the backing graph implements the + WeightedGraph interface. Setting an edge weight will modify the weight map in + order to maintain a consistent graph.

    + +

    Note that edges returned by this graph's accessors are really just the + edges of the underlying directed graph.

    + +

    This graph does not pass the hashCode and equals operations through + to the backing graph, but relies on Object's equals and + hashCode methods. This graph will be serializable if the backing + graph is serializable.

    +
    Since:
    +
    Aug 20, 2015
    +
    Author:
    +
    Joris Kinable
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AsWeightedDirectedGraph

        +
        public AsWeightedDirectedGraph(DirectedGraph<V,E> g,
        +                       Map<E,Double> weightMap)
        +
        Constructor for AsWeightedGraph.
        +
        Parameters:
        g - the backing graph over which a weighted view is to be created.
        weightMap - A mapping of edges to weights. If an edge is not present + in the weight map, the edge weight for the underlying graph is returned. + Note that a live reference to this map is retained, so if the caller + changes the map after construction, the changes will affect the
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/AsWeightedGraph.html b/javadoc/org/jgrapht/graph/AsWeightedGraph.html new file mode 100644 index 0000000..45161ae --- /dev/null +++ b/javadoc/org/jgrapht/graph/AsWeightedGraph.html @@ -0,0 +1,418 @@ + + + + + + +AsWeightedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class AsWeightedGraph<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, Graph<V,E>, WeightedGraph<V,E>
    +
    +
    +
    Direct Known Subclasses:
    +
    AsWeightedDirectedGraph
    +
    +
    +
    +
    public class AsWeightedGraph<V,E>
    +extends GraphDelegator<V,E>
    +implements Serializable, WeightedGraph<V,E>
    +

    A weighted view of the backing graph specified in the constructor. This + graph allows modules to apply algorithms designed for weighted graphs to an + unweighted graph by providing an explicit edge weight mapping. The + implementation also allows for "masking" weights for a subset of the edges in + an existing weighted graph.

    + +

    Query operations on this graph "read through" to the backing graph. Vertex + addition/removal and edge addition/removal are all supported (and immediately + reflected in the backing graph). Setting an edge weight will pass the + operation to the backing graph as well if the backing graph implements the + WeightedGraph interface. Setting an edge weight will modify the weight map in + order to maintain a consistent graph.

    + +

    Note that edges returned by this graph's accessors are really just the + edges of the underlying directed graph.

    + +

    This graph does not pass the hashCode and equals operations through + to the backing graph, but relies on Object's equals and + hashCode methods. This graph will be serializable if the backing + graph is serializable.

    +
    Since:
    +
    Sep 10, 2007
    +
    Author:
    +
    Lucas J. Scharenbroich
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        weightMap

        +
        protected final Map<E,Double> weightMap
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AsWeightedGraph

        +
        public AsWeightedGraph(Graph<V,E> g,
        +               Map<E,Double> weightMap)
        +
        Constructor for AsWeightedGraph.
        +
        Parameters:
        g - the backing graph over which a weighted view is to be created.
        weightMap - A mapping of edges to weights. If an edge is not present + in the weight map, the edge weight for the underlying graph is returned. + Note that a live reference to this map is retained, so if the caller + changes the map after construction, the changes will affect the + AsWeightedGraph instance as well.
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/ClassBasedEdgeFactory.html b/javadoc/org/jgrapht/graph/ClassBasedEdgeFactory.html new file mode 100644 index 0000000..8d71d11 --- /dev/null +++ b/javadoc/org/jgrapht/graph/ClassBasedEdgeFactory.html @@ -0,0 +1,285 @@ + + + + + + +ClassBasedEdgeFactory (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class ClassBasedEdgeFactory<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClassBasedEdgeFactory

        +
        public ClassBasedEdgeFactory(Class<? extends E> edgeClass)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        createEdge

        +
        public E createEdge(V source,
        +           V target)
        +
        Description copied from interface: EdgeFactory
        +
        Creates a new edge whose endpoints are the specified source and target + vertices.
        +
        +
        Specified by:
        +
        createEdge in interface EdgeFactory<V,E>
        +
        Parameters:
        source - the source vertex.
        target - the target vertex.
        +
        Returns:
        a new edge whose endpoints are the specified source and target + vertices.
        See Also:
        EdgeFactory.createEdge(Object, Object)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/ClassBasedVertexFactory.html b/javadoc/org/jgrapht/graph/ClassBasedVertexFactory.html new file mode 100644 index 0000000..00b500f --- /dev/null +++ b/javadoc/org/jgrapht/graph/ClassBasedVertexFactory.html @@ -0,0 +1,276 @@ + + + + + + +ClassBasedVertexFactory (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class ClassBasedVertexFactory<V>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    VertexFactory<V>
    +
    +
    +
    +
    public class ClassBasedVertexFactory<V>
    +extends Object
    +implements VertexFactory<V>
    +
    A VertexFactory for producing vertices by using a class as a factory.
    +
    Since:
    +
    July 5, 2007
    +
    Author:
    +
    Guillaume Boulmier
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/DefaultDirectedGraph.html b/javadoc/org/jgrapht/graph/DefaultDirectedGraph.html new file mode 100644 index 0000000..c43cfe5 --- /dev/null +++ b/javadoc/org/jgrapht/graph/DefaultDirectedGraph.html @@ -0,0 +1,360 @@ + + + + + + +DefaultDirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class DefaultDirectedGraph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultDirectedGraph

        +
        public DefaultDirectedGraph(Class<? extends E> edgeClass)
        +
        Creates a new directed graph.
        +
        Parameters:
        edgeClass - class on which to base factory for edges
        +
      • +
      + + + +
        +
      • +

        DefaultDirectedGraph

        +
        public DefaultDirectedGraph(EdgeFactory<V,E> ef)
        +
        Creates a new directed graph with the specified edge factory.
        +
        Parameters:
        ef - the edge factory of the new graph.
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/DefaultDirectedWeightedGraph.html b/javadoc/org/jgrapht/graph/DefaultDirectedWeightedGraph.html new file mode 100644 index 0000000..864d1b6 --- /dev/null +++ b/javadoc/org/jgrapht/graph/DefaultDirectedWeightedGraph.html @@ -0,0 +1,381 @@ + + + + + + +DefaultDirectedWeightedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class DefaultDirectedWeightedGraph<V,E>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/DefaultEdge.html b/javadoc/org/jgrapht/graph/DefaultEdge.html new file mode 100644 index 0000000..7642e8b --- /dev/null +++ b/javadoc/org/jgrapht/graph/DefaultEdge.html @@ -0,0 +1,329 @@ + + + + + + +DefaultEdge (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class DefaultEdge

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultEdge

        +
        public DefaultEdge()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getSource

        +
        protected Object getSource()
        +
        Retrieves the source of this edge. This is protected, for use by + subclasses only (e.g. for implementing toString).
        +
        Returns:
        source of this edge
        +
      • +
      + + + +
        +
      • +

        getTarget

        +
        protected Object getTarget()
        +
        Retrieves the target of this edge. This is protected, for use by + subclasses only (e.g. for implementing toString).
        +
        Returns:
        target of this edge
        +
      • +
      + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/DefaultGraphMapping.html b/javadoc/org/jgrapht/graph/DefaultGraphMapping.html new file mode 100644 index 0000000..0232ab0 --- /dev/null +++ b/javadoc/org/jgrapht/graph/DefaultGraphMapping.html @@ -0,0 +1,324 @@ + + + + + + +DefaultGraphMapping (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class DefaultGraphMapping<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    GraphMapping<V,E>
    +
    +
    +
    +
    public class DefaultGraphMapping<V,E>
    +extends Object
    +implements GraphMapping<V,E>
    +
    Implementation of the GraphMapping interface. The performance of + getVertex/EdgeCorrespondence is based on the performance of the + concrete Map class which is passed in the constructor. For example, using + hashmaps will provide O(1) performence.
    +
    Since:
    +
    Jul 30, 2005
    +
    Author:
    +
    Assaf
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultGraphMapping

        +
        public DefaultGraphMapping(Map<V,V> g1ToG2,
        +                   Map<V,V> g2ToG1,
        +                   Graph<V,E> g1,
        +                   Graph<V,E> g2)
        +
        The maps themselves are used. There is no defensive-copy. Assumption: The + key and value in the mappings are of valid graph objects. It is not + checked.
        +
        Parameters:
        g1ToG2 -
        g2ToG1 -
        g1 -
        g2 -
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getEdgeCorrespondence

        +
        public E getEdgeCorrespondence(E currEdge,
        +                      boolean forward)
        +
        Description copied from interface: GraphMapping
        +
        Gets the mapped value where the key is edge
        +
        +
        Specified by:
        +
        getEdgeCorrespondence in interface GraphMapping<V,E>
        +
        Parameters:
        currEdge - edge in one of the graphs
        forward - if true, uses mapping from graph1 to graph2; if false, use + mapping from graph2 to graph1
        +
        Returns:
        corresponding edge in other graph, or null if none
        +
      • +
      + + + + + +
        +
      • +

        getVertexCorrespondence

        +
        public V getVertexCorrespondence(V keyVertex,
        +                        boolean forward)
        +
        Description copied from interface: GraphMapping
        +
        Gets the mapped value where the key is vertex
        +
        +
        Specified by:
        +
        getVertexCorrespondence in interface GraphMapping<V,E>
        +
        Parameters:
        keyVertex - vertex in one of the graphs
        forward - if true, uses mapping from graph1 to graph2; if false, use + mapping from graph2 to graph1
        +
        Returns:
        corresponding vertex in other graph, or null if none
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/DefaultListenableGraph.html b/javadoc/org/jgrapht/graph/DefaultListenableGraph.html new file mode 100644 index 0000000..5325234 --- /dev/null +++ b/javadoc/org/jgrapht/graph/DefaultListenableGraph.html @@ -0,0 +1,789 @@ + + + + + + +DefaultListenableGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class DefaultListenableGraph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultListenableGraph

        +
        public DefaultListenableGraph(Graph<V,E> g)
        +
        Creates a new listenable graph.
        +
        Parameters:
        g - the backing graph.
        +
      • +
      + + + +
        +
      • +

        DefaultListenableGraph

        +
        public DefaultListenableGraph(Graph<V,E> g,
        +                      boolean reuseEvents)
        +
        Creates a new listenable graph. If the reuseEvents flag is + set to true this class will reuse previously fired events + and will not create a new object for each event. This option increases + performance but should be used with care, especially in multithreaded + environment.
        +
        Parameters:
        g - the backing graph.
        reuseEvents - whether to reuse previously fired event objects + instead of creating a new event object for each event.
        +
        Throws:
        +
        IllegalArgumentException - if the backing graph is already a + listenable graph.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setReuseEvents

        +
        public void setReuseEvents(boolean reuseEvents)
        +
        If the reuseEvents flag is set to true this + class will reuse previously fired events and will not create a new object + for each event. This option increases performance but should be used with + care, especially in multithreaded environment.
        +
        Parameters:
        reuseEvents - whether to reuse previously fired event objects + instead of creating a new event object for each event.
        +
      • +
      + + + +
        +
      • +

        isReuseEvents

        +
        public boolean isReuseEvents()
        +
        Tests whether the reuseEvents flag is set. If the flag is + set to true this class will reuse previously fired events + and will not create a new object for each event. This option increases + performance but should be used with care, especially in multithreaded + environment.
        +
        Returns:
        the value of the reuseEvents flag.
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        public E addEdge(V sourceVertex,
        +        V targetVertex)
        +
        Description copied from interface: Graph
        +
        Creates a new edge in this graph, going from the source vertex to the + target vertex, and returns the created edge. Some graphs do not allow + edge-multiplicity. In such cases, if the graph already contains an edge + from the specified source to the specified target, than this method does + not change the graph and returns null. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        + +

        This method creates the new edge e using this graph's + EdgeFactory. For the new edge to be added e + must not be equal to any other edge the graph (even if the graph + allows edge-multiplicity). More formally, the graph must not contain any + edge e2 such that e2.equals(e). If such + e2 is found then the newly created edge e is + abandoned, the method leaves this graph unchanged returns + null.

        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Overrides:
        +
        addEdge in class GraphDelegator<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The newly created edge if added to the graph, otherwise + null.
        See Also:
        Graph.addEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        public boolean addEdge(V sourceVertex,
        +              V targetVertex,
        +              E e)
        +
        Description copied from interface: Graph
        +
        Adds the specified edge to this graph, going from the source vertex to + the target vertex. More formally, adds the specified edge, + e, to this graph if this graph contains no edge e2 + such that e2.equals(e). If this graph already contains such + an edge, the call leaves this graph unchanged and returns false. + Some graphs do not allow edge-multiplicity. In such cases, if the graph + already contains an edge from the specified source to the specified + target, than this method does not change the graph and returns + false. If the edge was added to the graph, returns + true. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Overrides:
        +
        addEdge in class GraphDelegator<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        e - edge to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + edge.
        See Also:
        Graph.addEdge(Object, Object, Object)
        +
      • +
      + + + + + + + + + +
        +
      • +

        addVertex

        +
        public boolean addVertex(V v)
        +
        Description copied from interface: Graph
        +
        Adds the specified vertex to this graph if not already present. More + formally, adds the specified vertex, v, to this graph if + this graph contains no vertex u such that + u.equals(v). If this graph already contains such vertex, the call + leaves this graph unchanged and returns false. In combination + with the restriction on constructors, this ensures that graphs never + contain duplicate vertices.
        +
        +
        Specified by:
        +
        addVertex in interface Graph<V,E>
        +
        Overrides:
        +
        addVertex in class GraphDelegator<V,E>
        +
        Parameters:
        v - vertex to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + vertex.
        See Also:
        Graph.addVertex(Object)
        +
      • +
      + + + + + + + + + + + + + +
        +
      • +

        removeEdge

        +
        public E removeEdge(V sourceVertex,
        +           V targetVertex)
        +
        Description copied from interface: Graph
        +
        Removes an edge going from source vertex to target vertex, if such + vertices and such edge exist in this graph. Returns the edge if removed + or null otherwise.
        +
        +
        Specified by:
        +
        removeEdge in interface Graph<V,E>
        +
        Overrides:
        +
        removeEdge in class GraphDelegator<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The removed edge, or null if no edge removed.
        See Also:
        Graph.removeEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        removeEdge

        +
        public boolean removeEdge(E e)
        +
        Description copied from interface: Graph
        +
        Removes the specified edge from the graph. Removes the specified edge + from this graph if it is present. More formally, removes an edge + e2 such that e2.equals(e), if the graph contains such + edge. Returns true if the graph contained the specified edge. + (The graph will not contain the specified edge once the call returns). + +

        If the specified edge is null returns + false.

        +
        +
        Specified by:
        +
        removeEdge in interface Graph<V,E>
        +
        Overrides:
        +
        removeEdge in class GraphDelegator<V,E>
        +
        Parameters:
        e - edge to be removed from this graph, if present.
        +
        Returns:
        true if and only if the graph contained the + specified edge.
        See Also:
        Graph.removeEdge(Object)
        +
      • +
      + + + + + + + + + +
        +
      • +

        removeVertex

        +
        public boolean removeVertex(V v)
        +
        Description copied from interface: Graph
        +
        Removes the specified vertex from this graph including all its touching + edges if present. More formally, if the graph contains a vertex + u such that u.equals(v), the call removes all edges + that touch u and then removes u itself. If no + such u is found, the call leaves the graph unchanged. + Returns true if the graph contained the specified vertex. (The + graph will not contain the specified vertex once the call returns). + +

        If the specified vertex is null returns + false.

        +
        +
        Specified by:
        +
        removeVertex in interface Graph<V,E>
        +
        Overrides:
        +
        removeVertex in class GraphDelegator<V,E>
        +
        Parameters:
        v - vertex to be removed from this graph, if present.
        +
        Returns:
        true if the graph contained the specified vertex; + false otherwise.
        See Also:
        Graph.removeVertex(Object)
        +
      • +
      + + + + + + + + + +
        +
      • +

        fireEdgeAdded

        +
        protected void fireEdgeAdded(E edge,
        +                 V source,
        +                 V target)
        +
        Notify listeners that the specified edge was added.
        +
        Parameters:
        edge - the edge that was added.
        source - edge source
        target - edge target
        +
      • +
      + + + + + +
        +
      • +

        fireEdgeRemoved

        +
        protected void fireEdgeRemoved(E edge,
        +                   V source,
        +                   V target)
        +
        Notify listeners that the specified edge was removed.
        +
        Parameters:
        edge - the edge that was removed.
        source - edge source
        target - edge target
        +
      • +
      + + + + + +
        +
      • +

        fireVertexAdded

        +
        protected void fireVertexAdded(V vertex)
        +
        Notify listeners that the specified vertex was added.
        +
        Parameters:
        vertex - the vertex that was added.
        +
      • +
      + + + + + +
        +
      • +

        fireVertexRemoved

        +
        protected void fireVertexRemoved(V vertex)
        +
        Notify listeners that the specified vertex was removed.
        +
        Parameters:
        vertex - the vertex that was removed.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/DefaultWeightedEdge.html b/javadoc/org/jgrapht/graph/DefaultWeightedEdge.html new file mode 100644 index 0000000..e8d6770 --- /dev/null +++ b/javadoc/org/jgrapht/graph/DefaultWeightedEdge.html @@ -0,0 +1,302 @@ + + + + + + +DefaultWeightedEdge (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class DefaultWeightedEdge

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, Cloneable
    +
    +
    +
    +
    public class DefaultWeightedEdge
    +extends DefaultEdge
    +
    A default implementation for edges in a WeightedGraph. All access to + the weight of an edge must go through the graph interface, which is why this + class doesn't expose any public methods.
    +
    Author:
    +
    John V. Sichi
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultWeightedEdge

        +
        public DefaultWeightedEdge()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getWeight

        +
        protected double getWeight()
        +
        Retrieves the weight of this edge. This is protected, for use by + subclasses only (e.g. for implementing toString).
        +
        Returns:
        weight of this edge
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/DirectedGraphUnion.html b/javadoc/org/jgrapht/graph/DirectedGraphUnion.html new file mode 100644 index 0000000..fc4ef80 --- /dev/null +++ b/javadoc/org/jgrapht/graph/DirectedGraphUnion.html @@ -0,0 +1,404 @@ + + + + + + +DirectedGraphUnion (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class DirectedGraphUnion<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        inDegreeOf

        +
        public int inDegreeOf(V vertex)
        +
        Description copied from interface: DirectedGraph
        +
        Returns the "in degree" of the specified vertex. An in degree of a vertex + in a directed graph is the number of inward directed edges from that + vertex. See + http://mathworld.wolfram.com/Indegree.html.
        +
        +
        Specified by:
        +
        inDegreeOf in interface DirectedGraph<V,E>
        +
        Parameters:
        vertex - vertex whose degree is to be calculated.
        +
        Returns:
        the degree of the specified vertex.
        +
      • +
      + + + + + +
        +
      • +

        incomingEdgesOf

        +
        public Set<E> incomingEdgesOf(V vertex)
        +
        Description copied from interface: DirectedGraph
        +
        Returns a set of all edges incoming into the specified vertex.
        +
        +
        Specified by:
        +
        incomingEdgesOf in interface DirectedGraph<V,E>
        +
        Parameters:
        vertex - the vertex for which the list of incoming edges to be + returned.
        +
        Returns:
        a set of all edges incoming into the specified vertex.
        +
      • +
      + + + + + +
        +
      • +

        outDegreeOf

        +
        public int outDegreeOf(V vertex)
        +
        Description copied from interface: DirectedGraph
        +
        Returns the "out degree" of the specified vertex. An out degree of a + vertex in a directed graph is the number of outward directed edges from + that vertex. See + http://mathworld.wolfram.com/Outdegree.html.
        +
        +
        Specified by:
        +
        outDegreeOf in interface DirectedGraph<V,E>
        +
        Parameters:
        vertex - vertex whose degree is to be calculated.
        +
        Returns:
        the degree of the specified vertex.
        +
      • +
      + + + + + +
        +
      • +

        outgoingEdgesOf

        +
        public Set<E> outgoingEdgesOf(V vertex)
        +
        Description copied from interface: DirectedGraph
        +
        Returns a set of all edges outgoing from the specified vertex.
        +
        +
        Specified by:
        +
        outgoingEdgesOf in interface DirectedGraph<V,E>
        +
        Parameters:
        vertex - the vertex for which the list of outgoing edges to be + returned.
        +
        Returns:
        a set of all edges outgoing from the specified vertex.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/DirectedMaskSubgraph.html b/javadoc/org/jgrapht/graph/DirectedMaskSubgraph.html new file mode 100644 index 0000000..b2acbfd --- /dev/null +++ b/javadoc/org/jgrapht/graph/DirectedMaskSubgraph.html @@ -0,0 +1,280 @@ + + + + + + +DirectedMaskSubgraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class DirectedMaskSubgraph<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    DirectedGraph<V,E>, Graph<V,E>
    +
    +
    +
    +
    public class DirectedMaskSubgraph<V,E>
    +extends MaskSubgraph<V,E>
    +implements DirectedGraph<V,E>
    +
    A directed graph that is a MaskSubgraph on another graph.
    +
    Since:
    +
    July 5, 2007
    +
    Author:
    +
    Guillaume Boulmier
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/DirectedMultigraph.html b/javadoc/org/jgrapht/graph/DirectedMultigraph.html new file mode 100644 index 0000000..30f2b80 --- /dev/null +++ b/javadoc/org/jgrapht/graph/DirectedMultigraph.html @@ -0,0 +1,357 @@ + + + + + + +DirectedMultigraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class DirectedMultigraph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DirectedMultigraph

        +
        public DirectedMultigraph(Class<? extends E> edgeClass)
        +
        Creates a new directed multigraph.
        +
        Parameters:
        edgeClass - class on which to base factory for edges
        +
      • +
      + + + +
        +
      • +

        DirectedMultigraph

        +
        public DirectedMultigraph(EdgeFactory<V,E> ef)
        +
        Creates a new directed multigraph with the specified edge factory.
        +
        Parameters:
        ef - the edge factory of the new graph.
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/DirectedPseudograph.html b/javadoc/org/jgrapht/graph/DirectedPseudograph.html new file mode 100644 index 0000000..b8ed2fd --- /dev/null +++ b/javadoc/org/jgrapht/graph/DirectedPseudograph.html @@ -0,0 +1,353 @@ + + + + + + +DirectedPseudograph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class DirectedPseudograph<V,E>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/DirectedSubgraph.html b/javadoc/org/jgrapht/graph/DirectedSubgraph.html new file mode 100644 index 0000000..5caeaa2 --- /dev/null +++ b/javadoc/org/jgrapht/graph/DirectedSubgraph.html @@ -0,0 +1,403 @@ + + + + + + +DirectedSubgraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class DirectedSubgraph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DirectedSubgraph

        +
        public DirectedSubgraph(DirectedGraph<V,E> base,
        +                Set<V> vertexSubset,
        +                Set<E> edgeSubset)
        +
        Creates a new directed subgraph.
        +
        Parameters:
        base - the base (backing) graph on which the subgraph will be based.
        vertexSubset - vertices to include in the subgraph. If + null then all vertices are included.
        edgeSubset - edges to in include in the subgraph. If + null then all the edges whose vertices found in the graph are + included.
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/DirectedWeightedMultigraph.html b/javadoc/org/jgrapht/graph/DirectedWeightedMultigraph.html new file mode 100644 index 0000000..a1ef6a8 --- /dev/null +++ b/javadoc/org/jgrapht/graph/DirectedWeightedMultigraph.html @@ -0,0 +1,382 @@ + + + + + + +DirectedWeightedMultigraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class DirectedWeightedMultigraph<V,E>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/DirectedWeightedPseudograph.html b/javadoc/org/jgrapht/graph/DirectedWeightedPseudograph.html new file mode 100644 index 0000000..941ab17 --- /dev/null +++ b/javadoc/org/jgrapht/graph/DirectedWeightedPseudograph.html @@ -0,0 +1,382 @@ + + + + + + +DirectedWeightedPseudograph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class DirectedWeightedPseudograph<V,E>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/DirectedWeightedSubgraph.html b/javadoc/org/jgrapht/graph/DirectedWeightedSubgraph.html new file mode 100644 index 0000000..cb62031 --- /dev/null +++ b/javadoc/org/jgrapht/graph/DirectedWeightedSubgraph.html @@ -0,0 +1,314 @@ + + + + + + +DirectedWeightedSubgraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class DirectedWeightedSubgraph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DirectedWeightedSubgraph

        +
        public DirectedWeightedSubgraph(WeightedGraph<V,E> base,
        +                        Set<V> vertexSubset,
        +                        Set<E> edgeSubset)
        +
        Creates a new weighted directed subgraph.
        +
        Parameters:
        base - the base (backing) graph on which the subgraph will be based.
        vertexSubset - vertices to include in the subgraph. If + null then all vertices are included.
        edgeSubset - edges to in include in the subgraph. If + null then all the edges whose vertices found in the graph are + included.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/EdgeReversedGraph.html b/javadoc/org/jgrapht/graph/EdgeReversedGraph.html new file mode 100644 index 0000000..6ca1d99 --- /dev/null +++ b/javadoc/org/jgrapht/graph/EdgeReversedGraph.html @@ -0,0 +1,686 @@ + + + + + + +EdgeReversedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class EdgeReversedGraph<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, DirectedGraph<V,E>, Graph<V,E>
    +
    +
    +
    +
    public class EdgeReversedGraph<V,E>
    +extends GraphDelegator<V,E>
    +implements DirectedGraph<V,E>
    +
    Provides an edge-reversed view g' of a directed graph g. The vertex sets for + the two graphs are the same, but g' contains an edge (v2, v1) iff g contains + an edge (v1, v2). g' is backed by g, so changes to g are reflected in g', and + vice versa. + +

    This class allows you to use a directed graph algorithm in reverse. For + example, suppose you have a directed graph representing a tree, with edges + from parent to child, and you want to find all of the parents of a node. To + do this, simply create an edge-reversed graph and pass that as input to + DepthFirstIterator.

    +
    Author:
    +
    John V. Sichi
    +
    See Also:
    AsUndirectedGraph, +Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        EdgeReversedGraph

        +
        public EdgeReversedGraph(DirectedGraph<V,E> g)
        +
        Creates a new EdgeReversedGraph.
        +
        Parameters:
        g - the base (backing) graph on which the edge-reversed view will be + based.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getEdge

        +
        public E getEdge(V sourceVertex,
        +        V targetVertex)
        +
        Description copied from interface: Graph
        +
        Returns an edge connecting source vertex to target vertex if such + vertices and such edge exist in this graph. Otherwise returns + null. If any of the specified vertices is null + returns null + +

        In undirected graphs, the returned edge may have its source and target + vertices in the opposite order.

        +
        +
        Specified by:
        +
        getEdge in interface Graph<V,E>
        +
        Overrides:
        +
        getEdge in class GraphDelegator<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        an edge connecting source vertex to target vertex.
        See Also:
        Graph.getEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        getAllEdges

        +
        public Set<E> getAllEdges(V sourceVertex,
        +                 V targetVertex)
        +
        Description copied from interface: Graph
        +
        Returns a set of all edges connecting source vertex to target vertex if + such vertices exist in this graph. If any of the vertices does not exist + or is null, returns null. If both vertices + exist but no edges found, returns an empty set. + +

        In undirected graphs, some of the returned edges may have their source + and target vertices in the opposite order. In simple graphs the returned + set is either singleton set or empty set.

        +
        +
        Specified by:
        +
        getAllEdges in interface Graph<V,E>
        +
        Overrides:
        +
        getAllEdges in class GraphDelegator<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        a set of all edges connecting source vertex to target vertex.
        See Also:
        Graph.getAllEdges(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        public E addEdge(V sourceVertex,
        +        V targetVertex)
        +
        Description copied from interface: Graph
        +
        Creates a new edge in this graph, going from the source vertex to the + target vertex, and returns the created edge. Some graphs do not allow + edge-multiplicity. In such cases, if the graph already contains an edge + from the specified source to the specified target, than this method does + not change the graph and returns null. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        + +

        This method creates the new edge e using this graph's + EdgeFactory. For the new edge to be added e + must not be equal to any other edge the graph (even if the graph + allows edge-multiplicity). More formally, the graph must not contain any + edge e2 such that e2.equals(e). If such + e2 is found then the newly created edge e is + abandoned, the method leaves this graph unchanged returns + null.

        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Overrides:
        +
        addEdge in class GraphDelegator<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The newly created edge if added to the graph, otherwise + null.
        See Also:
        Graph.addEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        public boolean addEdge(V sourceVertex,
        +              V targetVertex,
        +              E e)
        +
        Description copied from interface: Graph
        +
        Adds the specified edge to this graph, going from the source vertex to + the target vertex. More formally, adds the specified edge, + e, to this graph if this graph contains no edge e2 + such that e2.equals(e). If this graph already contains such + an edge, the call leaves this graph unchanged and returns false. + Some graphs do not allow edge-multiplicity. In such cases, if the graph + already contains an edge from the specified source to the specified + target, than this method does not change the graph and returns + false. If the edge was added to the graph, returns + true. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Overrides:
        +
        addEdge in class GraphDelegator<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        e - edge to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + edge.
        See Also:
        Graph.addEdge(Object, Object, Object)
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        removeEdge

        +
        public E removeEdge(V sourceVertex,
        +           V targetVertex)
        +
        Description copied from interface: Graph
        +
        Removes an edge going from source vertex to target vertex, if such + vertices and such edge exist in this graph. Returns the edge if removed + or null otherwise.
        +
        +
        Specified by:
        +
        removeEdge in interface Graph<V,E>
        +
        Overrides:
        +
        removeEdge in class GraphDelegator<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The removed edge, or null if no edge removed.
        See Also:
        Graph.removeEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        getEdgeSource

        +
        public V getEdgeSource(E e)
        +
        Description copied from interface: Graph
        +
        Returns the source vertex of an edge. For an undirected graph, source and + target are distinguishable designations (but without any mathematical + meaning).
        +
        +
        Specified by:
        +
        getEdgeSource in interface Graph<V,E>
        +
        Overrides:
        +
        getEdgeSource in class GraphDelegator<V,E>
        +
        Parameters:
        e - edge of interest
        +
        Returns:
        source vertex
        See Also:
        Graph.getEdgeSource(Object)
        +
      • +
      + + + + + +
        +
      • +

        getEdgeTarget

        +
        public V getEdgeTarget(E e)
        +
        Description copied from interface: Graph
        +
        Returns the target vertex of an edge. For an undirected graph, source and + target are distinguishable designations (but without any mathematical + meaning).
        +
        +
        Specified by:
        +
        getEdgeTarget in interface Graph<V,E>
        +
        Overrides:
        +
        getEdgeTarget in class GraphDelegator<V,E>
        +
        Parameters:
        e - edge of interest
        +
        Returns:
        target vertex
        See Also:
        Graph.getEdgeTarget(Object)
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public String toString()
        +
        Description copied from class: AbstractGraph
        +
        Returns a string of the parenthesized pair (V, E) representing this + G=(V,E) graph. 'V' is the string representation of the vertex set, and + 'E' is the string representation of the edge set.
        +
        +
        Overrides:
        +
        toString in class GraphDelegator<V,E>
        +
        Returns:
        a string representation of this graph.
        See Also:
        Object.toString()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/EdgeSetFactory.html b/javadoc/org/jgrapht/graph/EdgeSetFactory.html new file mode 100644 index 0000000..5f69175 --- /dev/null +++ b/javadoc/org/jgrapht/graph/EdgeSetFactory.html @@ -0,0 +1,225 @@ + + + + + + +EdgeSetFactory (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Interface EdgeSetFactory<V,E>

+
+
+
+
    +
  • +
    +
    +
    public interface EdgeSetFactory<V,E>
    +
    A factory for edge sets. This interface allows the creator of a graph to + choose the Set implementation used internally by the graph + to maintain sets of edges. This provides control over performance tradeoffs + between memory and CPU usage.
    +
    Author:
    +
    John V. Sichi
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      Set<E>createEdgeSet(V vertex) +
      Create a new edge set for a particular vertex.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        createEdgeSet

        +
        Set<E> createEdgeSet(V vertex)
        +
        Create a new edge set for a particular vertex.
        +
        Parameters:
        vertex - the vertex for which the edge set is being created; + sophisticated factories may be able to use this information to choose an + optimal set representation (e.g. ArrayUnenforcedSet for a vertex expected + to have low degree, and LinkedHashSet for a vertex expected to have high + degree)
        +
        Returns:
        new set
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/GraphDelegator.html b/javadoc/org/jgrapht/graph/GraphDelegator.html new file mode 100644 index 0000000..61c1458 --- /dev/null +++ b/javadoc/org/jgrapht/graph/GraphDelegator.html @@ -0,0 +1,937 @@ + + + + + + +GraphDelegator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class GraphDelegator<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GraphDelegator

        +
        public GraphDelegator(Graph<V,E> g)
        +
        Constructor for GraphDelegator.
        +
        Parameters:
        g - the backing graph (the delegate).
        +
        Throws:
        +
        IllegalArgumentException - iff g==null
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getAllEdges

        +
        public Set<E> getAllEdges(V sourceVertex,
        +                 V targetVertex)
        +
        Description copied from interface: Graph
        +
        Returns a set of all edges connecting source vertex to target vertex if + such vertices exist in this graph. If any of the vertices does not exist + or is null, returns null. If both vertices + exist but no edges found, returns an empty set. + +

        In undirected graphs, some of the returned edges may have their source + and target vertices in the opposite order. In simple graphs the returned + set is either singleton set or empty set.

        +
        +
        Specified by:
        +
        getAllEdges in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        a set of all edges connecting source vertex to target vertex.
        See Also:
        Graph.getAllEdges(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        getEdge

        +
        public E getEdge(V sourceVertex,
        +        V targetVertex)
        +
        Description copied from interface: Graph
        +
        Returns an edge connecting source vertex to target vertex if such + vertices and such edge exist in this graph. Otherwise returns + null. If any of the specified vertices is null + returns null + +

        In undirected graphs, the returned edge may have its source and target + vertices in the opposite order.

        +
        +
        Specified by:
        +
        getEdge in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        an edge connecting source vertex to target vertex.
        See Also:
        Graph.getEdge(Object, Object)
        +
      • +
      + + + +
        +
      • +

        getEdgeFactory

        +
        public EdgeFactory<V,E> getEdgeFactory()
        +
        Description copied from interface: Graph
        +
        Returns the edge factory using which this graph creates new edges. The + edge factory is defined when the graph is constructed and must not be + modified.
        +
        +
        Specified by:
        +
        getEdgeFactory in interface Graph<V,E>
        +
        Returns:
        the edge factory using which this graph creates new edges.
        See Also:
        Graph.getEdgeFactory()
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        public E addEdge(V sourceVertex,
        +        V targetVertex)
        +
        Description copied from interface: Graph
        +
        Creates a new edge in this graph, going from the source vertex to the + target vertex, and returns the created edge. Some graphs do not allow + edge-multiplicity. In such cases, if the graph already contains an edge + from the specified source to the specified target, than this method does + not change the graph and returns null. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        + +

        This method creates the new edge e using this graph's + EdgeFactory. For the new edge to be added e + must not be equal to any other edge the graph (even if the graph + allows edge-multiplicity). More formally, the graph must not contain any + edge e2 such that e2.equals(e). If such + e2 is found then the newly created edge e is + abandoned, the method leaves this graph unchanged returns + null.

        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The newly created edge if added to the graph, otherwise + null.
        See Also:
        Graph.addEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        public boolean addEdge(V sourceVertex,
        +              V targetVertex,
        +              E e)
        +
        Description copied from interface: Graph
        +
        Adds the specified edge to this graph, going from the source vertex to + the target vertex. More formally, adds the specified edge, + e, to this graph if this graph contains no edge e2 + such that e2.equals(e). If this graph already contains such + an edge, the call leaves this graph unchanged and returns false. + Some graphs do not allow edge-multiplicity. In such cases, if the graph + already contains an edge from the specified source to the specified + target, than this method does not change the graph and returns + false. If the edge was added to the graph, returns + true. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        e - edge to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + edge.
        See Also:
        Graph.addEdge(Object, Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        addVertex

        +
        public boolean addVertex(V v)
        +
        Description copied from interface: Graph
        +
        Adds the specified vertex to this graph if not already present. More + formally, adds the specified vertex, v, to this graph if + this graph contains no vertex u such that + u.equals(v). If this graph already contains such vertex, the call + leaves this graph unchanged and returns false. In combination + with the restriction on constructors, this ensures that graphs never + contain duplicate vertices.
        +
        +
        Specified by:
        +
        addVertex in interface Graph<V,E>
        +
        Parameters:
        v - vertex to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + vertex.
        See Also:
        Graph.addVertex(Object)
        +
      • +
      + + + + + +
        +
      • +

        containsEdge

        +
        public boolean containsEdge(E e)
        +
        Description copied from interface: Graph
        +
        Returns true if this graph contains the specified edge. More + formally, returns true if and only if this graph contains an + edge e2 such that e.equals(e2). If the + specified edge is null returns false.
        +
        +
        Specified by:
        +
        containsEdge in interface Graph<V,E>
        +
        Parameters:
        e - edge whose presence in this graph is to be tested.
        +
        Returns:
        true if this graph contains the specified edge.
        See Also:
        Graph.containsEdge(Object)
        +
      • +
      + + + + + +
        +
      • +

        containsVertex

        +
        public boolean containsVertex(V v)
        +
        Description copied from interface: Graph
        +
        Returns true if this graph contains the specified vertex. More + formally, returns true if and only if this graph contains a + vertex u such that u.equals(v). If the + specified vertex is null returns false.
        +
        +
        Specified by:
        +
        containsVertex in interface Graph<V,E>
        +
        Parameters:
        v - vertex whose presence in this graph is to be tested.
        +
        Returns:
        true if this graph contains the specified vertex.
        See Also:
        Graph.containsVertex(Object)
        +
      • +
      + + + + + + + + + +
        +
      • +

        edgeSet

        +
        public Set<E> edgeSet()
        +
        Description copied from interface: Graph
        +
        Returns a set of the edges contained in this graph. The set is backed by + the graph, so changes to the graph are reflected in the set. If the graph + is modified while an iteration over the set is in progress, the results + of the iteration are undefined. + +

        The graph implementation may maintain a particular set ordering (e.g. + via LinkedHashSet) for deterministic iteration, but + this is not required. It is the responsibility of callers who rely on + this behavior to only use graph implementations which support it.

        +
        +
        Specified by:
        +
        edgeSet in interface Graph<V,E>
        +
        Returns:
        a set of the edges contained in this graph.
        See Also:
        Graph.edgeSet()
        +
      • +
      + + + + + +
        +
      • +

        edgesOf

        +
        public Set<E> edgesOf(V vertex)
        +
        Description copied from interface: Graph
        +
        Returns a set of all edges touching the specified vertex. If no edges are + touching the specified vertex returns an empty set.
        +
        +
        Specified by:
        +
        edgesOf in interface Graph<V,E>
        +
        Parameters:
        vertex - the vertex for which a set of touching edges is to be + returned.
        +
        Returns:
        a set of all edges touching the specified vertex.
        See Also:
        Graph.edgesOf(Object)
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        removeEdge

        +
        public boolean removeEdge(E e)
        +
        Description copied from interface: Graph
        +
        Removes the specified edge from the graph. Removes the specified edge + from this graph if it is present. More formally, removes an edge + e2 such that e2.equals(e), if the graph contains such + edge. Returns true if the graph contained the specified edge. + (The graph will not contain the specified edge once the call returns). + +

        If the specified edge is null returns + false.

        +
        +
        Specified by:
        +
        removeEdge in interface Graph<V,E>
        +
        Parameters:
        e - edge to be removed from this graph, if present.
        +
        Returns:
        true if and only if the graph contained the + specified edge.
        See Also:
        Graph.removeEdge(Object)
        +
      • +
      + + + + + +
        +
      • +

        removeEdge

        +
        public E removeEdge(V sourceVertex,
        +           V targetVertex)
        +
        Description copied from interface: Graph
        +
        Removes an edge going from source vertex to target vertex, if such + vertices and such edge exist in this graph. Returns the edge if removed + or null otherwise.
        +
        +
        Specified by:
        +
        removeEdge in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The removed edge, or null if no edge removed.
        See Also:
        Graph.removeEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        removeVertex

        +
        public boolean removeVertex(V v)
        +
        Description copied from interface: Graph
        +
        Removes the specified vertex from this graph including all its touching + edges if present. More formally, if the graph contains a vertex + u such that u.equals(v), the call removes all edges + that touch u and then removes u itself. If no + such u is found, the call leaves the graph unchanged. + Returns true if the graph contained the specified vertex. (The + graph will not contain the specified vertex once the call returns). + +

        If the specified vertex is null returns + false.

        +
        +
        Specified by:
        +
        removeVertex in interface Graph<V,E>
        +
        Parameters:
        v - vertex to be removed from this graph, if present.
        +
        Returns:
        true if the graph contained the specified vertex; + false otherwise.
        See Also:
        Graph.removeVertex(Object)
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public String toString()
        +
        Description copied from class: AbstractGraph
        +
        Returns a string of the parenthesized pair (V, E) representing this + G=(V,E) graph. 'V' is the string representation of the vertex set, and + 'E' is the string representation of the edge set.
        +
        +
        Overrides:
        +
        toString in class AbstractGraph<V,E>
        +
        Returns:
        a string representation of this graph.
        See Also:
        Object.toString()
        +
      • +
      + + + +
        +
      • +

        vertexSet

        +
        public Set<V> vertexSet()
        +
        Description copied from interface: Graph
        +
        Returns a set of the vertices contained in this graph. The set is backed + by the graph, so changes to the graph are reflected in the set. If the + graph is modified while an iteration over the set is in progress, the + results of the iteration are undefined. + +

        The graph implementation may maintain a particular set ordering (e.g. + via LinkedHashSet) for deterministic iteration, but + this is not required. It is the responsibility of callers who rely on + this behavior to only use graph implementations which support it.

        +
        +
        Specified by:
        +
        vertexSet in interface Graph<V,E>
        +
        Returns:
        a set view of the vertices contained in this graph.
        See Also:
        Graph.vertexSet()
        +
      • +
      + + + + + +
        +
      • +

        getEdgeSource

        +
        public V getEdgeSource(E e)
        +
        Description copied from interface: Graph
        +
        Returns the source vertex of an edge. For an undirected graph, source and + target are distinguishable designations (but without any mathematical + meaning).
        +
        +
        Specified by:
        +
        getEdgeSource in interface Graph<V,E>
        +
        Parameters:
        e - edge of interest
        +
        Returns:
        source vertex
        See Also:
        Graph.getEdgeSource(Object)
        +
      • +
      + + + + + +
        +
      • +

        getEdgeTarget

        +
        public V getEdgeTarget(E e)
        +
        Description copied from interface: Graph
        +
        Returns the target vertex of an edge. For an undirected graph, source and + target are distinguishable designations (but without any mathematical + meaning).
        +
        +
        Specified by:
        +
        getEdgeTarget in interface Graph<V,E>
        +
        Parameters:
        e - edge of interest
        +
        Returns:
        target vertex
        See Also:
        Graph.getEdgeTarget(Object)
        +
      • +
      + + + + + +
        +
      • +

        getEdgeWeight

        +
        public double getEdgeWeight(E e)
        +
        Description copied from interface: Graph
        +
        Returns the weight assigned to a given edge. Unweighted graphs return 1.0 + (as defined by WeightedGraph.DEFAULT_EDGE_WEIGHT), allowing + weighted-graph algorithms to apply to them where meaningful.
        +
        +
        Specified by:
        +
        getEdgeWeight in interface Graph<V,E>
        +
        Parameters:
        e - edge of interest
        +
        Returns:
        edge weight
        See Also:
        Graph.getEdgeWeight(Object)
        +
      • +
      + + + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/GraphPathImpl.html b/javadoc/org/jgrapht/graph/GraphPathImpl.html new file mode 100644 index 0000000..9ab00a2 --- /dev/null +++ b/javadoc/org/jgrapht/graph/GraphPathImpl.html @@ -0,0 +1,397 @@ + + + + + + +GraphPathImpl (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class GraphPathImpl<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    GraphPath<V,E>
    +
    +
    +
    +
    public class GraphPathImpl<V,E>
    +extends Object
    +implements GraphPath<V,E>
    +
    GraphPathImpl is a default implementation of GraphPath.
    +
    Version:
    +
    $Id$
    +
    Author:
    +
    John Sichi
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        GraphPathImpl

        +
        public GraphPathImpl(Graph<V,E> graph,
        +             V startVertex,
        +             V endVertex,
        +             List<E> edgeList,
        +             double weight)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGraph

        +
        public Graph<V,E> getGraph()
        +
        Description copied from interface: GraphPath
        +
        Returns the graph over which this path is defined. The path may also be + valid with respect to other graphs.
        +
        +
        Specified by:
        +
        getGraph in interface GraphPath<V,E>
        +
        Returns:
        the containing graph
        +
      • +
      + + + +
        +
      • +

        getStartVertex

        +
        public V getStartVertex()
        +
        Description copied from interface: GraphPath
        +
        Returns the start vertex in the path.
        +
        +
        Specified by:
        +
        getStartVertex in interface GraphPath<V,E>
        +
        Returns:
        the start vertex
        +
      • +
      + + + +
        +
      • +

        getEndVertex

        +
        public V getEndVertex()
        +
        Description copied from interface: GraphPath
        +
        Returns the end vertex in the path.
        +
        +
        Specified by:
        +
        getEndVertex in interface GraphPath<V,E>
        +
        Returns:
        the end vertex
        +
      • +
      + + + +
        +
      • +

        getEdgeList

        +
        public List<E> getEdgeList()
        +
        Description copied from interface: GraphPath
        +
        Returns the edges making up the path. The first edge in this path is + incident to the start vertex. The last edge is incident to the end + vertex. The vertices along the path can be obtained by traversing from + the start vertex, finding its opposite across the first edge, and then + doing the same successively across subsequent edges; Graphs.getPathVertexList(org.jgrapht.GraphPath<V, E>) provides a convenience method for this. + +

        Whether or not the returned edge list is modifiable depends on the + path implementation.

        +
        +
        Specified by:
        +
        getEdgeList in interface GraphPath<V,E>
        +
        Returns:
        list of edges traversed by the path
        +
      • +
      + + + +
        +
      • +

        getWeight

        +
        public double getWeight()
        +
        Description copied from interface: GraphPath
        +
        Returns the weight assigned to the path. Typically, this will be the sum + of the weights of the edge list entries (as defined by the containing + graph), but some path implementations may use other definitions.
        +
        +
        Specified by:
        +
        getWeight in interface GraphPath<V,E>
        +
        Returns:
        the weight of the path
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/GraphUnion.html b/javadoc/org/jgrapht/graph/GraphUnion.html new file mode 100644 index 0000000..c998021 --- /dev/null +++ b/javadoc/org/jgrapht/graph/GraphUnion.html @@ -0,0 +1,795 @@ + + + + + + +GraphUnion (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class GraphUnion<V,E,G extends Graph<V,E>>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, Graph<V,E>
    +
    +
    +
    Direct Known Subclasses:
    +
    DirectedGraphUnion, MixedGraphUnion, UndirectedGraphUnion
    +
    +
    +
    +
    public class GraphUnion<V,E,G extends Graph<V,E>>
    +extends AbstractGraph<V,E>
    +implements Serializable
    +

    Read-only union of two graphs: G1 and G2. If + G1 = (V1, E1) and G2 = + (V2, E2) then their union G = (V, E), where V is the + union of V1 and V2, and E is the union of E1 + and E1.

    + +

    GraphUnion implements Graph interface. + GraphUnion uses WeightCombiner to choose policy for calculating + edge weight.

    +
    See Also:
    Serialized Form
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      EaddEdge(V sourceVertex, + V targetVertex) +
      Throws UnsupportedOperationException, because + GraphUnion is read-only.
      +
      booleanaddEdge(V sourceVertex, + V targetVertex, + E e) +
      Throws UnsupportedOperationException, because + GraphUnion is read-only.
      +
      booleanaddVertex(V v) +
      Throws UnsupportedOperationException, because + GraphUnion is read-only.
      +
      booleancontainsEdge(E e) +
      Returns true if this graph contains the specified edge.
      +
      booleancontainsVertex(V v) +
      Returns true if this graph contains the specified vertex.
      +
      Set<E>edgeSet() +
      Returns a set of the edges contained in this graph.
      +
      Set<E>edgesOf(V vertex) +
      Returns a set of all edges touching the specified vertex.
      +
      Set<E>getAllEdges(V sourceVertex, + V targetVertex) +
      Returns a set of all edges connecting source vertex to target vertex if + such vertices exist in this graph.
      +
      EgetEdge(V sourceVertex, + V targetVertex) +
      Returns an edge connecting source vertex to target vertex if such + vertices and such edge exist in this graph.
      +
      EdgeFactory<V,E>getEdgeFactory() +
      Throws UnsupportedOperationException, because + GraphUnion is read-only.
      +
      VgetEdgeSource(E e) +
      Returns the source vertex of an edge.
      +
      VgetEdgeTarget(E e) +
      Returns the target vertex of an edge.
      +
      doublegetEdgeWeight(E e) +
      Returns the weight assigned to a given edge.
      +
      GgetG1() 
      GgetG2() 
      booleanremoveEdge(E e) +
      Throws UnsupportedOperationException, because + GraphUnion is read-only.
      +
      EremoveEdge(V sourceVertex, + V targetVertex) +
      Throws UnsupportedOperationException, because + GraphUnion is read-only.
      +
      booleanremoveVertex(V v) +
      Throws UnsupportedOperationException, because + GraphUnion is read-only.
      +
      Set<V>vertexSet() +
      Returns a set of the vertices contained in this graph.
      +
      + + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        GraphUnion

        +
        public GraphUnion(G g1,
        +          G g2,
        +          WeightCombiner operator)
        +
      • +
      + + + + + +
        +
      • +

        GraphUnion

        +
        public GraphUnion(G g1,
        +          G g2)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getAllEdges

        +
        public Set<E> getAllEdges(V sourceVertex,
        +                 V targetVertex)
        +
        Description copied from interface: Graph
        +
        Returns a set of all edges connecting source vertex to target vertex if + such vertices exist in this graph. If any of the vertices does not exist + or is null, returns null. If both vertices + exist but no edges found, returns an empty set. + +

        In undirected graphs, some of the returned edges may have their source + and target vertices in the opposite order. In simple graphs the returned + set is either singleton set or empty set.

        +
        +
        Specified by:
        +
        getAllEdges in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        a set of all edges connecting source vertex to target vertex.
        +
      • +
      + + + + + +
        +
      • +

        getEdge

        +
        public E getEdge(V sourceVertex,
        +        V targetVertex)
        +
        Description copied from interface: Graph
        +
        Returns an edge connecting source vertex to target vertex if such + vertices and such edge exist in this graph. Otherwise returns + null. If any of the specified vertices is null + returns null + +

        In undirected graphs, the returned edge may have its source and target + vertices in the opposite order.

        +
        +
        Specified by:
        +
        getEdge in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        an edge connecting source vertex to target vertex.
        +
      • +
      + + + +
        +
      • +

        getEdgeFactory

        +
        public EdgeFactory<V,E> getEdgeFactory()
        +
        Throws UnsupportedOperationException, because + GraphUnion is read-only.
        +
        +
        Specified by:
        +
        getEdgeFactory in interface Graph<V,E>
        +
        Returns:
        the edge factory using which this graph creates new edges.
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        public E addEdge(V sourceVertex,
        +        V targetVertex)
        +
        Throws UnsupportedOperationException, because + GraphUnion is read-only.
        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The newly created edge if added to the graph, otherwise + null.
        See Also:
        Graph.getEdgeFactory()
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        public boolean addEdge(V sourceVertex,
        +              V targetVertex,
        +              E e)
        +
        Throws UnsupportedOperationException, because + GraphUnion is read-only.
        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        e - edge to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + edge.
        See Also:
        Graph.addEdge(Object, Object), +Graph.getEdgeFactory()
        +
      • +
      + + + + + +
        +
      • +

        addVertex

        +
        public boolean addVertex(V v)
        +
        Throws UnsupportedOperationException, because + GraphUnion is read-only.
        +
        +
        Specified by:
        +
        addVertex in interface Graph<V,E>
        +
        Parameters:
        v - vertex to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + vertex.
        +
      • +
      + + + + + +
        +
      • +

        containsEdge

        +
        public boolean containsEdge(E e)
        +
        Description copied from interface: Graph
        +
        Returns true if this graph contains the specified edge. More + formally, returns true if and only if this graph contains an + edge e2 such that e.equals(e2). If the + specified edge is null returns false.
        +
        +
        Specified by:
        +
        containsEdge in interface Graph<V,E>
        +
        Parameters:
        e - edge whose presence in this graph is to be tested.
        +
        Returns:
        true if this graph contains the specified edge.
        +
      • +
      + + + + + +
        +
      • +

        containsVertex

        +
        public boolean containsVertex(V v)
        +
        Description copied from interface: Graph
        +
        Returns true if this graph contains the specified vertex. More + formally, returns true if and only if this graph contains a + vertex u such that u.equals(v). If the + specified vertex is null returns false.
        +
        +
        Specified by:
        +
        containsVertex in interface Graph<V,E>
        +
        Parameters:
        v - vertex whose presence in this graph is to be tested.
        +
        Returns:
        true if this graph contains the specified vertex.
        +
      • +
      + + + +
        +
      • +

        edgeSet

        +
        public Set<E> edgeSet()
        +
        Description copied from interface: Graph
        +
        Returns a set of the edges contained in this graph. The set is backed by + the graph, so changes to the graph are reflected in the set. If the graph + is modified while an iteration over the set is in progress, the results + of the iteration are undefined. + +

        The graph implementation may maintain a particular set ordering (e.g. + via LinkedHashSet) for deterministic iteration, but + this is not required. It is the responsibility of callers who rely on + this behavior to only use graph implementations which support it.

        +
        +
        Specified by:
        +
        edgeSet in interface Graph<V,E>
        +
        Returns:
        a set of the edges contained in this graph.
        +
      • +
      + + + + + +
        +
      • +

        edgesOf

        +
        public Set<E> edgesOf(V vertex)
        +
        Description copied from interface: Graph
        +
        Returns a set of all edges touching the specified vertex. If no edges are + touching the specified vertex returns an empty set.
        +
        +
        Specified by:
        +
        edgesOf in interface Graph<V,E>
        +
        Parameters:
        vertex - the vertex for which a set of touching edges is to be + returned.
        +
        Returns:
        a set of all edges touching the specified vertex.
        +
      • +
      + + + + + +
        +
      • +

        removeEdge

        +
        public E removeEdge(V sourceVertex,
        +           V targetVertex)
        +
        Throws UnsupportedOperationException, because + GraphUnion is read-only.
        +
        +
        Specified by:
        +
        removeEdge in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The removed edge, or null if no edge removed.
        +
      • +
      + + + + + +
        +
      • +

        removeEdge

        +
        public boolean removeEdge(E e)
        +
        Throws UnsupportedOperationException, because + GraphUnion is read-only.
        +
        +
        Specified by:
        +
        removeEdge in interface Graph<V,E>
        +
        Parameters:
        e - edge to be removed from this graph, if present.
        +
        Returns:
        true if and only if the graph contained the + specified edge.
        +
      • +
      + + + + + +
        +
      • +

        removeVertex

        +
        public boolean removeVertex(V v)
        +
        Throws UnsupportedOperationException, because + GraphUnion is read-only.
        +
        +
        Specified by:
        +
        removeVertex in interface Graph<V,E>
        +
        Parameters:
        v - vertex to be removed from this graph, if present.
        +
        Returns:
        true if the graph contained the specified vertex; + false otherwise.
        +
      • +
      + + + +
        +
      • +

        vertexSet

        +
        public Set<V> vertexSet()
        +
        Description copied from interface: Graph
        +
        Returns a set of the vertices contained in this graph. The set is backed + by the graph, so changes to the graph are reflected in the set. If the + graph is modified while an iteration over the set is in progress, the + results of the iteration are undefined. + +

        The graph implementation may maintain a particular set ordering (e.g. + via LinkedHashSet) for deterministic iteration, but + this is not required. It is the responsibility of callers who rely on + this behavior to only use graph implementations which support it.

        +
        +
        Specified by:
        +
        vertexSet in interface Graph<V,E>
        +
        Returns:
        a set view of the vertices contained in this graph.
        +
      • +
      + + + + + +
        +
      • +

        getEdgeSource

        +
        public V getEdgeSource(E e)
        +
        Description copied from interface: Graph
        +
        Returns the source vertex of an edge. For an undirected graph, source and + target are distinguishable designations (but without any mathematical + meaning).
        +
        +
        Specified by:
        +
        getEdgeSource in interface Graph<V,E>
        +
        Parameters:
        e - edge of interest
        +
        Returns:
        source vertex
        +
      • +
      + + + + + +
        +
      • +

        getEdgeTarget

        +
        public V getEdgeTarget(E e)
        +
        Description copied from interface: Graph
        +
        Returns the target vertex of an edge. For an undirected graph, source and + target are distinguishable designations (but without any mathematical + meaning).
        +
        +
        Specified by:
        +
        getEdgeTarget in interface Graph<V,E>
        +
        Parameters:
        e - edge of interest
        +
        Returns:
        target vertex
        +
      • +
      + + + + + +
        +
      • +

        getEdgeWeight

        +
        public double getEdgeWeight(E e)
        +
        Description copied from interface: Graph
        +
        Returns the weight assigned to a given edge. Unweighted graphs return 1.0 + (as defined by WeightedGraph.DEFAULT_EDGE_WEIGHT), allowing + weighted-graph algorithms to apply to them where meaningful.
        +
        +
        Specified by:
        +
        getEdgeWeight in interface Graph<V,E>
        +
        Parameters:
        e - edge of interest
        +
        Returns:
        edge weight
        See Also:
        WeightedGraph
        +
      • +
      + + + +
        +
      • +

        getG1

        +
        public G getG1()
        +
        Returns:
        G1
        +
      • +
      + + + +
        +
      • +

        getG2

        +
        public G getG2()
        +
        Returns:
        G2
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/ListenableDirectedGraph.html b/javadoc/org/jgrapht/graph/ListenableDirectedGraph.html new file mode 100644 index 0000000..2415cf0 --- /dev/null +++ b/javadoc/org/jgrapht/graph/ListenableDirectedGraph.html @@ -0,0 +1,312 @@ + + + + + + +ListenableDirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class ListenableDirectedGraph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ListenableDirectedGraph

        +
        public ListenableDirectedGraph(Class<? extends E> edgeClass)
        +
        Creates a new listenable directed graph.
        +
        Parameters:
        edgeClass - class on which to base factory for edges
        +
      • +
      + + + +
        +
      • +

        ListenableDirectedGraph

        +
        public ListenableDirectedGraph(DirectedGraph<V,E> base)
        +
        Creates a new listenable directed graph.
        +
        Parameters:
        base - the backing graph.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/ListenableDirectedWeightedGraph.html b/javadoc/org/jgrapht/graph/ListenableDirectedWeightedGraph.html new file mode 100644 index 0000000..7178412 --- /dev/null +++ b/javadoc/org/jgrapht/graph/ListenableDirectedWeightedGraph.html @@ -0,0 +1,335 @@ + + + + + + +ListenableDirectedWeightedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class ListenableDirectedWeightedGraph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ListenableDirectedWeightedGraph

        +
        public ListenableDirectedWeightedGraph(Class<? extends E> edgeClass)
        +
        Creates a new listenable directed weighted graph.
        +
        Parameters:
        edgeClass - class on which to base factory for edges
        +
      • +
      + + + +
        +
      • +

        ListenableDirectedWeightedGraph

        +
        public ListenableDirectedWeightedGraph(WeightedGraph<V,E> base)
        +
        Creates a new listenable directed weighted graph.
        +
        Parameters:
        base - the backing graph.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/ListenableUndirectedGraph.html b/javadoc/org/jgrapht/graph/ListenableUndirectedGraph.html new file mode 100644 index 0000000..c972d2d --- /dev/null +++ b/javadoc/org/jgrapht/graph/ListenableUndirectedGraph.html @@ -0,0 +1,312 @@ + + + + + + +ListenableUndirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class ListenableUndirectedGraph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ListenableUndirectedGraph

        +
        public ListenableUndirectedGraph(Class<? extends E> edgeClass)
        +
        Creates a new listenable undirected simple graph.
        +
        Parameters:
        edgeClass - class on which to base factory for edges
        +
      • +
      + + + +
        +
      • +

        ListenableUndirectedGraph

        +
        public ListenableUndirectedGraph(UndirectedGraph<V,E> base)
        +
        Creates a new listenable undirected graph.
        +
        Parameters:
        base - the backing graph.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/ListenableUndirectedWeightedGraph.html b/javadoc/org/jgrapht/graph/ListenableUndirectedWeightedGraph.html new file mode 100644 index 0000000..6bddecd --- /dev/null +++ b/javadoc/org/jgrapht/graph/ListenableUndirectedWeightedGraph.html @@ -0,0 +1,335 @@ + + + + + + +ListenableUndirectedWeightedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class ListenableUndirectedWeightedGraph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ListenableUndirectedWeightedGraph

        +
        public ListenableUndirectedWeightedGraph(Class<? extends E> edgeClass)
        +
        Creates a new listenable undirected weighted graph.
        +
        Parameters:
        edgeClass - class on which to base factory for edges
        +
      • +
      + + + +
        +
      • +

        ListenableUndirectedWeightedGraph

        +
        public ListenableUndirectedWeightedGraph(WeightedGraph<V,E> base)
        +
        Creates a new listenable undirected weighted graph.
        +
        Parameters:
        base - the backing graph.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/MaskFunctor.html b/javadoc/org/jgrapht/graph/MaskFunctor.html new file mode 100644 index 0000000..608f74d --- /dev/null +++ b/javadoc/org/jgrapht/graph/MaskFunctor.html @@ -0,0 +1,244 @@ + + + + + + +MaskFunctor (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Interface MaskFunctor<V,E>

+
+
+
+
    +
  • +
    +
    +
    public interface MaskFunctor<V,E>
    +
    A functor interface for masking out vertices and edges of a graph.
    +
    Since:
    +
    July 5, 2007
    +
    Author:
    +
    Guillaume Boulmier
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      booleanisEdgeMasked(E edge) +
      Returns true if the edge is masked, false + otherwise.
      +
      booleanisVertexMasked(V vertex) +
      Returns true if the vertex is masked, false + otherwise.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        isEdgeMasked

        +
        boolean isEdgeMasked(E edge)
        +
        Returns true if the edge is masked, false + otherwise.
        +
        Parameters:
        edge - edge.
        +
        Returns:
        .
        +
      • +
      + + + + + +
        +
      • +

        isVertexMasked

        +
        boolean isVertexMasked(V vertex)
        +
        Returns true if the vertex is masked, false + otherwise.
        +
        Parameters:
        vertex - vertex.
        +
        Returns:
        .
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/MaskSubgraph.html b/javadoc/org/jgrapht/graph/MaskSubgraph.html new file mode 100644 index 0000000..b5bf266 --- /dev/null +++ b/javadoc/org/jgrapht/graph/MaskSubgraph.html @@ -0,0 +1,924 @@ + + + + + + +MaskSubgraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class MaskSubgraph<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Graph<V,E>
    +
    +
    +
    Direct Known Subclasses:
    +
    DirectedMaskSubgraph, UndirectedMaskSubgraph
    +
    +
    +
    +
    public class MaskSubgraph<V,E>
    +extends AbstractGraph<V,E>
    +
    An unmodifiable subgraph induced by a vertex/edge masking function. The + subgraph will keep track of edges being added to its vertex subset as well as + deletion of edges and vertices. When iterating over the vertices/edges, it + will iterate over the vertices/edges of the base graph and discard + vertices/edges that are masked (an edge with a masked extremity vertex is + discarded as well).
    +
    Since:
    +
    July 5, 2007
    +
    Author:
    +
    Guillaume Boulmier
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      MaskSubgraph(Graph<V,E> base, + MaskFunctor<V,E> mask) +
      Creates a new induced subgraph.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      EaddEdge(V sourceVertex, + V targetVertex) +
      Creates a new edge in this graph, going from the source vertex to the + target vertex, and returns the created edge.
      +
      booleanaddEdge(V sourceVertex, + V targetVertex, + E edge) +
      Adds the specified edge to this graph, going from the source vertex to + the target vertex.
      +
      booleanaddVertex(V v) +
      Adds the specified vertex to this graph if not already present.
      +
      booleancontainsEdge(E e) +
      Returns true if this graph contains the specified edge.
      +
      booleancontainsVertex(V v) +
      Returns true if this graph contains the specified vertex.
      +
      intdegreeOf(V vertex) 
      Set<E>edgeSet() +
      Returns a set of the edges contained in this graph.
      +
      Set<E>edgesOf(V vertex) +
      Returns a set of all edges touching the specified vertex.
      +
      Set<E>getAllEdges(V sourceVertex, + V targetVertex) +
      Returns a set of all edges connecting source vertex to target vertex if + such vertices exist in this graph.
      +
      EgetEdge(V sourceVertex, + V targetVertex) +
      Returns an edge connecting source vertex to target vertex if such + vertices and such edge exist in this graph.
      +
      EdgeFactory<V,E>getEdgeFactory() +
      Returns the edge factory using which this graph creates new edges.
      +
      VgetEdgeSource(E edge) +
      Returns the source vertex of an edge.
      +
      VgetEdgeTarget(E edge) +
      Returns the target vertex of an edge.
      +
      doublegetEdgeWeight(E edge) +
      Returns the weight assigned to a given edge.
      +
      Set<E>incomingEdgesOf(V vertex) 
      intinDegreeOf(V vertex) 
      intoutDegreeOf(V vertex) 
      Set<E>outgoingEdgesOf(V vertex) 
      booleanremoveAllEdges(Collection<? extends E> edges) +
      Removes all the edges in this graph that are also contained in the + specified edge collection.
      +
      Set<E>removeAllEdges(V sourceVertex, + V targetVertex) +
      Removes all the edges going from the specified source vertex to the + specified target vertex, and returns a set of all removed edges.
      +
      booleanremoveAllVertices(Collection<? extends V> vertices) +
      Removes all the vertices in this graph that are also contained in the + specified vertex collection.
      +
      booleanremoveEdge(E e) +
      Removes the specified edge from the graph.
      +
      EremoveEdge(V sourceVertex, + V targetVertex) +
      Removes an edge going from source vertex to target vertex, if such + vertices and such edge exist in this graph.
      +
      booleanremoveVertex(V v) +
      Removes the specified vertex from this graph including all its touching + edges if present.
      +
      Set<V>vertexSet() +
      Returns a set of the vertices contained in this graph.
      +
      + + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MaskSubgraph

        +
        public MaskSubgraph(Graph<V,E> base,
        +            MaskFunctor<V,E> mask)
        +
        Creates a new induced subgraph. Running-time = O(1).
        +
        Parameters:
        base - the base (backing) graph on which the subgraph will be based.
        mask - vertices and edges to exclude in the subgraph. If a + vertex/edge is masked, it is as if it is not in the subgraph.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        addEdge

        +
        public E addEdge(V sourceVertex,
        +        V targetVertex)
        +
        Description copied from interface: Graph
        +
        Creates a new edge in this graph, going from the source vertex to the + target vertex, and returns the created edge. Some graphs do not allow + edge-multiplicity. In such cases, if the graph already contains an edge + from the specified source to the specified target, than this method does + not change the graph and returns null. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        + +

        This method creates the new edge e using this graph's + EdgeFactory. For the new edge to be added e + must not be equal to any other edge the graph (even if the graph + allows edge-multiplicity). More formally, the graph must not contain any + edge e2 such that e2.equals(e). If such + e2 is found then the newly created edge e is + abandoned, the method leaves this graph unchanged returns + null.

        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The newly created edge if added to the graph, otherwise + null.
        See Also:
        Graph.addEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        public boolean addEdge(V sourceVertex,
        +              V targetVertex,
        +              E edge)
        +
        Description copied from interface: Graph
        +
        Adds the specified edge to this graph, going from the source vertex to + the target vertex. More formally, adds the specified edge, + e, to this graph if this graph contains no edge e2 + such that e2.equals(e). If this graph already contains such + an edge, the call leaves this graph unchanged and returns false. + Some graphs do not allow edge-multiplicity. In such cases, if the graph + already contains an edge from the specified source to the specified + target, than this method does not change the graph and returns + false. If the edge was added to the graph, returns + true. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        edge - edge to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + edge.
        See Also:
        Graph.addEdge(Object, Object), +Graph.getEdgeFactory()
        +
      • +
      + + + + + +
        +
      • +

        addVertex

        +
        public boolean addVertex(V v)
        +
        Description copied from interface: Graph
        +
        Adds the specified vertex to this graph if not already present. More + formally, adds the specified vertex, v, to this graph if + this graph contains no vertex u such that + u.equals(v). If this graph already contains such vertex, the call + leaves this graph unchanged and returns false. In combination + with the restriction on constructors, this ensures that graphs never + contain duplicate vertices.
        +
        Parameters:
        v - vertex to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + vertex.
        See Also:
        Graph.addVertex(Object)
        +
      • +
      + + + + + +
        +
      • +

        containsEdge

        +
        public boolean containsEdge(E e)
        +
        Description copied from interface: Graph
        +
        Returns true if this graph contains the specified edge. More + formally, returns true if and only if this graph contains an + edge e2 such that e.equals(e2). If the + specified edge is null returns false.
        +
        Parameters:
        e - edge whose presence in this graph is to be tested.
        +
        Returns:
        true if this graph contains the specified edge.
        +
      • +
      + + + + + +
        +
      • +

        containsVertex

        +
        public boolean containsVertex(V v)
        +
        Description copied from interface: Graph
        +
        Returns true if this graph contains the specified vertex. More + formally, returns true if and only if this graph contains a + vertex u such that u.equals(v). If the + specified vertex is null returns false.
        +
        Parameters:
        v - vertex whose presence in this graph is to be tested.
        +
        Returns:
        true if this graph contains the specified vertex.
        +
      • +
      + + + + + + + + + +
        +
      • +

        edgeSet

        +
        public Set<E> edgeSet()
        +
        Description copied from interface: Graph
        +
        Returns a set of the edges contained in this graph. The set is backed by + the graph, so changes to the graph are reflected in the set. If the graph + is modified while an iteration over the set is in progress, the results + of the iteration are undefined. + +

        The graph implementation may maintain a particular set ordering (e.g. + via LinkedHashSet) for deterministic iteration, but + this is not required. It is the responsibility of callers who rely on + this behavior to only use graph implementations which support it.

        +
        Returns:
        a set of the edges contained in this graph.
        +
      • +
      + + + + + +
        +
      • +

        edgesOf

        +
        public Set<E> edgesOf(V vertex)
        +
        Description copied from interface: Graph
        +
        Returns a set of all edges touching the specified vertex. If no edges are + touching the specified vertex returns an empty set.
        +
        Parameters:
        vertex - the vertex for which a set of touching edges is to be + returned.
        +
        Returns:
        a set of all edges touching the specified vertex.
        +
      • +
      + + + + + +
        +
      • +

        getAllEdges

        +
        public Set<E> getAllEdges(V sourceVertex,
        +                 V targetVertex)
        +
        Description copied from interface: Graph
        +
        Returns a set of all edges connecting source vertex to target vertex if + such vertices exist in this graph. If any of the vertices does not exist + or is null, returns null. If both vertices + exist but no edges found, returns an empty set. + +

        In undirected graphs, some of the returned edges may have their source + and target vertices in the opposite order. In simple graphs the returned + set is either singleton set or empty set.

        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        a set of all edges connecting source vertex to target vertex.
        +
      • +
      + + + + + +
        +
      • +

        getEdge

        +
        public E getEdge(V sourceVertex,
        +        V targetVertex)
        +
        Description copied from interface: Graph
        +
        Returns an edge connecting source vertex to target vertex if such + vertices and such edge exist in this graph. Otherwise returns + null. If any of the specified vertices is null + returns null + +

        In undirected graphs, the returned edge may have its source and target + vertices in the opposite order.

        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        an edge connecting source vertex to target vertex.
        +
      • +
      + + + +
        +
      • +

        getEdgeFactory

        +
        public EdgeFactory<V,E> getEdgeFactory()
        +
        Description copied from interface: Graph
        +
        Returns the edge factory using which this graph creates new edges. The + edge factory is defined when the graph is constructed and must not be + modified.
        +
        Returns:
        the edge factory using which this graph creates new edges.
        +
      • +
      + + + + + +
        +
      • +

        getEdgeSource

        +
        public V getEdgeSource(E edge)
        +
        Description copied from interface: Graph
        +
        Returns the source vertex of an edge. For an undirected graph, source and + target are distinguishable designations (but without any mathematical + meaning).
        +
        Parameters:
        edge - edge of interest
        +
        Returns:
        source vertex
        +
      • +
      + + + + + +
        +
      • +

        getEdgeTarget

        +
        public V getEdgeTarget(E edge)
        +
        Description copied from interface: Graph
        +
        Returns the target vertex of an edge. For an undirected graph, source and + target are distinguishable designations (but without any mathematical + meaning).
        +
        Parameters:
        edge - edge of interest
        +
        Returns:
        target vertex
        +
      • +
      + + + + + +
        +
      • +

        getEdgeWeight

        +
        public double getEdgeWeight(E edge)
        +
        Description copied from interface: Graph
        +
        Returns the weight assigned to a given edge. Unweighted graphs return 1.0 + (as defined by WeightedGraph.DEFAULT_EDGE_WEIGHT), allowing + weighted-graph algorithms to apply to them where meaningful.
        +
        Parameters:
        edge - edge of interest
        +
        Returns:
        edge weight
        See Also:
        WeightedGraph
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        removeAllEdges

        +
        public boolean removeAllEdges(Collection<? extends E> edges)
        +
        Description copied from interface: Graph
        +
        Removes all the edges in this graph that are also contained in the + specified edge collection. After this call returns, this graph will + contain no edges in common with the specified edges. This method will + invoke the Graph.removeEdge(Object) method.
        +
        +
        Specified by:
        +
        removeAllEdges in interface Graph<V,E>
        +
        Overrides:
        +
        removeAllEdges in class AbstractGraph<V,E>
        +
        Parameters:
        edges - edges to be removed from this graph.
        +
        Returns:
        true if this graph changed as a result of the call
        See Also:
        Graph.removeAllEdges(Collection)
        +
      • +
      + + + + + +
        +
      • +

        removeAllEdges

        +
        public Set<E> removeAllEdges(V sourceVertex,
        +                    V targetVertex)
        +
        Description copied from interface: Graph
        +
        Removes all the edges going from the specified source vertex to the + specified target vertex, and returns a set of all removed edges. Returns + null if any of the specified vertices does not exist in the + graph. If both vertices exist but no edge is found, returns an empty set. + This method will either invoke the Graph.removeEdge(Object) method, or + the Graph.removeEdge(Object, Object) method.
        +
        +
        Specified by:
        +
        removeAllEdges in interface Graph<V,E>
        +
        Overrides:
        +
        removeAllEdges in class AbstractGraph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        the removed edges, or null if either vertex is not + part of graph
        See Also:
        Graph.removeAllEdges(Object, Object)
        +
      • +
      + + + +
        +
      • +

        removeAllVertices

        +
        public boolean removeAllVertices(Collection<? extends V> vertices)
        +
        Description copied from interface: Graph
        +
        Removes all the vertices in this graph that are also contained in the + specified vertex collection. After this call returns, this graph will + contain no vertices in common with the specified vertices. This method + will invoke the Graph.removeVertex(Object) method.
        +
        +
        Specified by:
        +
        removeAllVertices in interface Graph<V,E>
        +
        Overrides:
        +
        removeAllVertices in class AbstractGraph<V,E>
        +
        Parameters:
        vertices - vertices to be removed from this graph.
        +
        Returns:
        true if this graph changed as a result of the call
        See Also:
        Graph.removeAllVertices(Collection)
        +
      • +
      + + + + + +
        +
      • +

        removeEdge

        +
        public boolean removeEdge(E e)
        +
        Description copied from interface: Graph
        +
        Removes the specified edge from the graph. Removes the specified edge + from this graph if it is present. More formally, removes an edge + e2 such that e2.equals(e), if the graph contains such + edge. Returns true if the graph contained the specified edge. + (The graph will not contain the specified edge once the call returns). + +

        If the specified edge is null returns + false.

        +
        Parameters:
        e - edge to be removed from this graph, if present.
        +
        Returns:
        true if and only if the graph contained the + specified edge.
        See Also:
        Graph.removeEdge(Object)
        +
      • +
      + + + + + +
        +
      • +

        removeEdge

        +
        public E removeEdge(V sourceVertex,
        +           V targetVertex)
        +
        Description copied from interface: Graph
        +
        Removes an edge going from source vertex to target vertex, if such + vertices and such edge exist in this graph. Returns the edge if removed + or null otherwise.
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The removed edge, or null if no edge removed.
        See Also:
        Graph.removeEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        removeVertex

        +
        public boolean removeVertex(V v)
        +
        Description copied from interface: Graph
        +
        Removes the specified vertex from this graph including all its touching + edges if present. More formally, if the graph contains a vertex + u such that u.equals(v), the call removes all edges + that touch u and then removes u itself. If no + such u is found, the call leaves the graph unchanged. + Returns true if the graph contained the specified vertex. (The + graph will not contain the specified vertex once the call returns). + +

        If the specified vertex is null returns + false.

        +
        Parameters:
        v - vertex to be removed from this graph, if present.
        +
        Returns:
        true if the graph contained the specified vertex; + false otherwise.
        See Also:
        Graph.removeVertex(Object)
        +
      • +
      + + + +
        +
      • +

        vertexSet

        +
        public Set<V> vertexSet()
        +
        Description copied from interface: Graph
        +
        Returns a set of the vertices contained in this graph. The set is backed + by the graph, so changes to the graph are reflected in the set. If the + graph is modified while an iteration over the set is in progress, the + results of the iteration are undefined. + +

        The graph implementation may maintain a particular set ordering (e.g. + via LinkedHashSet) for deterministic iteration, but + this is not required. It is the responsibility of callers who rely on + this behavior to only use graph implementations which support it.

        +
        Returns:
        a set view of the vertices contained in this graph.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/MixedGraphUnion.html b/javadoc/org/jgrapht/graph/MixedGraphUnion.html new file mode 100644 index 0000000..c2bc36d --- /dev/null +++ b/javadoc/org/jgrapht/graph/MixedGraphUnion.html @@ -0,0 +1,404 @@ + + + + + + +MixedGraphUnion (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class MixedGraphUnion<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        inDegreeOf

        +
        public int inDegreeOf(V vertex)
        +
        Description copied from interface: DirectedGraph
        +
        Returns the "in degree" of the specified vertex. An in degree of a vertex + in a directed graph is the number of inward directed edges from that + vertex. See + http://mathworld.wolfram.com/Indegree.html.
        +
        +
        Specified by:
        +
        inDegreeOf in interface DirectedGraph<V,E>
        +
        Parameters:
        vertex - vertex whose degree is to be calculated.
        +
        Returns:
        the degree of the specified vertex.
        +
      • +
      + + + + + +
        +
      • +

        incomingEdgesOf

        +
        public Set<E> incomingEdgesOf(V vertex)
        +
        Description copied from interface: DirectedGraph
        +
        Returns a set of all edges incoming into the specified vertex.
        +
        +
        Specified by:
        +
        incomingEdgesOf in interface DirectedGraph<V,E>
        +
        Parameters:
        vertex - the vertex for which the list of incoming edges to be + returned.
        +
        Returns:
        a set of all edges incoming into the specified vertex.
        +
      • +
      + + + + + +
        +
      • +

        outDegreeOf

        +
        public int outDegreeOf(V vertex)
        +
        Description copied from interface: DirectedGraph
        +
        Returns the "out degree" of the specified vertex. An out degree of a + vertex in a directed graph is the number of outward directed edges from + that vertex. See + http://mathworld.wolfram.com/Outdegree.html.
        +
        +
        Specified by:
        +
        outDegreeOf in interface DirectedGraph<V,E>
        +
        Parameters:
        vertex - vertex whose degree is to be calculated.
        +
        Returns:
        the degree of the specified vertex.
        +
      • +
      + + + + + +
        +
      • +

        outgoingEdgesOf

        +
        public Set<E> outgoingEdgesOf(V vertex)
        +
        Description copied from interface: DirectedGraph
        +
        Returns a set of all edges outgoing from the specified vertex.
        +
        +
        Specified by:
        +
        outgoingEdgesOf in interface DirectedGraph<V,E>
        +
        Parameters:
        vertex - the vertex for which the list of outgoing edges to be + returned.
        +
        Returns:
        a set of all edges outgoing from the specified vertex.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/Multigraph.html b/javadoc/org/jgrapht/graph/Multigraph.html new file mode 100644 index 0000000..5701069 --- /dev/null +++ b/javadoc/org/jgrapht/graph/Multigraph.html @@ -0,0 +1,359 @@ + + + + + + +Multigraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class Multigraph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Multigraph

        +
        public Multigraph(Class<? extends E> edgeClass)
        +
        Creates a new multigraph.
        +
        Parameters:
        edgeClass - class on which to base factory for edges
        +
      • +
      + + + +
        +
      • +

        Multigraph

        +
        public Multigraph(EdgeFactory<V,E> ef)
        +
        Creates a new multigraph with the specified edge factory.
        +
        Parameters:
        ef - the edge factory of the new graph.
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/ParanoidGraph.html b/javadoc/org/jgrapht/graph/ParanoidGraph.html new file mode 100644 index 0000000..b07b44f --- /dev/null +++ b/javadoc/org/jgrapht/graph/ParanoidGraph.html @@ -0,0 +1,367 @@ + + + + + + +ParanoidGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class ParanoidGraph<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, Graph<V,E>
    +
    +
    +
    +
    public class ParanoidGraph<V,E>
    +extends GraphDelegator<V,E>
    +
    ParanoidGraph provides a way to verify that objects added to a graph obey the + standard equals/hashCode contract. It can be used to wrap an underlying graph + to be verified. Note that the verification is very expensive, so + ParanoidGraph should only be used during debugging.
    +
    Version:
    +
    $Id$
    +
    Author:
    +
    John Sichi
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ParanoidGraph

        +
        public ParanoidGraph(Graph<V,E> g)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        addEdge

        +
        public boolean addEdge(V sourceVertex,
        +              V targetVertex,
        +              E e)
        +
        Description copied from interface: Graph
        +
        Adds the specified edge to this graph, going from the source vertex to + the target vertex. More formally, adds the specified edge, + e, to this graph if this graph contains no edge e2 + such that e2.equals(e). If this graph already contains such + an edge, the call leaves this graph unchanged and returns false. + Some graphs do not allow edge-multiplicity. In such cases, if the graph + already contains an edge from the specified source to the specified + target, than this method does not change the graph and returns + false. If the edge was added to the graph, returns + true. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Overrides:
        +
        addEdge in class GraphDelegator<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        e - edge to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + edge.
        See Also:
        Graph.addEdge(Object, Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        addVertex

        +
        public boolean addVertex(V v)
        +
        Description copied from interface: Graph
        +
        Adds the specified vertex to this graph if not already present. More + formally, adds the specified vertex, v, to this graph if + this graph contains no vertex u such that + u.equals(v). If this graph already contains such vertex, the call + leaves this graph unchanged and returns false. In combination + with the restriction on constructors, this ensures that graphs never + contain duplicate vertices.
        +
        +
        Specified by:
        +
        addVertex in interface Graph<V,E>
        +
        Overrides:
        +
        addVertex in class GraphDelegator<V,E>
        +
        Parameters:
        v - vertex to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + vertex.
        See Also:
        Graph.addVertex(Object)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/Pseudograph.html b/javadoc/org/jgrapht/graph/Pseudograph.html new file mode 100644 index 0000000..5c6dbb6 --- /dev/null +++ b/javadoc/org/jgrapht/graph/Pseudograph.html @@ -0,0 +1,358 @@ + + + + + + +Pseudograph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class Pseudograph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Pseudograph

        +
        public Pseudograph(Class<? extends E> edgeClass)
        +
        Creates a new pseudograph.
        +
        Parameters:
        edgeClass - class on which to base factory for edges
        +
      • +
      + + + +
        +
      • +

        Pseudograph

        +
        public Pseudograph(EdgeFactory<V,E> ef)
        +
        Creates a new pseudograph with the specified edge factory.
        +
        Parameters:
        ef - the edge factory of the new graph.
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/SimpleDirectedGraph.html b/javadoc/org/jgrapht/graph/SimpleDirectedGraph.html new file mode 100644 index 0000000..28a22da --- /dev/null +++ b/javadoc/org/jgrapht/graph/SimpleDirectedGraph.html @@ -0,0 +1,356 @@ + + + + + + +SimpleDirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class SimpleDirectedGraph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SimpleDirectedGraph

        +
        public SimpleDirectedGraph(Class<? extends E> edgeClass)
        +
        Creates a new simple directed graph.
        +
        Parameters:
        edgeClass - class on which to base factory for edges
        +
      • +
      + + + +
        +
      • +

        SimpleDirectedGraph

        +
        public SimpleDirectedGraph(EdgeFactory<V,E> ef)
        +
        Creates a new simple directed graph with the specified edge factory.
        +
        Parameters:
        ef - the edge factory of the new graph.
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/SimpleDirectedWeightedGraph.html b/javadoc/org/jgrapht/graph/SimpleDirectedWeightedGraph.html new file mode 100644 index 0000000..40c0d06 --- /dev/null +++ b/javadoc/org/jgrapht/graph/SimpleDirectedWeightedGraph.html @@ -0,0 +1,381 @@ + + + + + + +SimpleDirectedWeightedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class SimpleDirectedWeightedGraph<V,E>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/SimpleGraph.html b/javadoc/org/jgrapht/graph/SimpleGraph.html new file mode 100644 index 0000000..288f41c --- /dev/null +++ b/javadoc/org/jgrapht/graph/SimpleGraph.html @@ -0,0 +1,359 @@ + + + + + + +SimpleGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class SimpleGraph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SimpleGraph

        +
        public SimpleGraph(EdgeFactory<V,E> ef)
        +
        Creates a new simple graph with the specified edge factory.
        +
        Parameters:
        ef - the edge factory of the new graph.
        +
      • +
      + + + +
        +
      • +

        SimpleGraph

        +
        public SimpleGraph(Class<? extends E> edgeClass)
        +
        Creates a new simple graph.
        +
        Parameters:
        edgeClass - class on which to base factory for edges
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/SimpleGraphPath.html b/javadoc/org/jgrapht/graph/SimpleGraphPath.html new file mode 100644 index 0000000..f505228 --- /dev/null +++ b/javadoc/org/jgrapht/graph/SimpleGraphPath.html @@ -0,0 +1,389 @@ + + + + + + +SimpleGraphPath (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class SimpleGraphPath<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    GraphPath<V,E>
    +
    +
    +
    +
    public class SimpleGraphPath<V,E>
    +extends Object
    +implements GraphPath<V,E>
    +
    A vertex-based representation of a simple path. The graph must be simple for + the vertices to uniquely determine a path. See SimpleGraph
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SimpleGraphPath

        +
        public SimpleGraphPath(SimpleGraph<V,E> simpleGraph,
        +               List<V> vertices,
        +               double weight)
        +
        Parameters:
        simpleGraph - The simple graph where the path is.
        vertices - A list of vertices that make up the path.
        +
        Throws:
        +
        IllegalArgumentException - if the vertices are not in the path or + if they do not define a path in the graph.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGraph

        +
        public SimpleGraph<V,E> getGraph()
        +
        Description copied from interface: GraphPath
        +
        Returns the graph over which this path is defined. The path may also be + valid with respect to other graphs.
        +
        +
        Specified by:
        +
        getGraph in interface GraphPath<V,E>
        +
        Returns:
        the containing graph
        +
      • +
      + + + +
        +
      • +

        getStartVertex

        +
        public V getStartVertex()
        +
        Description copied from interface: GraphPath
        +
        Returns the start vertex in the path.
        +
        +
        Specified by:
        +
        getStartVertex in interface GraphPath<V,E>
        +
        Returns:
        the start vertex
        +
      • +
      + + + +
        +
      • +

        getEndVertex

        +
        public V getEndVertex()
        +
        Description copied from interface: GraphPath
        +
        Returns the end vertex in the path.
        +
        +
        Specified by:
        +
        getEndVertex in interface GraphPath<V,E>
        +
        Returns:
        the end vertex
        +
      • +
      + + + +
        +
      • +

        getEdgeList

        +
        public List<E> getEdgeList()
        +
        Description copied from interface: GraphPath
        +
        Returns the edges making up the path. The first edge in this path is + incident to the start vertex. The last edge is incident to the end + vertex. The vertices along the path can be obtained by traversing from + the start vertex, finding its opposite across the first edge, and then + doing the same successively across subsequent edges; Graphs.getPathVertexList(org.jgrapht.GraphPath<V, E>) provides a convenience method for this. + +

        Whether or not the returned edge list is modifiable depends on the + path implementation.

        +
        +
        Specified by:
        +
        getEdgeList in interface GraphPath<V,E>
        +
        Returns:
        list of edges traversed by the path
        +
      • +
      + + + +
        +
      • +

        getVertexList

        +
        public List<V> getVertexList()
        +
        Returns:
        A list of the vertices that define the path.
        +
      • +
      + + + +
        +
      • +

        getWeight

        +
        public double getWeight()
        +
        Description copied from interface: GraphPath
        +
        Returns the weight assigned to the path. Typically, this will be the sum + of the weights of the edge list entries (as defined by the containing + graph), but some path implementations may use other definitions.
        +
        +
        Specified by:
        +
        getWeight in interface GraphPath<V,E>
        +
        Returns:
        the weight of the path
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/SimpleWeightedGraph.html b/javadoc/org/jgrapht/graph/SimpleWeightedGraph.html new file mode 100644 index 0000000..f91d0f8 --- /dev/null +++ b/javadoc/org/jgrapht/graph/SimpleWeightedGraph.html @@ -0,0 +1,379 @@ + + + + + + +SimpleWeightedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class SimpleWeightedGraph<V,E>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/Subgraph.html b/javadoc/org/jgrapht/graph/Subgraph.html new file mode 100644 index 0000000..30da50b --- /dev/null +++ b/javadoc/org/jgrapht/graph/Subgraph.html @@ -0,0 +1,899 @@ + + + + + + +Subgraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class Subgraph<V,E,G extends Graph<V,E>>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, Graph<V,E>
    +
    +
    +
    Direct Known Subclasses:
    +
    DirectedSubgraph, UndirectedSubgraph
    +
    +
    +
    +
    public class Subgraph<V,E,G extends Graph<V,E>>
    +extends AbstractGraph<V,E>
    +implements Serializable
    +
    A subgraph is a graph that has a subset of vertices and a subset of edges + with respect to some base graph. More formally, a subgraph G(V,E) that is + based on a base graph Gb(Vb,Eb) satisfies the following subgraph + property: V is a subset of Vb and E is a subset of Eb. Other than + this property, a subgraph is a graph with any respect and fully complies with + the Graph interface. + +

    If the base graph is a ListenableGraph, the subgraph + listens on the base graph and guarantees the subgraph property. If an edge or + a vertex is removed from the base graph, it is automatically removed from the + subgraph. Subgraph listeners are informed on such removal only if it results + in a cascaded removal from the subgraph. If the subgraph has been created as + an induced subgraph it also keeps track of edges being added to its vertices. + If vertices are added to the base graph, the subgraph remains unaffected.

    + +

    If the base graph is not a ListenableGraph, then the subgraph + property cannot be guaranteed. If edges or vertices are removed from the base + graph, they are not removed from the subgraph.

    + +

    Modifications to Subgraph are allowed as long as the subgraph property is + maintained. Addition of vertices or edges are allowed as long as they also + exist in the base graph. Removal of vertices or edges is always allowed. The + base graph is never affected by any modification made to the + subgraph.

    + +

    A subgraph may provide a "live-window" on a base graph, so that changes + made to its vertices or edges are immediately reflected in the base graph, + and vice versa. For that to happen, vertices and edges added to the subgraph + must be identical (that is, reference-equal and not only value-equal) + to their respective ones in the base graph. Previous versions of this class + enforced such identity, at a severe performance cost. Currently it is no + longer enforced. If you want to achieve a "live-window"functionality, your + safest tactics would be to NOT override the equals() methods of + your vertices and edges. If you use a class that has already overridden the + equals() method, such as String, than you can use a + wrapper around it, or else use it directly but exercise a great care to avoid + having different-but-equal instances in the subgraph and the base graph.

    + +

    This graph implementation guarantees deterministic vertex and edge set + ordering (via LinkedHashSet).

    +
    Since:
    +
    Jul 18, 2003
    +
    Author:
    +
    Barak Naveh
    +
    See Also:
    Graph, +Set, +Serialized Form
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      Subgraph(G base, + Set<V> vertexSubset) +
      Creates a new induced Subgraph.
      +
      Subgraph(G base, + Set<V> vertexSubset, + Set<E> edgeSubset) +
      Creates a new Subgraph.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      EaddEdge(V sourceVertex, + V targetVertex) +
      Creates a new edge in this graph, going from the source vertex to the + target vertex, and returns the created edge.
      +
      booleanaddEdge(V sourceVertex, + V targetVertex, + E e) +
      Adds the specified edge to this graph, going from the source vertex to + the target vertex.
      +
      booleanaddVertex(V v) +
      Adds the specified vertex to this subgraph.
      +
      booleancontainsEdge(E e) +
      Returns true if this graph contains the specified edge.
      +
      booleancontainsVertex(V v) +
      Returns true if this graph contains the specified vertex.
      +
      Set<E>edgeSet() +
      Returns a set of the edges contained in this graph.
      +
      Set<E>edgesOf(V vertex) +
      Returns a set of all edges touching the specified vertex.
      +
      Set<E>getAllEdges(V sourceVertex, + V targetVertex) +
      Returns a set of all edges connecting source vertex to target vertex if + such vertices exist in this graph.
      +
      GgetBase() 
      EgetEdge(V sourceVertex, + V targetVertex) +
      Returns an edge connecting source vertex to target vertex if such + vertices and such edge exist in this graph.
      +
      EdgeFactory<V,E>getEdgeFactory() +
      Returns the edge factory using which this graph creates new edges.
      +
      VgetEdgeSource(E e) +
      Returns the source vertex of an edge.
      +
      VgetEdgeTarget(E e) +
      Returns the target vertex of an edge.
      +
      doublegetEdgeWeight(E e) +
      Returns the weight assigned to a given edge.
      +
      booleanremoveEdge(E e) +
      Removes the specified edge from the graph.
      +
      EremoveEdge(V sourceVertex, + V targetVertex) +
      Removes an edge going from source vertex to target vertex, if such + vertices and such edge exist in this graph.
      +
      booleanremoveVertex(V v) +
      Removes the specified vertex from this graph including all its touching + edges if present.
      +
      voidsetEdgeWeight(E e, + double weight) 
      Set<V>vertexSet() +
      Returns a set of the vertices contained in this graph.
      +
      + + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        Subgraph

        +
        public Subgraph(G base,
        +        Set<V> vertexSubset,
        +        Set<E> edgeSubset)
        +
        Creates a new Subgraph.
        +
        Parameters:
        base - the base (backing) graph on which the subgraph will be based.
        vertexSubset - vertices to include in the subgraph. If + null then all vertices are included.
        edgeSubset - edges to in include in the subgraph. If + null then all the edges whose vertices found in the graph are + included.
        +
      • +
      + + + + + +
        +
      • +

        Subgraph

        +
        public Subgraph(G base,
        +        Set<V> vertexSubset)
        +
        Creates a new induced Subgraph. The subgraph will keep track of edges + being added to its vertex subset as well as deletion of edges and + vertices. If base it not listenable, this is identical to the call + Subgraph(base, vertexSubset, null) .
        +
        Parameters:
        base - the base (backing) graph on which the subgraph will be based.
        vertexSubset - vertices to include in the subgraph. If + null then all vertices are included.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        getAllEdges

        +
        public Set<E> getAllEdges(V sourceVertex,
        +                 V targetVertex)
        +
        Description copied from interface: Graph
        +
        Returns a set of all edges connecting source vertex to target vertex if + such vertices exist in this graph. If any of the vertices does not exist + or is null, returns null. If both vertices + exist but no edges found, returns an empty set. + +

        In undirected graphs, some of the returned edges may have their source + and target vertices in the opposite order. In simple graphs the returned + set is either singleton set or empty set.

        +
        +
        Specified by:
        +
        getAllEdges in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        a set of all edges connecting source vertex to target vertex.
        See Also:
        Graph.getAllEdges(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        getEdge

        +
        public E getEdge(V sourceVertex,
        +        V targetVertex)
        +
        Description copied from interface: Graph
        +
        Returns an edge connecting source vertex to target vertex if such + vertices and such edge exist in this graph. Otherwise returns + null. If any of the specified vertices is null + returns null + +

        In undirected graphs, the returned edge may have its source and target + vertices in the opposite order.

        +
        +
        Specified by:
        +
        getEdge in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        an edge connecting source vertex to target vertex.
        See Also:
        Graph.getEdge(Object, Object)
        +
      • +
      + + + +
        +
      • +

        getEdgeFactory

        +
        public EdgeFactory<V,E> getEdgeFactory()
        +
        Description copied from interface: Graph
        +
        Returns the edge factory using which this graph creates new edges. The + edge factory is defined when the graph is constructed and must not be + modified.
        +
        +
        Specified by:
        +
        getEdgeFactory in interface Graph<V,E>
        +
        Returns:
        the edge factory using which this graph creates new edges.
        See Also:
        Graph.getEdgeFactory()
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        public E addEdge(V sourceVertex,
        +        V targetVertex)
        +
        Description copied from interface: Graph
        +
        Creates a new edge in this graph, going from the source vertex to the + target vertex, and returns the created edge. Some graphs do not allow + edge-multiplicity. In such cases, if the graph already contains an edge + from the specified source to the specified target, than this method does + not change the graph and returns null. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        + +

        This method creates the new edge e using this graph's + EdgeFactory. For the new edge to be added e + must not be equal to any other edge the graph (even if the graph + allows edge-multiplicity). More formally, the graph must not contain any + edge e2 such that e2.equals(e). If such + e2 is found then the newly created edge e is + abandoned, the method leaves this graph unchanged returns + null.

        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The newly created edge if added to the graph, otherwise + null.
        See Also:
        Graph.addEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        public boolean addEdge(V sourceVertex,
        +              V targetVertex,
        +              E e)
        +
        Description copied from interface: Graph
        +
        Adds the specified edge to this graph, going from the source vertex to + the target vertex. More formally, adds the specified edge, + e, to this graph if this graph contains no edge e2 + such that e2.equals(e). If this graph already contains such + an edge, the call leaves this graph unchanged and returns false. + Some graphs do not allow edge-multiplicity. In such cases, if the graph + already contains an edge from the specified source to the specified + target, than this method does not change the graph and returns + false. If the edge was added to the graph, returns + true. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        e - edge to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + edge.
        See Also:
        Graph.addEdge(Object, Object, Object)
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        containsEdge

        +
        public boolean containsEdge(E e)
        +
        Description copied from interface: Graph
        +
        Returns true if this graph contains the specified edge. More + formally, returns true if and only if this graph contains an + edge e2 such that e.equals(e2). If the + specified edge is null returns false.
        +
        +
        Specified by:
        +
        containsEdge in interface Graph<V,E>
        +
        Parameters:
        e - edge whose presence in this graph is to be tested.
        +
        Returns:
        true if this graph contains the specified edge.
        See Also:
        Graph.containsEdge(Object)
        +
      • +
      + + + + + +
        +
      • +

        containsVertex

        +
        public boolean containsVertex(V v)
        +
        Description copied from interface: Graph
        +
        Returns true if this graph contains the specified vertex. More + formally, returns true if and only if this graph contains a + vertex u such that u.equals(v). If the + specified vertex is null returns false.
        +
        +
        Specified by:
        +
        containsVertex in interface Graph<V,E>
        +
        Parameters:
        v - vertex whose presence in this graph is to be tested.
        +
        Returns:
        true if this graph contains the specified vertex.
        See Also:
        Graph.containsVertex(Object)
        +
      • +
      + + + +
        +
      • +

        edgeSet

        +
        public Set<E> edgeSet()
        +
        Description copied from interface: Graph
        +
        Returns a set of the edges contained in this graph. The set is backed by + the graph, so changes to the graph are reflected in the set. If the graph + is modified while an iteration over the set is in progress, the results + of the iteration are undefined. + +

        The graph implementation may maintain a particular set ordering (e.g. + via LinkedHashSet) for deterministic iteration, but + this is not required. It is the responsibility of callers who rely on + this behavior to only use graph implementations which support it.

        +
        +
        Specified by:
        +
        edgeSet in interface Graph<V,E>
        +
        Returns:
        a set of the edges contained in this graph.
        See Also:
        Graph.edgeSet()
        +
      • +
      + + + + + +
        +
      • +

        edgesOf

        +
        public Set<E> edgesOf(V vertex)
        +
        Description copied from interface: Graph
        +
        Returns a set of all edges touching the specified vertex. If no edges are + touching the specified vertex returns an empty set.
        +
        +
        Specified by:
        +
        edgesOf in interface Graph<V,E>
        +
        Parameters:
        vertex - the vertex for which a set of touching edges is to be + returned.
        +
        Returns:
        a set of all edges touching the specified vertex.
        See Also:
        Graph.edgesOf(Object)
        +
      • +
      + + + + + +
        +
      • +

        removeEdge

        +
        public boolean removeEdge(E e)
        +
        Description copied from interface: Graph
        +
        Removes the specified edge from the graph. Removes the specified edge + from this graph if it is present. More formally, removes an edge + e2 such that e2.equals(e), if the graph contains such + edge. Returns true if the graph contained the specified edge. + (The graph will not contain the specified edge once the call returns). + +

        If the specified edge is null returns + false.

        +
        +
        Specified by:
        +
        removeEdge in interface Graph<V,E>
        +
        Parameters:
        e - edge to be removed from this graph, if present.
        +
        Returns:
        true if and only if the graph contained the + specified edge.
        See Also:
        Graph.removeEdge(Object)
        +
      • +
      + + + + + +
        +
      • +

        removeEdge

        +
        public E removeEdge(V sourceVertex,
        +           V targetVertex)
        +
        Description copied from interface: Graph
        +
        Removes an edge going from source vertex to target vertex, if such + vertices and such edge exist in this graph. Returns the edge if removed + or null otherwise.
        +
        +
        Specified by:
        +
        removeEdge in interface Graph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The removed edge, or null if no edge removed.
        See Also:
        Graph.removeEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        removeVertex

        +
        public boolean removeVertex(V v)
        +
        Description copied from interface: Graph
        +
        Removes the specified vertex from this graph including all its touching + edges if present. More formally, if the graph contains a vertex + u such that u.equals(v), the call removes all edges + that touch u and then removes u itself. If no + such u is found, the call leaves the graph unchanged. + Returns true if the graph contained the specified vertex. (The + graph will not contain the specified vertex once the call returns). + +

        If the specified vertex is null returns + false.

        +
        +
        Specified by:
        +
        removeVertex in interface Graph<V,E>
        +
        Parameters:
        v - vertex to be removed from this graph, if present.
        +
        Returns:
        true if the graph contained the specified vertex; + false otherwise.
        See Also:
        Graph.removeVertex(Object)
        +
      • +
      + + + +
        +
      • +

        vertexSet

        +
        public Set<V> vertexSet()
        +
        Description copied from interface: Graph
        +
        Returns a set of the vertices contained in this graph. The set is backed + by the graph, so changes to the graph are reflected in the set. If the + graph is modified while an iteration over the set is in progress, the + results of the iteration are undefined. + +

        The graph implementation may maintain a particular set ordering (e.g. + via LinkedHashSet) for deterministic iteration, but + this is not required. It is the responsibility of callers who rely on + this behavior to only use graph implementations which support it.

        +
        +
        Specified by:
        +
        vertexSet in interface Graph<V,E>
        +
        Returns:
        a set view of the vertices contained in this graph.
        See Also:
        Graph.vertexSet()
        +
      • +
      + + + + + +
        +
      • +

        getEdgeSource

        +
        public V getEdgeSource(E e)
        +
        Description copied from interface: Graph
        +
        Returns the source vertex of an edge. For an undirected graph, source and + target are distinguishable designations (but without any mathematical + meaning).
        +
        +
        Specified by:
        +
        getEdgeSource in interface Graph<V,E>
        +
        Parameters:
        e - edge of interest
        +
        Returns:
        source vertex
        See Also:
        Graph.getEdgeSource(Object)
        +
      • +
      + + + + + +
        +
      • +

        getEdgeTarget

        +
        public V getEdgeTarget(E e)
        +
        Description copied from interface: Graph
        +
        Returns the target vertex of an edge. For an undirected graph, source and + target are distinguishable designations (but without any mathematical + meaning).
        +
        +
        Specified by:
        +
        getEdgeTarget in interface Graph<V,E>
        +
        Parameters:
        e - edge of interest
        +
        Returns:
        target vertex
        See Also:
        Graph.getEdgeTarget(Object)
        +
      • +
      + + + +
        +
      • +

        getBase

        +
        public G getBase()
        +
      • +
      + + + + + +
        +
      • +

        getEdgeWeight

        +
        public double getEdgeWeight(E e)
        +
        Description copied from interface: Graph
        +
        Returns the weight assigned to a given edge. Unweighted graphs return 1.0 + (as defined by WeightedGraph.DEFAULT_EDGE_WEIGHT), allowing + weighted-graph algorithms to apply to them where meaningful.
        +
        +
        Specified by:
        +
        getEdgeWeight in interface Graph<V,E>
        +
        Parameters:
        e - edge of interest
        +
        Returns:
        edge weight
        See Also:
        Graph.getEdgeWeight(Object)
        +
      • +
      + + + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/UndirectedGraphUnion.html b/javadoc/org/jgrapht/graph/UndirectedGraphUnion.html new file mode 100644 index 0000000..90ea244 --- /dev/null +++ b/javadoc/org/jgrapht/graph/UndirectedGraphUnion.html @@ -0,0 +1,273 @@ + + + + + + +UndirectedGraphUnion (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class UndirectedGraphUnion<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        degreeOf

        +
        public int degreeOf(V vertex)
        +
        Description copied from interface: UndirectedGraph
        +
        Returns the degree of the specified vertex. A degree of a vertex in an + undirected graph is the number of edges touching that vertex.
        +
        +
        Specified by:
        +
        degreeOf in interface UndirectedGraph<V,E>
        +
        Parameters:
        vertex - vertex whose degree is to be calculated.
        +
        Returns:
        the degree of the specified vertex.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/UndirectedMaskSubgraph.html b/javadoc/org/jgrapht/graph/UndirectedMaskSubgraph.html new file mode 100644 index 0000000..28dc18d --- /dev/null +++ b/javadoc/org/jgrapht/graph/UndirectedMaskSubgraph.html @@ -0,0 +1,280 @@ + + + + + + +UndirectedMaskSubgraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class UndirectedMaskSubgraph<V,E>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/UndirectedSubgraph.html b/javadoc/org/jgrapht/graph/UndirectedSubgraph.html new file mode 100644 index 0000000..49dbaca --- /dev/null +++ b/javadoc/org/jgrapht/graph/UndirectedSubgraph.html @@ -0,0 +1,324 @@ + + + + + + +UndirectedSubgraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class UndirectedSubgraph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UndirectedSubgraph

        +
        public UndirectedSubgraph(UndirectedGraph<V,E> base,
        +                  Set<V> vertexSubset,
        +                  Set<E> edgeSubset)
        +
        Creates a new undirected subgraph.
        +
        Parameters:
        base - the base (backing) graph on which the subgraph will be based.
        vertexSubset - vertices to include in the subgraph. If + null then all vertices are included.
        edgeSubset - edges to in include in the subgraph. If + null then all the edges whose vertices found in the graph are + included.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        degreeOf

        +
        public int degreeOf(V vertex)
        +
        Description copied from interface: UndirectedGraph
        +
        Returns the degree of the specified vertex. A degree of a vertex in an + undirected graph is the number of edges touching that vertex.
        +
        +
        Specified by:
        +
        degreeOf in interface UndirectedGraph<V,E>
        +
        Parameters:
        vertex - vertex whose degree is to be calculated.
        +
        Returns:
        the degree of the specified vertex.
        See Also:
        UndirectedGraph.degreeOf(Object)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/UndirectedWeightedSubgraph.html b/javadoc/org/jgrapht/graph/UndirectedWeightedSubgraph.html new file mode 100644 index 0000000..1a6a957 --- /dev/null +++ b/javadoc/org/jgrapht/graph/UndirectedWeightedSubgraph.html @@ -0,0 +1,314 @@ + + + + + + +UndirectedWeightedSubgraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class UndirectedWeightedSubgraph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UndirectedWeightedSubgraph

        +
        public UndirectedWeightedSubgraph(WeightedGraph<V,E> base,
        +                          Set<V> vertexSubset,
        +                          Set<E> edgeSubset)
        +
        Creates a new undirected weighted subgraph.
        +
        Parameters:
        base - the base (backing) graph on which the subgraph will be based.
        vertexSubset - vertices to include in the subgraph. If + null then all vertices are included.
        edgeSubset - edges to in include in the subgraph. If + null then all the edges whose vertices found in the graph are + included.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/UnmodifiableDirectedGraph.html b/javadoc/org/jgrapht/graph/UnmodifiableDirectedGraph.html new file mode 100644 index 0000000..0706087 --- /dev/null +++ b/javadoc/org/jgrapht/graph/UnmodifiableDirectedGraph.html @@ -0,0 +1,295 @@ + + + + + + +UnmodifiableDirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class UnmodifiableDirectedGraph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UnmodifiableDirectedGraph

        +
        public UnmodifiableDirectedGraph(DirectedGraph<V,E> g)
        +
        Creates a new unmodifiable directed graph based on the specified backing + graph.
        +
        Parameters:
        g - the backing graph on which an unmodifiable graph is to be + created.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/UnmodifiableGraph.html b/javadoc/org/jgrapht/graph/UnmodifiableGraph.html new file mode 100644 index 0000000..96c85c8 --- /dev/null +++ b/javadoc/org/jgrapht/graph/UnmodifiableGraph.html @@ -0,0 +1,623 @@ + + + + + + +UnmodifiableGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class UnmodifiableGraph<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, Graph<V,E>
    +
    +
    +
    Direct Known Subclasses:
    +
    UnmodifiableDirectedGraph, UnmodifiableUndirectedGraph
    +
    +
    +
    +
    public class UnmodifiableGraph<V,E>
    +extends GraphDelegator<V,E>
    +implements Serializable
    +
    An unmodifiable view of the backing graph specified in the constructor. This + graph allows modules to provide users with "read-only" access to internal + graphs. Query operations on this graph "read through" to the backing graph, + and attempts to modify this graph result in an + UnsupportedOperationException. + +

    This graph does not pass the hashCode and equals operations through + to the backing graph, but relies on Object's equals and + hashCode methods. This graph will be serializable if the backing + graph is serializable.

    +
    Since:
    +
    Jul 24, 2003
    +
    Author:
    +
    Barak Naveh
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UnmodifiableGraph

        +
        public UnmodifiableGraph(Graph<V,E> g)
        +
        Creates a new unmodifiable graph based on the specified backing graph.
        +
        Parameters:
        g - the backing graph on which an unmodifiable graph is to be + created.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        addEdge

        +
        public E addEdge(V sourceVertex,
        +        V targetVertex)
        +
        Description copied from interface: Graph
        +
        Creates a new edge in this graph, going from the source vertex to the + target vertex, and returns the created edge. Some graphs do not allow + edge-multiplicity. In such cases, if the graph already contains an edge + from the specified source to the specified target, than this method does + not change the graph and returns null. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        + +

        This method creates the new edge e using this graph's + EdgeFactory. For the new edge to be added e + must not be equal to any other edge the graph (even if the graph + allows edge-multiplicity). More formally, the graph must not contain any + edge e2 such that e2.equals(e). If such + e2 is found then the newly created edge e is + abandoned, the method leaves this graph unchanged returns + null.

        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Overrides:
        +
        addEdge in class GraphDelegator<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The newly created edge if added to the graph, otherwise + null.
        See Also:
        Graph.addEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        public boolean addEdge(V sourceVertex,
        +              V targetVertex,
        +              E e)
        +
        Description copied from interface: Graph
        +
        Adds the specified edge to this graph, going from the source vertex to + the target vertex. More formally, adds the specified edge, + e, to this graph if this graph contains no edge e2 + such that e2.equals(e). If this graph already contains such + an edge, the call leaves this graph unchanged and returns false. + Some graphs do not allow edge-multiplicity. In such cases, if the graph + already contains an edge from the specified source to the specified + target, than this method does not change the graph and returns + false. If the edge was added to the graph, returns + true. + +

        The source and target vertices must already be contained in this + graph. If they are not found in graph IllegalArgumentException is + thrown.

        +
        +
        Specified by:
        +
        addEdge in interface Graph<V,E>
        +
        Overrides:
        +
        addEdge in class GraphDelegator<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        e - edge to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + edge.
        See Also:
        Graph.addEdge(Object, Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        addVertex

        +
        public boolean addVertex(V v)
        +
        Description copied from interface: Graph
        +
        Adds the specified vertex to this graph if not already present. More + formally, adds the specified vertex, v, to this graph if + this graph contains no vertex u such that + u.equals(v). If this graph already contains such vertex, the call + leaves this graph unchanged and returns false. In combination + with the restriction on constructors, this ensures that graphs never + contain duplicate vertices.
        +
        +
        Specified by:
        +
        addVertex in interface Graph<V,E>
        +
        Overrides:
        +
        addVertex in class GraphDelegator<V,E>
        +
        Parameters:
        v - vertex to be added to this graph.
        +
        Returns:
        true if this graph did not already contain the specified + vertex.
        See Also:
        Graph.addVertex(Object)
        +
      • +
      + + + +
        +
      • +

        removeAllEdges

        +
        public boolean removeAllEdges(Collection<? extends E> edges)
        +
        Description copied from interface: Graph
        +
        Removes all the edges in this graph that are also contained in the + specified edge collection. After this call returns, this graph will + contain no edges in common with the specified edges. This method will + invoke the Graph.removeEdge(Object) method.
        +
        +
        Specified by:
        +
        removeAllEdges in interface Graph<V,E>
        +
        Overrides:
        +
        removeAllEdges in class AbstractGraph<V,E>
        +
        Parameters:
        edges - edges to be removed from this graph.
        +
        Returns:
        true if this graph changed as a result of the call
        See Also:
        Graph.removeAllEdges(Collection)
        +
      • +
      + + + + + +
        +
      • +

        removeAllEdges

        +
        public Set<E> removeAllEdges(V sourceVertex,
        +                    V targetVertex)
        +
        Description copied from interface: Graph
        +
        Removes all the edges going from the specified source vertex to the + specified target vertex, and returns a set of all removed edges. Returns + null if any of the specified vertices does not exist in the + graph. If both vertices exist but no edge is found, returns an empty set. + This method will either invoke the Graph.removeEdge(Object) method, or + the Graph.removeEdge(Object, Object) method.
        +
        +
        Specified by:
        +
        removeAllEdges in interface Graph<V,E>
        +
        Overrides:
        +
        removeAllEdges in class AbstractGraph<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        the removed edges, or null if either vertex is not + part of graph
        See Also:
        Graph.removeAllEdges(Object, Object)
        +
      • +
      + + + +
        +
      • +

        removeAllVertices

        +
        public boolean removeAllVertices(Collection<? extends V> vertices)
        +
        Description copied from interface: Graph
        +
        Removes all the vertices in this graph that are also contained in the + specified vertex collection. After this call returns, this graph will + contain no vertices in common with the specified vertices. This method + will invoke the Graph.removeVertex(Object) method.
        +
        +
        Specified by:
        +
        removeAllVertices in interface Graph<V,E>
        +
        Overrides:
        +
        removeAllVertices in class AbstractGraph<V,E>
        +
        Parameters:
        vertices - vertices to be removed from this graph.
        +
        Returns:
        true if this graph changed as a result of the call
        See Also:
        Graph.removeAllVertices(Collection)
        +
      • +
      + + + + + +
        +
      • +

        removeEdge

        +
        public boolean removeEdge(E e)
        +
        Description copied from interface: Graph
        +
        Removes the specified edge from the graph. Removes the specified edge + from this graph if it is present. More formally, removes an edge + e2 such that e2.equals(e), if the graph contains such + edge. Returns true if the graph contained the specified edge. + (The graph will not contain the specified edge once the call returns). + +

        If the specified edge is null returns + false.

        +
        +
        Specified by:
        +
        removeEdge in interface Graph<V,E>
        +
        Overrides:
        +
        removeEdge in class GraphDelegator<V,E>
        +
        Parameters:
        e - edge to be removed from this graph, if present.
        +
        Returns:
        true if and only if the graph contained the + specified edge.
        See Also:
        Graph.removeEdge(Object)
        +
      • +
      + + + + + +
        +
      • +

        removeEdge

        +
        public E removeEdge(V sourceVertex,
        +           V targetVertex)
        +
        Description copied from interface: Graph
        +
        Removes an edge going from source vertex to target vertex, if such + vertices and such edge exist in this graph. Returns the edge if removed + or null otherwise.
        +
        +
        Specified by:
        +
        removeEdge in interface Graph<V,E>
        +
        Overrides:
        +
        removeEdge in class GraphDelegator<V,E>
        +
        Parameters:
        sourceVertex - source vertex of the edge.
        targetVertex - target vertex of the edge.
        +
        Returns:
        The removed edge, or null if no edge removed.
        See Also:
        Graph.removeEdge(Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        removeVertex

        +
        public boolean removeVertex(V v)
        +
        Description copied from interface: Graph
        +
        Removes the specified vertex from this graph including all its touching + edges if present. More formally, if the graph contains a vertex + u such that u.equals(v), the call removes all edges + that touch u and then removes u itself. If no + such u is found, the call leaves the graph unchanged. + Returns true if the graph contained the specified vertex. (The + graph will not contain the specified vertex once the call returns). + +

        If the specified vertex is null returns + false.

        +
        +
        Specified by:
        +
        removeVertex in interface Graph<V,E>
        +
        Overrides:
        +
        removeVertex in class GraphDelegator<V,E>
        +
        Parameters:
        v - vertex to be removed from this graph, if present.
        +
        Returns:
        true if the graph contained the specified vertex; + false otherwise.
        See Also:
        Graph.removeVertex(Object)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/UnmodifiableUndirectedGraph.html b/javadoc/org/jgrapht/graph/UnmodifiableUndirectedGraph.html new file mode 100644 index 0000000..b42b5e7 --- /dev/null +++ b/javadoc/org/jgrapht/graph/UnmodifiableUndirectedGraph.html @@ -0,0 +1,295 @@ + + + + + + +UnmodifiableUndirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class UnmodifiableUndirectedGraph<V,E>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UnmodifiableUndirectedGraph

        +
        public UnmodifiableUndirectedGraph(UndirectedGraph<V,E> g)
        +
        Creates a new unmodifiable undirected graph based on the specified + backing graph.
        +
        Parameters:
        g - the backing graph on which an unmodifiable graph is to be + created.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/WeightedMultigraph.html b/javadoc/org/jgrapht/graph/WeightedMultigraph.html new file mode 100644 index 0000000..6c99b33 --- /dev/null +++ b/javadoc/org/jgrapht/graph/WeightedMultigraph.html @@ -0,0 +1,382 @@ + + + + + + +WeightedMultigraph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class WeightedMultigraph<V,E>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/WeightedPseudograph.html b/javadoc/org/jgrapht/graph/WeightedPseudograph.html new file mode 100644 index 0000000..50774aa --- /dev/null +++ b/javadoc/org/jgrapht/graph/WeightedPseudograph.html @@ -0,0 +1,382 @@ + + + + + + +WeightedPseudograph (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph
+

Class WeightedPseudograph<V,E>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/AbstractGraphBuilder.html b/javadoc/org/jgrapht/graph/builder/AbstractGraphBuilder.html new file mode 100644 index 0000000..2fdb797 --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/AbstractGraphBuilder.html @@ -0,0 +1,520 @@ + + + + + + +AbstractGraphBuilder (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph.builder
+

Class AbstractGraphBuilder<V,E,G extends Graph<V,E>,B extends AbstractGraphBuilder<V,E,G,B>>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.jgrapht.graph.builder.AbstractGraphBuilder<V,E,G,B>
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      protected Ggraph 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      AbstractGraphBuilder(G baseGraph) +
      Creates a builder based on baseGraph.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      BaddEdge(V source, + V target) +
      Adds an edge to the graph being built.
      +
      BaddEdgeChain(V first, + V second, + V... rest) +
      Adds a chain of edges to the graph being built.
      +
      BaddGraph(Graph<? extends V,? extends E> sourceGraph) +
      Adds all the vertices and all the edges of the sourceGraph to the + graph being built.
      +
      BaddVertex(V vertex) +
      Adds vertex to the graph being built.
      +
      BaddVertices(V... vertices) +
      Adds each vertex of vertices to the graph being built.
      +
      Gbuild() +
      Build the graph.
      +
      UnmodifiableGraph<V,E>buildUnmodifiable() +
      Build an unmodifiable version graph.
      +
      BremoveEdge(V source, + V target) +
      Removes an edge going from source vertex to target vertex from the graph + being built, if such vertices and such edge exist in the graph.
      +
      BremoveVertex(V vertex) +
      Removes vertex from the graph being built, if such vertex exist + in graph.
      +
      BremoveVertices(V... vertices) +
      Removes each vertex of vertices from the graph being built, if + such vertices exist in graph.
      +
      protected abstract Bself() 
      + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        graph

        +
        protected final G extends Graph<V,E> graph
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        AbstractGraphBuilder

        +
        public AbstractGraphBuilder(G baseGraph)
        +
        Creates a builder based on baseGraph. baseGraph must be + mutable.
        +
        Parameters:
        baseGraph - the graph object to base building on
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        self

        +
        protected abstract B self()
        +
        Returns:
        the this object.
        +
      • +
      + + + + + +
        +
      • +

        addVertex

        +
        public B addVertex(V vertex)
        +
        Adds vertex to the graph being built.
        +
        Parameters:
        vertex - the vertex to add
        +
        Returns:
        this builder object
        See Also:
        Graph.addVertex(Object)
        +
      • +
      + + + + + +
        +
      • +

        addVertices

        +
        public B addVertices(V... vertices)
        +
        Adds each vertex of vertices to the graph being built.
        +
        Parameters:
        vertices - the vertices to add
        +
        Returns:
        this builder object
        See Also:
        addVertex(Object)
        +
      • +
      + + + + + +
        +
      • +

        addEdge

        +
        public B addEdge(V source,
        +        V target)
        +
        Adds an edge to the graph being built. The source and target vertices are + added to the graph, if not already included.
        +
        Parameters:
        source - source vertex of the edge.
        target - target vertex of the edge.
        +
        Returns:
        this builder object
        See Also:
        Graphs.addEdgeWithVertices(Graph, Object, Object)
        +
      • +
      + + + + + +
        +
      • +

        addEdgeChain

        +
        public B addEdgeChain(V first,
        +             V second,
        +             V... rest)
        +
        Adds a chain of edges to the graph being built. The vertices are added to + the graph, if not already included.
        +
        Returns:
        this builder object
        See Also:
        addEdge(Object, Object)
        +
      • +
      + + + +
        +
      • +

        addGraph

        +
        public B addGraph(Graph<? extends V,? extends E> sourceGraph)
        +
        Adds all the vertices and all the edges of the sourceGraph to the + graph being built.
        +
        Returns:
        this builder object
        See Also:
        Graphs.addGraph(Graph, Graph)
        +
      • +
      + + + + + +
        +
      • +

        removeVertex

        +
        public B removeVertex(V vertex)
        +
        Removes vertex from the graph being built, if such vertex exist + in graph.
        +
        Parameters:
        vertex - the vertex to remove
        +
        Returns:
        this builder object
        See Also:
        Graph.removeVertex(Object)
        +
      • +
      + + + + + +
        +
      • +

        removeVertices

        +
        public B removeVertices(V... vertices)
        +
        Removes each vertex of vertices from the graph being built, if + such vertices exist in graph.
        +
        Parameters:
        vertices - the vertices to remove
        +
        Returns:
        this builder object
        See Also:
        removeVertex(Object)
        +
      • +
      + + + + + +
        +
      • +

        removeEdge

        +
        public B removeEdge(V source,
        +           V target)
        +
        Removes an edge going from source vertex to target vertex from the graph + being built, if such vertices and such edge exist in the graph.
        +
        Parameters:
        source - source vertex of the edge.
        target - target vertex of the edge.
        +
        Returns:
        this builder object
        See Also:
        Graph.removeVertex(Object)
        +
      • +
      + + + +
        +
      • +

        build

        +
        public G build()
        +
        Build the graph. Calling any method (including this method) on this + builder object after calling this method is undefined behaviour.
        +
        Returns:
        the built graph.
        +
      • +
      + + + +
        +
      • +

        buildUnmodifiable

        +
        public UnmodifiableGraph<V,E> buildUnmodifiable()
        +
        Build an unmodifiable version graph. Calling any method (including this + method) on this builder object after calling this method is undefined + behaviour.
        +
        Returns:
        the built unmodifiable graph.
        See Also:
        build()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/DirectedGraphBuilder.html b/javadoc/org/jgrapht/graph/builder/DirectedGraphBuilder.html new file mode 100644 index 0000000..75e11b8 --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/DirectedGraphBuilder.html @@ -0,0 +1,317 @@ + + + + + + +DirectedGraphBuilder (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph.builder
+

Class DirectedGraphBuilder<V,E,G extends DirectedGraph<V,E>>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        DirectedGraphBuilder

        +
        public DirectedGraphBuilder(G baseGraph)
        +
        Creates a builder based on baseGraph. baseGraph must be + mutable. + +

        The recomended way to use this constructor is: new + DirectedGraphBuilder<...>(new YourGraph<...>(...)). + +

        NOTE: baseGraph should not be an existing graph. If you want + to add an existing graph to the graph being built, you should use the + AbstractGraphBuilder.addVertex(Object) method.

        +
        Parameters:
        baseGraph - the graph object to base building on
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/DirectedGraphBuilderBase.html b/javadoc/org/jgrapht/graph/builder/DirectedGraphBuilderBase.html new file mode 100644 index 0000000..788caea --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/DirectedGraphBuilderBase.html @@ -0,0 +1,307 @@ + + + + + + +DirectedGraphBuilderBase (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph.builder
+

Class DirectedGraphBuilderBase<V,E,G extends DirectedGraph<V,E>,B extends DirectedGraphBuilderBase<V,E,G,B>>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/DirectedWeightedGraphBuilder.html b/javadoc/org/jgrapht/graph/builder/DirectedWeightedGraphBuilder.html new file mode 100644 index 0000000..1820a1d --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/DirectedWeightedGraphBuilder.html @@ -0,0 +1,329 @@ + + + + + + +DirectedWeightedGraphBuilder (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph.builder
+

Class DirectedWeightedGraphBuilder<V,E,G extends DirectedGraph<V,E> & WeightedGraph<V,E>>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/DirectedWeightedGraphBuilderBase.html b/javadoc/org/jgrapht/graph/builder/DirectedWeightedGraphBuilderBase.html new file mode 100644 index 0000000..d995bc4 --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/DirectedWeightedGraphBuilderBase.html @@ -0,0 +1,321 @@ + + + + + + +DirectedWeightedGraphBuilderBase (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph.builder
+

Class DirectedWeightedGraphBuilderBase<V,E,G extends DirectedGraph<V,E> & WeightedGraph<V,E>,B extends DirectedWeightedGraphBuilderBase<V,E,G,B>>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        DirectedWeightedGraphBuilderBase

        +
        public DirectedWeightedGraphBuilderBase(G baseGraph)
        +
        Creates a builder based on baseGraph. baseGraph must be + mutable.
        +
        Parameters:
        baseGraph - the graph object to base building on
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        addEdge

        +
        public B addEdge(V source,
        +        V target,
        +        double weight)
        +
        Adds an weighted edge to the graph being built. The source and target + vertices are added to the graph, if not already included.
        +
        Parameters:
        source - source vertex of the edge.
        target - target vertex of the edge.
        weight - weight of the edge.
        +
        Returns:
        this builder object
        See Also:
        Graphs.addEdgeWithVertices(Graph, Object, Object, double)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/UndirectedGraphBuilder.html b/javadoc/org/jgrapht/graph/builder/UndirectedGraphBuilder.html new file mode 100644 index 0000000..ab4a4cb --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/UndirectedGraphBuilder.html @@ -0,0 +1,317 @@ + + + + + + +UndirectedGraphBuilder (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph.builder
+

Class UndirectedGraphBuilder<V,E,G extends UndirectedGraph<V,E>>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/UndirectedGraphBuilderBase.html b/javadoc/org/jgrapht/graph/builder/UndirectedGraphBuilderBase.html new file mode 100644 index 0000000..833d95b --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/UndirectedGraphBuilderBase.html @@ -0,0 +1,307 @@ + + + + + + +UndirectedGraphBuilderBase (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph.builder
+

Class UndirectedGraphBuilderBase<V,E,G extends UndirectedGraph<V,E>,B extends UndirectedGraphBuilderBase<V,E,G,B>>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/UndirectedWeightedGraphBuilder.html b/javadoc/org/jgrapht/graph/builder/UndirectedWeightedGraphBuilder.html new file mode 100644 index 0000000..01823b6 --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/UndirectedWeightedGraphBuilder.html @@ -0,0 +1,329 @@ + + + + + + +UndirectedWeightedGraphBuilder (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph.builder
+

Class UndirectedWeightedGraphBuilder<V,E,G extends UndirectedGraph<V,E> & WeightedGraph<V,E>>

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/UndirectedWeightedGraphBuilderBase.html b/javadoc/org/jgrapht/graph/builder/UndirectedWeightedGraphBuilderBase.html new file mode 100644 index 0000000..5811c3d --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/UndirectedWeightedGraphBuilderBase.html @@ -0,0 +1,321 @@ + + + + + + +UndirectedWeightedGraphBuilderBase (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.graph.builder
+

Class UndirectedWeightedGraphBuilderBase<V,E,G extends UndirectedGraph<V,E> & WeightedGraph<V,E>,B extends UndirectedWeightedGraphBuilderBase<V,E,G,B>>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        UndirectedWeightedGraphBuilderBase

        +
        public UndirectedWeightedGraphBuilderBase(G baseGraph)
        +
        Creates a builder based on baseGraph. baseGraph must be + mutable.
        +
        Parameters:
        baseGraph - the graph object to base building on
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        addEdge

        +
        public B addEdge(V source,
        +        V target,
        +        double weight)
        +
        Adds an weighted edge to the graph being built. The source and target + vertices are added to the graph, if not already included.
        +
        Parameters:
        source - source vertex of the edge.
        target - target vertex of the edge.
        weight - weight of the edge.
        +
        Returns:
        this builder object
        See Also:
        Graphs.addEdgeWithVertices(Graph, Object, Object, double)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/class-use/AbstractGraphBuilder.html b/javadoc/org/jgrapht/graph/builder/class-use/AbstractGraphBuilder.html new file mode 100644 index 0000000..8ba518c --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/class-use/AbstractGraphBuilder.html @@ -0,0 +1,218 @@ + + + + + + +Uses of Class org.jgrapht.graph.builder.AbstractGraphBuilder (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.builder.AbstractGraphBuilder

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/class-use/DirectedGraphBuilder.html b/javadoc/org/jgrapht/graph/builder/class-use/DirectedGraphBuilder.html new file mode 100644 index 0000000..204e58d --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/class-use/DirectedGraphBuilder.html @@ -0,0 +1,159 @@ + + + + + + +Uses of Class org.jgrapht.graph.builder.DirectedGraphBuilder (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.builder.DirectedGraphBuilder

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/class-use/DirectedGraphBuilderBase.html b/javadoc/org/jgrapht/graph/builder/class-use/DirectedGraphBuilderBase.html new file mode 100644 index 0000000..3e3b3d8 --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/class-use/DirectedGraphBuilderBase.html @@ -0,0 +1,240 @@ + + + + + + +Uses of Class org.jgrapht.graph.builder.DirectedGraphBuilderBase (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.builder.DirectedGraphBuilderBase

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/class-use/DirectedWeightedGraphBuilder.html b/javadoc/org/jgrapht/graph/builder/class-use/DirectedWeightedGraphBuilder.html new file mode 100644 index 0000000..c09aca3 --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/class-use/DirectedWeightedGraphBuilder.html @@ -0,0 +1,159 @@ + + + + + + +Uses of Class org.jgrapht.graph.builder.DirectedWeightedGraphBuilder (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.builder.DirectedWeightedGraphBuilder

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/class-use/DirectedWeightedGraphBuilderBase.html b/javadoc/org/jgrapht/graph/builder/class-use/DirectedWeightedGraphBuilderBase.html new file mode 100644 index 0000000..e6c4c88 --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/class-use/DirectedWeightedGraphBuilderBase.html @@ -0,0 +1,228 @@ + + + + + + +Uses of Class org.jgrapht.graph.builder.DirectedWeightedGraphBuilderBase (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.builder.DirectedWeightedGraphBuilderBase

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/class-use/UndirectedGraphBuilder.html b/javadoc/org/jgrapht/graph/builder/class-use/UndirectedGraphBuilder.html new file mode 100644 index 0000000..fb688dd --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/class-use/UndirectedGraphBuilder.html @@ -0,0 +1,159 @@ + + + + + + +Uses of Class org.jgrapht.graph.builder.UndirectedGraphBuilder (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.builder.UndirectedGraphBuilder

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/class-use/UndirectedGraphBuilderBase.html b/javadoc/org/jgrapht/graph/builder/class-use/UndirectedGraphBuilderBase.html new file mode 100644 index 0000000..736e509 --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/class-use/UndirectedGraphBuilderBase.html @@ -0,0 +1,232 @@ + + + + + + +Uses of Class org.jgrapht.graph.builder.UndirectedGraphBuilderBase (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.builder.UndirectedGraphBuilderBase

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/class-use/UndirectedWeightedGraphBuilder.html b/javadoc/org/jgrapht/graph/builder/class-use/UndirectedWeightedGraphBuilder.html new file mode 100644 index 0000000..cb08b26 --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/class-use/UndirectedWeightedGraphBuilder.html @@ -0,0 +1,159 @@ + + + + + + +Uses of Class org.jgrapht.graph.builder.UndirectedWeightedGraphBuilder (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.builder.UndirectedWeightedGraphBuilder

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/class-use/UndirectedWeightedGraphBuilderBase.html b/javadoc/org/jgrapht/graph/builder/class-use/UndirectedWeightedGraphBuilderBase.html new file mode 100644 index 0000000..0b7e3b7 --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/class-use/UndirectedWeightedGraphBuilderBase.html @@ -0,0 +1,220 @@ + + + + + + +Uses of Class org.jgrapht.graph.builder.UndirectedWeightedGraphBuilderBase (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.builder.UndirectedWeightedGraphBuilderBase

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/package-frame.html b/javadoc/org/jgrapht/graph/builder/package-frame.html new file mode 100644 index 0000000..4a64654 --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/package-frame.html @@ -0,0 +1,28 @@ + + + + + + +org.jgrapht.graph.builder (JGraphT : a free Java graph library) + + + + +

org.jgrapht.graph.builder

+ + + diff --git a/javadoc/org/jgrapht/graph/builder/package-summary.html b/javadoc/org/jgrapht/graph/builder/package-summary.html new file mode 100644 index 0000000..c90b862 --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/package-summary.html @@ -0,0 +1,194 @@ + + + + + + +org.jgrapht.graph.builder (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht.graph.builder

+
+
Various builder for graphs.
+
+

See: Description

+
+
+ + + + +

Package org.jgrapht.graph.builder Description

+
Various builder for graphs.
+
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/package-tree.html b/javadoc/org/jgrapht/graph/builder/package-tree.html new file mode 100644 index 0000000..1921096 --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/package-tree.html @@ -0,0 +1,153 @@ + + + + + + +org.jgrapht.graph.builder Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht.graph.builder

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/builder/package-use.html b/javadoc/org/jgrapht/graph/builder/package-use.html new file mode 100644 index 0000000..d726c68 --- /dev/null +++ b/javadoc/org/jgrapht/graph/builder/package-use.html @@ -0,0 +1,232 @@ + + + + + + +Uses of Package org.jgrapht.graph.builder (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht.graph.builder

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/AbstractBaseGraph.DirectedEdgeContainer.html b/javadoc/org/jgrapht/graph/class-use/AbstractBaseGraph.DirectedEdgeContainer.html new file mode 100644 index 0000000..9862412 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/AbstractBaseGraph.DirectedEdgeContainer.html @@ -0,0 +1,170 @@ + + + + + + +Uses of Class org.jgrapht.graph.AbstractBaseGraph.DirectedEdgeContainer (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.AbstractBaseGraph.DirectedEdgeContainer

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/AbstractBaseGraph.DirectedSpecifics.html b/javadoc/org/jgrapht/graph/class-use/AbstractBaseGraph.DirectedSpecifics.html new file mode 100644 index 0000000..f501815 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/AbstractBaseGraph.DirectedSpecifics.html @@ -0,0 +1,159 @@ + + + + + + +Uses of Class org.jgrapht.graph.AbstractBaseGraph.DirectedSpecifics (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.AbstractBaseGraph.DirectedSpecifics

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/AbstractBaseGraph.UndirectedSpecifics.html b/javadoc/org/jgrapht/graph/class-use/AbstractBaseGraph.UndirectedSpecifics.html new file mode 100644 index 0000000..80d89fb --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/AbstractBaseGraph.UndirectedSpecifics.html @@ -0,0 +1,159 @@ + + + + + + +Uses of Class org.jgrapht.graph.AbstractBaseGraph.UndirectedSpecifics (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.AbstractBaseGraph.UndirectedSpecifics

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/AbstractBaseGraph.html b/javadoc/org/jgrapht/graph/class-use/AbstractBaseGraph.html new file mode 100644 index 0000000..32d5ad4 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/AbstractBaseGraph.html @@ -0,0 +1,353 @@ + + + + + + +Uses of Class org.jgrapht.graph.AbstractBaseGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.AbstractBaseGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/AbstractGraph.html b/javadoc/org/jgrapht/graph/class-use/AbstractGraph.html new file mode 100644 index 0000000..c0554ed --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/AbstractGraph.html @@ -0,0 +1,501 @@ + + + + + + +Uses of Class org.jgrapht.graph.AbstractGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.AbstractGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/AsUndirectedGraph.html b/javadoc/org/jgrapht/graph/class-use/AsUndirectedGraph.html new file mode 100644 index 0000000..70ce773 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/AsUndirectedGraph.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.AsUndirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.AsUndirectedGraph

+
+
No usage of org.jgrapht.graph.AsUndirectedGraph
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/AsUnweightedDirectedGraph.html b/javadoc/org/jgrapht/graph/class-use/AsUnweightedDirectedGraph.html new file mode 100644 index 0000000..178e0bf --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/AsUnweightedDirectedGraph.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.AsUnweightedDirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.AsUnweightedDirectedGraph

+
+
No usage of org.jgrapht.graph.AsUnweightedDirectedGraph
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/AsUnweightedGraph.html b/javadoc/org/jgrapht/graph/class-use/AsUnweightedGraph.html new file mode 100644 index 0000000..8bfa860 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/AsUnweightedGraph.html @@ -0,0 +1,162 @@ + + + + + + +Uses of Class org.jgrapht.graph.AsUnweightedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.AsUnweightedGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/AsWeightedDirectedGraph.html b/javadoc/org/jgrapht/graph/class-use/AsWeightedDirectedGraph.html new file mode 100644 index 0000000..1c70313 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/AsWeightedDirectedGraph.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.AsWeightedDirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.AsWeightedDirectedGraph

+
+
No usage of org.jgrapht.graph.AsWeightedDirectedGraph
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/AsWeightedGraph.html b/javadoc/org/jgrapht/graph/class-use/AsWeightedGraph.html new file mode 100644 index 0000000..9a4b02c --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/AsWeightedGraph.html @@ -0,0 +1,161 @@ + + + + + + +Uses of Class org.jgrapht.graph.AsWeightedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.AsWeightedGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/ClassBasedEdgeFactory.html b/javadoc/org/jgrapht/graph/class-use/ClassBasedEdgeFactory.html new file mode 100644 index 0000000..6468f72 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/ClassBasedEdgeFactory.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.ClassBasedEdgeFactory (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.ClassBasedEdgeFactory

+
+
No usage of org.jgrapht.graph.ClassBasedEdgeFactory
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/ClassBasedVertexFactory.html b/javadoc/org/jgrapht/graph/class-use/ClassBasedVertexFactory.html new file mode 100644 index 0000000..d94340a --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/ClassBasedVertexFactory.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.ClassBasedVertexFactory (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.ClassBasedVertexFactory

+
+
No usage of org.jgrapht.graph.ClassBasedVertexFactory
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/DefaultDirectedGraph.html b/javadoc/org/jgrapht/graph/class-use/DefaultDirectedGraph.html new file mode 100644 index 0000000..152613f --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/DefaultDirectedGraph.html @@ -0,0 +1,178 @@ + + + + + + +Uses of Class org.jgrapht.graph.DefaultDirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.DefaultDirectedGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/DefaultDirectedWeightedGraph.html b/javadoc/org/jgrapht/graph/class-use/DefaultDirectedWeightedGraph.html new file mode 100644 index 0000000..d181970 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/DefaultDirectedWeightedGraph.html @@ -0,0 +1,163 @@ + + + + + + +Uses of Class org.jgrapht.graph.DefaultDirectedWeightedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.DefaultDirectedWeightedGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/DefaultEdge.html b/javadoc/org/jgrapht/graph/class-use/DefaultEdge.html new file mode 100644 index 0000000..09e6a4d --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/DefaultEdge.html @@ -0,0 +1,161 @@ + + + + + + +Uses of Class org.jgrapht.graph.DefaultEdge (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.DefaultEdge

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/DefaultGraphMapping.html b/javadoc/org/jgrapht/graph/class-use/DefaultGraphMapping.html new file mode 100644 index 0000000..118ae9d --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/DefaultGraphMapping.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.DefaultGraphMapping (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.DefaultGraphMapping

+
+
No usage of org.jgrapht.graph.DefaultGraphMapping
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/DefaultListenableGraph.html b/javadoc/org/jgrapht/graph/class-use/DefaultListenableGraph.html new file mode 100644 index 0000000..2274833 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/DefaultListenableGraph.html @@ -0,0 +1,179 @@ + + + + + + +Uses of Class org.jgrapht.graph.DefaultListenableGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.DefaultListenableGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/DefaultWeightedEdge.html b/javadoc/org/jgrapht/graph/class-use/DefaultWeightedEdge.html new file mode 100644 index 0000000..7df39bf --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/DefaultWeightedEdge.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.DefaultWeightedEdge (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.DefaultWeightedEdge

+
+
No usage of org.jgrapht.graph.DefaultWeightedEdge
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/DirectedGraphUnion.html b/javadoc/org/jgrapht/graph/class-use/DirectedGraphUnion.html new file mode 100644 index 0000000..72e981c --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/DirectedGraphUnion.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.DirectedGraphUnion (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.DirectedGraphUnion

+
+
No usage of org.jgrapht.graph.DirectedGraphUnion
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/DirectedMaskSubgraph.html b/javadoc/org/jgrapht/graph/class-use/DirectedMaskSubgraph.html new file mode 100644 index 0000000..9d878d0 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/DirectedMaskSubgraph.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.DirectedMaskSubgraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.DirectedMaskSubgraph

+
+
No usage of org.jgrapht.graph.DirectedMaskSubgraph
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/DirectedMultigraph.html b/javadoc/org/jgrapht/graph/class-use/DirectedMultigraph.html new file mode 100644 index 0000000..30d1afe --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/DirectedMultigraph.html @@ -0,0 +1,178 @@ + + + + + + +Uses of Class org.jgrapht.graph.DirectedMultigraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.DirectedMultigraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/DirectedPseudograph.html b/javadoc/org/jgrapht/graph/class-use/DirectedPseudograph.html new file mode 100644 index 0000000..0621bc1 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/DirectedPseudograph.html @@ -0,0 +1,178 @@ + + + + + + +Uses of Class org.jgrapht.graph.DirectedPseudograph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.DirectedPseudograph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/DirectedSubgraph.html b/javadoc/org/jgrapht/graph/class-use/DirectedSubgraph.html new file mode 100644 index 0000000..0263fdb --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/DirectedSubgraph.html @@ -0,0 +1,224 @@ + + + + + + +Uses of Class org.jgrapht.graph.DirectedSubgraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.DirectedSubgraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/DirectedWeightedMultigraph.html b/javadoc/org/jgrapht/graph/class-use/DirectedWeightedMultigraph.html new file mode 100644 index 0000000..5bae201 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/DirectedWeightedMultigraph.html @@ -0,0 +1,163 @@ + + + + + + +Uses of Class org.jgrapht.graph.DirectedWeightedMultigraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.DirectedWeightedMultigraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/DirectedWeightedPseudograph.html b/javadoc/org/jgrapht/graph/class-use/DirectedWeightedPseudograph.html new file mode 100644 index 0000000..075572d --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/DirectedWeightedPseudograph.html @@ -0,0 +1,163 @@ + + + + + + +Uses of Class org.jgrapht.graph.DirectedWeightedPseudograph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.DirectedWeightedPseudograph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/DirectedWeightedSubgraph.html b/javadoc/org/jgrapht/graph/class-use/DirectedWeightedSubgraph.html new file mode 100644 index 0000000..aa74a7f --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/DirectedWeightedSubgraph.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.DirectedWeightedSubgraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.DirectedWeightedSubgraph

+
+
No usage of org.jgrapht.graph.DirectedWeightedSubgraph
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/EdgeReversedGraph.html b/javadoc/org/jgrapht/graph/class-use/EdgeReversedGraph.html new file mode 100644 index 0000000..adc13ae --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/EdgeReversedGraph.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.EdgeReversedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.EdgeReversedGraph

+
+
No usage of org.jgrapht.graph.EdgeReversedGraph
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/EdgeSetFactory.html b/javadoc/org/jgrapht/graph/class-use/EdgeSetFactory.html new file mode 100644 index 0000000..8fb3b71 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/EdgeSetFactory.html @@ -0,0 +1,161 @@ + + + + + + +Uses of Interface org.jgrapht.graph.EdgeSetFactory (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.graph.EdgeSetFactory

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/GraphDelegator.html b/javadoc/org/jgrapht/graph/class-use/GraphDelegator.html new file mode 100644 index 0000000..2eed832 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/GraphDelegator.html @@ -0,0 +1,251 @@ + + + + + + +Uses of Class org.jgrapht.graph.GraphDelegator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.GraphDelegator

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/GraphPathImpl.html b/javadoc/org/jgrapht/graph/class-use/GraphPathImpl.html new file mode 100644 index 0000000..829aac2 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/GraphPathImpl.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.GraphPathImpl (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.GraphPathImpl

+
+
No usage of org.jgrapht.graph.GraphPathImpl
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/GraphUnion.html b/javadoc/org/jgrapht/graph/class-use/GraphUnion.html new file mode 100644 index 0000000..70169a6 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/GraphUnion.html @@ -0,0 +1,167 @@ + + + + + + +Uses of Class org.jgrapht.graph.GraphUnion (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.GraphUnion

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/ListenableDirectedGraph.html b/javadoc/org/jgrapht/graph/class-use/ListenableDirectedGraph.html new file mode 100644 index 0000000..c3e6fe0 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/ListenableDirectedGraph.html @@ -0,0 +1,161 @@ + + + + + + +Uses of Class org.jgrapht.graph.ListenableDirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.ListenableDirectedGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/ListenableDirectedWeightedGraph.html b/javadoc/org/jgrapht/graph/class-use/ListenableDirectedWeightedGraph.html new file mode 100644 index 0000000..755d46b --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/ListenableDirectedWeightedGraph.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.ListenableDirectedWeightedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.ListenableDirectedWeightedGraph

+
+
No usage of org.jgrapht.graph.ListenableDirectedWeightedGraph
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/ListenableUndirectedGraph.html b/javadoc/org/jgrapht/graph/class-use/ListenableUndirectedGraph.html new file mode 100644 index 0000000..5ea46dd --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/ListenableUndirectedGraph.html @@ -0,0 +1,161 @@ + + + + + + +Uses of Class org.jgrapht.graph.ListenableUndirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.ListenableUndirectedGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/ListenableUndirectedWeightedGraph.html b/javadoc/org/jgrapht/graph/class-use/ListenableUndirectedWeightedGraph.html new file mode 100644 index 0000000..736cbe0 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/ListenableUndirectedWeightedGraph.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.ListenableUndirectedWeightedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.ListenableUndirectedWeightedGraph

+
+
No usage of org.jgrapht.graph.ListenableUndirectedWeightedGraph
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/MaskFunctor.html b/javadoc/org/jgrapht/graph/class-use/MaskFunctor.html new file mode 100644 index 0000000..377a790 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/MaskFunctor.html @@ -0,0 +1,168 @@ + + + + + + +Uses of Interface org.jgrapht.graph.MaskFunctor (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.graph.MaskFunctor

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/MaskSubgraph.html b/javadoc/org/jgrapht/graph/class-use/MaskSubgraph.html new file mode 100644 index 0000000..8bfd4ca --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/MaskSubgraph.html @@ -0,0 +1,167 @@ + + + + + + +Uses of Class org.jgrapht.graph.MaskSubgraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.MaskSubgraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/MixedGraphUnion.html b/javadoc/org/jgrapht/graph/class-use/MixedGraphUnion.html new file mode 100644 index 0000000..c40c3ff --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/MixedGraphUnion.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.MixedGraphUnion (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.MixedGraphUnion

+
+
No usage of org.jgrapht.graph.MixedGraphUnion
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/Multigraph.html b/javadoc/org/jgrapht/graph/class-use/Multigraph.html new file mode 100644 index 0000000..b88a6ad --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/Multigraph.html @@ -0,0 +1,178 @@ + + + + + + +Uses of Class org.jgrapht.graph.Multigraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.Multigraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/ParanoidGraph.html b/javadoc/org/jgrapht/graph/class-use/ParanoidGraph.html new file mode 100644 index 0000000..f404af4 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/ParanoidGraph.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.ParanoidGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.ParanoidGraph

+
+
No usage of org.jgrapht.graph.ParanoidGraph
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/Pseudograph.html b/javadoc/org/jgrapht/graph/class-use/Pseudograph.html new file mode 100644 index 0000000..d022397 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/Pseudograph.html @@ -0,0 +1,178 @@ + + + + + + +Uses of Class org.jgrapht.graph.Pseudograph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.Pseudograph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/SimpleDirectedGraph.html b/javadoc/org/jgrapht/graph/class-use/SimpleDirectedGraph.html new file mode 100644 index 0000000..b189e7d --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/SimpleDirectedGraph.html @@ -0,0 +1,230 @@ + + + + + + +Uses of Class org.jgrapht.graph.SimpleDirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.SimpleDirectedGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/SimpleDirectedWeightedGraph.html b/javadoc/org/jgrapht/graph/class-use/SimpleDirectedWeightedGraph.html new file mode 100644 index 0000000..0c2d981 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/SimpleDirectedWeightedGraph.html @@ -0,0 +1,163 @@ + + + + + + +Uses of Class org.jgrapht.graph.SimpleDirectedWeightedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.SimpleDirectedWeightedGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/SimpleGraph.html b/javadoc/org/jgrapht/graph/class-use/SimpleGraph.html new file mode 100644 index 0000000..6c99deb --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/SimpleGraph.html @@ -0,0 +1,237 @@ + + + + + + +Uses of Class org.jgrapht.graph.SimpleGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.SimpleGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/SimpleGraphPath.html b/javadoc/org/jgrapht/graph/class-use/SimpleGraphPath.html new file mode 100644 index 0000000..a055427 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/SimpleGraphPath.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.SimpleGraphPath (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.SimpleGraphPath

+
+
No usage of org.jgrapht.graph.SimpleGraphPath
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/SimpleWeightedGraph.html b/javadoc/org/jgrapht/graph/class-use/SimpleWeightedGraph.html new file mode 100644 index 0000000..19a4abe --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/SimpleWeightedGraph.html @@ -0,0 +1,190 @@ + + + + + + +Uses of Class org.jgrapht.graph.SimpleWeightedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.SimpleWeightedGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/Subgraph.html b/javadoc/org/jgrapht/graph/class-use/Subgraph.html new file mode 100644 index 0000000..c66daa0 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/Subgraph.html @@ -0,0 +1,179 @@ + + + + + + +Uses of Class org.jgrapht.graph.Subgraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.Subgraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/UndirectedGraphUnion.html b/javadoc/org/jgrapht/graph/class-use/UndirectedGraphUnion.html new file mode 100644 index 0000000..b8f204a --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/UndirectedGraphUnion.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.UndirectedGraphUnion (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.UndirectedGraphUnion

+
+
No usage of org.jgrapht.graph.UndirectedGraphUnion
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/UndirectedMaskSubgraph.html b/javadoc/org/jgrapht/graph/class-use/UndirectedMaskSubgraph.html new file mode 100644 index 0000000..d3a47e2 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/UndirectedMaskSubgraph.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.UndirectedMaskSubgraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.UndirectedMaskSubgraph

+
+
No usage of org.jgrapht.graph.UndirectedMaskSubgraph
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/UndirectedSubgraph.html b/javadoc/org/jgrapht/graph/class-use/UndirectedSubgraph.html new file mode 100644 index 0000000..d544460 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/UndirectedSubgraph.html @@ -0,0 +1,161 @@ + + + + + + +Uses of Class org.jgrapht.graph.UndirectedSubgraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.UndirectedSubgraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/UndirectedWeightedSubgraph.html b/javadoc/org/jgrapht/graph/class-use/UndirectedWeightedSubgraph.html new file mode 100644 index 0000000..6b7278f --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/UndirectedWeightedSubgraph.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.graph.UndirectedWeightedSubgraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.UndirectedWeightedSubgraph

+
+
No usage of org.jgrapht.graph.UndirectedWeightedSubgraph
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/UnmodifiableDirectedGraph.html b/javadoc/org/jgrapht/graph/class-use/UnmodifiableDirectedGraph.html new file mode 100644 index 0000000..f7e36cb --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/UnmodifiableDirectedGraph.html @@ -0,0 +1,159 @@ + + + + + + +Uses of Class org.jgrapht.graph.UnmodifiableDirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.UnmodifiableDirectedGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/UnmodifiableGraph.html b/javadoc/org/jgrapht/graph/class-use/UnmodifiableGraph.html new file mode 100644 index 0000000..d6116e8 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/UnmodifiableGraph.html @@ -0,0 +1,193 @@ + + + + + + +Uses of Class org.jgrapht.graph.UnmodifiableGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.UnmodifiableGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/UnmodifiableUndirectedGraph.html b/javadoc/org/jgrapht/graph/class-use/UnmodifiableUndirectedGraph.html new file mode 100644 index 0000000..2c32ab8 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/UnmodifiableUndirectedGraph.html @@ -0,0 +1,159 @@ + + + + + + +Uses of Class org.jgrapht.graph.UnmodifiableUndirectedGraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.UnmodifiableUndirectedGraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/WeightedMultigraph.html b/javadoc/org/jgrapht/graph/class-use/WeightedMultigraph.html new file mode 100644 index 0000000..655f679 --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/WeightedMultigraph.html @@ -0,0 +1,163 @@ + + + + + + +Uses of Class org.jgrapht.graph.WeightedMultigraph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.WeightedMultigraph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/class-use/WeightedPseudograph.html b/javadoc/org/jgrapht/graph/class-use/WeightedPseudograph.html new file mode 100644 index 0000000..4b3cc3b --- /dev/null +++ b/javadoc/org/jgrapht/graph/class-use/WeightedPseudograph.html @@ -0,0 +1,163 @@ + + + + + + +Uses of Class org.jgrapht.graph.WeightedPseudograph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.graph.WeightedPseudograph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/package-frame.html b/javadoc/org/jgrapht/graph/package-frame.html new file mode 100644 index 0000000..5eac32a --- /dev/null +++ b/javadoc/org/jgrapht/graph/package-frame.html @@ -0,0 +1,76 @@ + + + + + + +org.jgrapht.graph (JGraphT : a free Java graph library) + + + + +

org.jgrapht.graph

+ + + diff --git a/javadoc/org/jgrapht/graph/package-summary.html b/javadoc/org/jgrapht/graph/package-summary.html new file mode 100644 index 0000000..0cc742e --- /dev/null +++ b/javadoc/org/jgrapht/graph/package-summary.html @@ -0,0 +1,478 @@ + + + + + + +org.jgrapht.graph (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht.graph

+
+
Implementations of various graphs.
+
+

See: Description

+
+
+ + + + +

Package org.jgrapht.graph Description

+
Implementations of various graphs.
+
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/package-tree.html b/javadoc/org/jgrapht/graph/package-tree.html new file mode 100644 index 0000000..cdde94d --- /dev/null +++ b/javadoc/org/jgrapht/graph/package-tree.html @@ -0,0 +1,254 @@ + + + + + + +org.jgrapht.graph Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht.graph

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/graph/package-use.html b/javadoc/org/jgrapht/graph/package-use.html new file mode 100644 index 0000000..ecbdcbd --- /dev/null +++ b/javadoc/org/jgrapht/graph/package-use.html @@ -0,0 +1,514 @@ + + + + + + +Uses of Package org.jgrapht.graph (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht.graph

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/package-frame.html b/javadoc/org/jgrapht/package-frame.html new file mode 100644 index 0000000..a77191b --- /dev/null +++ b/javadoc/org/jgrapht/package-frame.html @@ -0,0 +1,33 @@ + + + + + + +org.jgrapht (JGraphT : a free Java graph library) + + + + +

org.jgrapht

+ + + diff --git a/javadoc/org/jgrapht/package-summary.html b/javadoc/org/jgrapht/package-summary.html new file mode 100644 index 0000000..6db6c78 --- /dev/null +++ b/javadoc/org/jgrapht/package-summary.html @@ -0,0 +1,222 @@ + + + + + + +org.jgrapht (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht

+
+
The front-end API's interfaces and classes, including Graph, +DirectedGraph and UndirectedGraph.
+
+

See: Description

+
+
+
    +
  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Interface Summary 
    InterfaceDescription
    DirectedGraph<V,E> +
    A graph whose all edges are directed.
    +
    EdgeFactory<V,E> +
    An edge factory used by graphs for creating new edges.
    +
    Graph<V,E> +
    The root interface in the graph hierarchy.
    +
    GraphMapping<V,E> +
    GraphMapping represents a bidirectional mapping between two graphs (called + graph1 and graph2), which allows the caller to obtain the matching vertex or + edge in either direction, from graph1 to graph2, or from graph2 to graph1.
    +
    GraphPath<V,E> +
    A GraphPath represents a + path in a Graph.
    +
    ListenableGraph<V,E> +
    A graph that supports listeners on structural change events.
    +
    UndirectedGraph<V,E> +
    A graph whose all edges are undirected.
    +
    VertexFactory<V> +
    A vertex factory used by graph algorithms for creating new vertices.
    +
    WeightedGraph<V,E> +
    An interface for a graph whose edges have non-uniform weights.
    +
    +
  • +
  • + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    GraphHelperDeprecated +
    Use Graphs instead.
    +
    Graphs +
    A collection of utilities to assist with graph manipulation.
    +
    +
  • +
+ + + +

Package org.jgrapht Description

+
The front-end API's interfaces and classes, including Graph, +DirectedGraph and UndirectedGraph.
+
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/package-tree.html b/javadoc/org/jgrapht/package-tree.html new file mode 100644 index 0000000..12e0a5a --- /dev/null +++ b/javadoc/org/jgrapht/package-tree.html @@ -0,0 +1,149 @@ + + + + + + +org.jgrapht Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/package-use.html b/javadoc/org/jgrapht/package-use.html new file mode 100644 index 0000000..7495536 --- /dev/null +++ b/javadoc/org/jgrapht/package-use.html @@ -0,0 +1,657 @@ + + + + + + +Uses of Package org.jgrapht (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/AbstractGraphIterator.html b/javadoc/org/jgrapht/traverse/AbstractGraphIterator.html new file mode 100644 index 0000000..981be9d --- /dev/null +++ b/javadoc/org/jgrapht/traverse/AbstractGraphIterator.html @@ -0,0 +1,549 @@ + + + + + + +AbstractGraphIterator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.traverse
+

Class AbstractGraphIterator<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Iterator<V>, GraphIterator<V,E>
    +
    +
    +
    Direct Known Subclasses:
    +
    CrossComponentIterator
    +
    +
    +
    +
    public abstract class AbstractGraphIterator<V,E>
    +extends Object
    +implements GraphIterator<V,E>
    +
    An empty implementation of a graph iterator to minimize the effort required + to implement graph iterators.
    +
    Since:
    +
    Jul 19, 2003
    +
    Author:
    +
    Barak Naveh
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        nListeners

        +
        protected int nListeners
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AbstractGraphIterator

        +
        public AbstractGraphIterator()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setCrossComponentTraversal

        +
        public void setCrossComponentTraversal(boolean crossComponentTraversal)
        +
        Sets the cross component traversal flag - indicates whether to traverse + the graph across connected components.
        +
        Parameters:
        crossComponentTraversal - if true traverses across + connected components.
        +
      • +
      + + + +
        +
      • +

        isCrossComponentTraversal

        +
        public boolean isCrossComponentTraversal()
        +
        Test whether this iterator is set to traverse the graph across connected + components.
        +
        +
        Specified by:
        +
        isCrossComponentTraversal in interface GraphIterator<V,E>
        +
        Returns:
        true if traverses across connected components, + otherwise false.
        +
      • +
      + + + +
        +
      • +

        setReuseEvents

        +
        public void setReuseEvents(boolean reuseEvents)
        +
        Description copied from interface: GraphIterator
        +
        Sets a value the reuseEvents flag. If the + reuseEvents flag is set to true this class will reuse + previously fired events and will not create a new object for each event. + This option increases performance but should be used with care, + especially in multithreaded environment.
        +
        +
        Specified by:
        +
        setReuseEvents in interface GraphIterator<V,E>
        +
        Parameters:
        reuseEvents - whether to reuse previously fired event objects + instead of creating a new event object for each event.
        See Also:
        GraphIterator.setReuseEvents(boolean)
        +
      • +
      + + + +
        +
      • +

        isReuseEvents

        +
        public boolean isReuseEvents()
        +
        Description copied from interface: GraphIterator
        +
        Tests whether the reuseEvents flag is set. If the flag is + set to true this class will reuse previously fired events + and will not create a new object for each event. This option increases + performance but should be used with care, especially in multithreaded + environment.
        +
        +
        Specified by:
        +
        isReuseEvents in interface GraphIterator<V,E>
        +
        Returns:
        the value of the reuseEvents flag.
        See Also:
        GraphIterator.isReuseEvents()
        +
      • +
      + + + +
        +
      • +

        addTraversalListener

        +
        public void addTraversalListener(TraversalListener<V,E> l)
        +
        Adds the specified traversal listener to this iterator.
        +
        +
        Specified by:
        +
        addTraversalListener in interface GraphIterator<V,E>
        +
        Parameters:
        l - the traversal listener to be added.
        +
      • +
      + + + + + + + +
        +
      • +

        removeTraversalListener

        +
        public void removeTraversalListener(TraversalListener<V,E> l)
        +
        Removes the specified traversal listener from this iterator.
        +
        +
        Specified by:
        +
        removeTraversalListener in interface GraphIterator<V,E>
        +
        Parameters:
        l - the traversal listener to be removed.
        +
      • +
      + + + +
        +
      • +

        fireConnectedComponentFinished

        +
        protected void fireConnectedComponentFinished(ConnectedComponentTraversalEvent e)
        +
        Informs all listeners that the traversal of the current connected + component finished.
        +
        Parameters:
        e - the connected component finished event.
        +
      • +
      + + + +
        +
      • +

        fireConnectedComponentStarted

        +
        protected void fireConnectedComponentStarted(ConnectedComponentTraversalEvent e)
        +
        Informs all listeners that a traversal of a new connected component has + started.
        +
        Parameters:
        e - the connected component started event.
        +
      • +
      + + + +
        +
      • +

        fireEdgeTraversed

        +
        protected void fireEdgeTraversed(EdgeTraversalEvent<V,E> e)
        +
        Informs all listeners that a the specified edge was visited.
        +
        Parameters:
        e - the edge traversal event.
        +
      • +
      + + + +
        +
      • +

        fireVertexTraversed

        +
        protected void fireVertexTraversed(VertexTraversalEvent<V> e)
        +
        Informs all listeners that a the specified vertex was visited.
        +
        Parameters:
        e - the vertex traversal event.
        +
      • +
      + + + +
        +
      • +

        fireVertexFinished

        +
        protected void fireVertexFinished(VertexTraversalEvent<V> e)
        +
        Informs all listeners that a the specified vertex was finished.
        +
        Parameters:
        e - the vertex traversal event.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/BreadthFirstIterator.html b/javadoc/org/jgrapht/traverse/BreadthFirstIterator.html new file mode 100644 index 0000000..ead5d9a --- /dev/null +++ b/javadoc/org/jgrapht/traverse/BreadthFirstIterator.html @@ -0,0 +1,438 @@ + + + + + + +BreadthFirstIterator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.traverse
+

Class BreadthFirstIterator<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Iterator<V>, GraphIterator<V,E>
    +
    +
    +
    +
    public class BreadthFirstIterator<V,E>
    +extends CrossComponentIterator<V,E,Object>
    +
    A breadth-first iterator for a directed and an undirected graph. For this + iterator to work correctly the graph must not be modified during iteration. + Currently there are no means to ensure that, nor to fail-fast. The results of + such modifications are undefined.
    +
    Since:
    +
    Jul 19, 2003
    +
    Author:
    +
    Barak Naveh
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/ClosestFirstIterator.html b/javadoc/org/jgrapht/traverse/ClosestFirstIterator.html new file mode 100644 index 0000000..168ee4a --- /dev/null +++ b/javadoc/org/jgrapht/traverse/ClosestFirstIterator.html @@ -0,0 +1,544 @@ + + + + + + +ClosestFirstIterator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.traverse
+

Class ClosestFirstIterator<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Iterator<V>, GraphIterator<V,E>
    +
    +
    +
    +
    public class ClosestFirstIterator<V,E>
    +extends CrossComponentIterator<V,E,FibonacciHeapNode<org.jgrapht.traverse.ClosestFirstIterator.QueueEntry<V,E>>>
    +
    A closest-first iterator for a directed or undirected graph. For this + iterator to work correctly the graph must not be modified during iteration. + Currently there are no means to ensure that, nor to fail-fast. The results of + such modifications are undefined. + +

    The metric for closest here is the weighted path length from a + start vertex, i.e. Graph.getEdgeWeight(Edge) is summed to calculate path + length. Negative edge weights will result in an IllegalArgumentException. + Optionally, path length may be bounded by a finite radius.

    +
    Since:
    +
    Sep 2, 2003
    +
    Author:
    +
    John V. Sichi
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClosestFirstIterator

        +
        public ClosestFirstIterator(Graph<V,E> g)
        +
        Creates a new closest-first iterator for the specified graph.
        +
        Parameters:
        g - the graph to be iterated.
        +
      • +
      + + + + + +
        +
      • +

        ClosestFirstIterator

        +
        public ClosestFirstIterator(Graph<V,E> g,
        +                    V startVertex)
        +
        Creates a new closest-first iterator for the specified graph. Iteration + will start at the specified start vertex and will be limited to the + connected component that includes that vertex. If the specified start + vertex is null, iteration will start at an arbitrary vertex + and will not be limited, that is, will be able to traverse all the graph.
        +
        Parameters:
        g - the graph to be iterated.
        startVertex - the vertex iteration to be started.
        +
      • +
      + + + + + +
        +
      • +

        ClosestFirstIterator

        +
        public ClosestFirstIterator(Graph<V,E> g,
        +                    V startVertex,
        +                    double radius)
        +
        Creates a new radius-bounded closest-first iterator for the specified + graph. Iteration will start at the specified start vertex and will be + limited to the subset of the connected component which includes that + vertex and is reachable via paths of weighted length less than or equal + to the specified radius. The specified start vertex may not be + null.
        +
        Parameters:
        g - the graph to be iterated.
        startVertex - the vertex iteration to be started.
        radius - limit on weighted path length, or Double.POSITIVE_INFINITY + for unbounded search.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setCrossComponentTraversal

        +
        public void setCrossComponentTraversal(boolean crossComponentTraversal)
        +
        Description copied from class: AbstractGraphIterator
        +
        Sets the cross component traversal flag - indicates whether to traverse + the graph across connected components.
        +
        +
        Overrides:
        +
        setCrossComponentTraversal in class AbstractGraphIterator<V,E>
        +
        Parameters:
        crossComponentTraversal - if true traverses across + connected components.
        +
      • +
      + + + + + +
        +
      • +

        getShortestPathLength

        +
        public double getShortestPathLength(V vertex)
        +
        Get the weighted length of the shortest path known to the given vertex. + If the vertex has already been visited, then it is truly the shortest + path length; otherwise, it is the best known upper bound.
        +
        Parameters:
        vertex - vertex being sought from start vertex
        +
        Returns:
        weighted length of shortest path known, or + Double.POSITIVE_INFINITY if no path found yet
        +
      • +
      + + + + + +
        +
      • +

        getSpanningTreeEdge

        +
        public E getSpanningTreeEdge(V vertex)
        +
        Get the spanning tree edge reaching a vertex which has been seen already + in this traversal. This edge is the last link in the shortest known path + between the start vertex and the requested vertex. If the vertex has + already been visited, then it is truly the minimum spanning tree edge; + otherwise, it is the best candidate seen so far.
        +
        Parameters:
        vertex - the spanned vertex.
        +
        Returns:
        the spanning tree edge, or null if the vertex either has not been + seen yet or is the start vertex.
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        encounterVertexAgain

        +
        protected void encounterVertexAgain(V vertex,
        +                        E edge)
        +
        Override superclass. When we see a vertex again, we need to see if the + new edge provides a shorter path than the old edge.
        +
        +
        Specified by:
        +
        encounterVertexAgain in class CrossComponentIterator<V,E,FibonacciHeapNode<org.jgrapht.traverse.ClosestFirstIterator.QueueEntry<V,E>>>
        +
        Parameters:
        vertex - the vertex re-encountered
        edge - the edge via which the vertex was re-encountered
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/CrossComponentIterator.VisitColor.html b/javadoc/org/jgrapht/traverse/CrossComponentIterator.VisitColor.html new file mode 100644 index 0000000..582bc3a --- /dev/null +++ b/javadoc/org/jgrapht/traverse/CrossComponentIterator.VisitColor.html @@ -0,0 +1,351 @@ + + + + + + +CrossComponentIterator.VisitColor (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.traverse
+

Enum CrossComponentIterator.VisitColor

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static CrossComponentIterator.VisitColor[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (CrossComponentIterator.VisitColor c : CrossComponentIterator.VisitColor.values())
        +    System.out.println(c);
        +
        +
        Returns:
        an array containing the constants of this enum type, in the order they are declared
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static CrossComponentIterator.VisitColor valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        Parameters:
        name - the name of the enum constant to be returned.
        +
        Returns:
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/CrossComponentIterator.html b/javadoc/org/jgrapht/traverse/CrossComponentIterator.html new file mode 100644 index 0000000..8b832cf --- /dev/null +++ b/javadoc/org/jgrapht/traverse/CrossComponentIterator.html @@ -0,0 +1,533 @@ + + + + + + +CrossComponentIterator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.traverse
+

Class CrossComponentIterator<V,E,D>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        CrossComponentIterator

        +
        public CrossComponentIterator(Graph<V,E> g,
        +                      V startVertex)
        +
        Creates a new iterator for the specified graph. Iteration will start at + the specified start vertex. If the specified start vertex is + null, Iteration will start at an arbitrary graph vertex.
        +
        Parameters:
        g - the graph to be iterated.
        startVertex - the vertex iteration to be started.
        +
        Throws:
        +
        IllegalArgumentException - if g==null or does not + contain startVertex
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGraph

        +
        public Graph<V,E> getGraph()
        +
        Returns:
        the graph being traversed
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        isConnectedComponentExhausted

        +
        protected abstract boolean isConnectedComponentExhausted()
        +
        Returns true if there are no more uniterated vertices in the + currently iterated connected component; false otherwise.
        +
        Returns:
        true if there are no more uniterated vertices in the + currently iterated connected component; false otherwise.
        +
      • +
      + + + + + +
        +
      • +

        encounterVertex

        +
        protected abstract void encounterVertex(V vertex,
        +                   E edge)
        +
        Update data structures the first time we see a vertex.
        +
        Parameters:
        vertex - the vertex encountered
        edge - the edge via which the vertex was encountered, or null if the + vertex is a starting point
        +
      • +
      + + + +
        +
      • +

        provideNextVertex

        +
        protected abstract V provideNextVertex()
        +
        Returns the vertex to be returned in the following call to the iterator + next method.
        +
        Returns:
        the next vertex to be returned by this iterator.
        +
      • +
      + + + + + +
        +
      • +

        getSeenData

        +
        protected D getSeenData(V vertex)
        +
        Access the data stored for a seen vertex.
        +
        Parameters:
        vertex - a vertex which has already been seen.
        +
        Returns:
        data associated with the seen vertex or null if no + data was associated with the vertex. A null return can also + indicate that the vertex was explicitly associated with + null.
        +
      • +
      + + + +
        +
      • +

        isSeenVertex

        +
        protected boolean isSeenVertex(Object vertex)
        +
        Determines whether a vertex has been seen yet by this traversal.
        +
        Parameters:
        vertex - vertex in question
        +
        Returns:
        true if vertex has already been seen
        +
      • +
      + + + + + +
        +
      • +

        encounterVertexAgain

        +
        protected abstract void encounterVertexAgain(V vertex,
        +                        E edge)
        +
        Called whenever we re-encounter a vertex. The default implementation does + nothing.
        +
        Parameters:
        vertex - the vertex re-encountered
        edge - the edge via which the vertex was re-encountered
        +
      • +
      + + + + + +
        +
      • +

        putSeenData

        +
        protected D putSeenData(V vertex,
        +            D data)
        +
        Stores iterator-dependent data for a vertex that has been seen.
        +
        Parameters:
        vertex - a vertex which has been seen.
        data - data to be associated with the seen vertex.
        +
        Returns:
        previous value associated with specified vertex or + null if no data was associated with the vertex. A + null return can also indicate that the vertex was explicitly + associated with null.
        +
      • +
      + + + + + +
        +
      • +

        finishVertex

        +
        protected void finishVertex(V vertex)
        +
        Called when a vertex has been finished (meaning is dependent on traversal + represented by subclass).
        +
        Parameters:
        vertex - vertex which has been finished
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/DepthFirstIterator.html b/javadoc/org/jgrapht/traverse/DepthFirstIterator.html new file mode 100644 index 0000000..454d9bc --- /dev/null +++ b/javadoc/org/jgrapht/traverse/DepthFirstIterator.html @@ -0,0 +1,493 @@ + + + + + + +DepthFirstIterator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.traverse
+

Class DepthFirstIterator<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Iterator<V>, GraphIterator<V,E>
    +
    +
    +
    +
    public class DepthFirstIterator<V,E>
    +extends CrossComponentIterator<V,E,CrossComponentIterator.VisitColor>
    +
    A depth-first iterator for a directed and an undirected graph. For this + iterator to work correctly the graph must not be modified during iteration. + Currently there are no means to ensure that, nor to fail-fast. The results of + such modifications are undefined.
    +
    Since:
    +
    Jul 29, 2003
    +
    Author:
    +
    Liviu Rau, Barak Naveh
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        SENTINEL

        +
        public static final Object SENTINEL
        +
        Sentinel object. Unfortunately, we can't use null, because ArrayDeque + won't accept those. And we don't want to rely on the caller to provide a + sentinel object for us. So we have to play typecasting games.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DepthFirstIterator

        +
        public DepthFirstIterator(Graph<V,E> g)
        +
        Creates a new depth-first iterator for the specified graph.
        +
        Parameters:
        g - the graph to be iterated.
        +
      • +
      + + + + + +
        +
      • +

        DepthFirstIterator

        +
        public DepthFirstIterator(Graph<V,E> g,
        +                  V startVertex)
        +
        Creates a new depth-first iterator for the specified graph. Iteration + will start at the specified start vertex and will be limited to the + connected component that includes that vertex. If the specified start + vertex is null, iteration will start at an arbitrary vertex + and will not be limited, that is, will be able to traverse all the graph.
        +
        Parameters:
        g - the graph to be iterated.
        startVertex - the vertex iteration to be started.
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/GraphIterator.html b/javadoc/org/jgrapht/traverse/GraphIterator.html new file mode 100644 index 0000000..b124ec9 --- /dev/null +++ b/javadoc/org/jgrapht/traverse/GraphIterator.html @@ -0,0 +1,334 @@ + + + + + + +GraphIterator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.traverse
+

Interface GraphIterator<V,E>

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isCrossComponentTraversal

        +
        boolean isCrossComponentTraversal()
        +
        Test whether this iterator is set to traverse the grpah across connected + components.
        +
        Returns:
        true if traverses across connected components, + otherwise false.
        +
      • +
      + + + +
        +
      • +

        setReuseEvents

        +
        void setReuseEvents(boolean reuseEvents)
        +
        Sets a value the reuseEvents flag. If the + reuseEvents flag is set to true this class will reuse + previously fired events and will not create a new object for each event. + This option increases performance but should be used with care, + especially in multithreaded environment.
        +
        Parameters:
        reuseEvents - whether to reuse previously fired event objects + instead of creating a new event object for each event.
        +
      • +
      + + + +
        +
      • +

        isReuseEvents

        +
        boolean isReuseEvents()
        +
        Tests whether the reuseEvents flag is set. If the flag is + set to true this class will reuse previously fired events + and will not create a new object for each event. This option increases + performance but should be used with care, especially in multithreaded + environment.
        +
        Returns:
        the value of the reuseEvents flag.
        +
      • +
      + + + +
        +
      • +

        addTraversalListener

        +
        void addTraversalListener(TraversalListener<V,E> l)
        +
        Adds the specified traversal listener to this iterator.
        +
        Parameters:
        l - the traversal listener to be added.
        +
      • +
      + + + + + + + +
        +
      • +

        removeTraversalListener

        +
        void removeTraversalListener(TraversalListener<V,E> l)
        +
        Removes the specified traversal listener from this iterator.
        +
        Parameters:
        l - the traversal listener to be removed.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/TopologicalOrderIterator.html b/javadoc/org/jgrapht/traverse/TopologicalOrderIterator.html new file mode 100644 index 0000000..badd29b --- /dev/null +++ b/javadoc/org/jgrapht/traverse/TopologicalOrderIterator.html @@ -0,0 +1,462 @@ + + + + + + +TopologicalOrderIterator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.traverse
+

Class TopologicalOrderIterator<V,E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Iterator<V>, GraphIterator<V,E>
    +
    +
    +
    +
    public class TopologicalOrderIterator<V,E>
    +extends CrossComponentIterator<V,E,Object>
    +
    Implements topological order traversal for a directed acyclic graph. A + topological sort is a permutation p of the vertices of a graph such + that an edge (i,j) implies that i appears before j + in p (Skiena 1990, p. 208). See also + http://mathworld.wolfram.com/TopologicalSort.html. + +

    See "Algorithms in Java, Third Edition, Part 5: Graph Algorithms" by + Robert Sedgewick and "Data Structures and Algorithms with Object-Oriented + Design Patterns in Java" by Bruno R. Preiss for implementation alternatives. + The latter can be found online at + http://www.brpreiss.com/books/opus5/

    + +

    For this iterator to work correctly the graph must be acyclic, and must + not be modified during iteration. Currently there are no means to ensure + that, nor to fail-fast; the results with cyclic input (including self-loops) + or concurrent modifications are undefined. To precheck a graph for cycles, + consider using CycleDetector or KosarajuStrongConnectivityInspector.

    +
    Since:
    +
    Dec 18, 2004
    +
    Author:
    +
    Marden Neubert
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/class-use/AbstractGraphIterator.html b/javadoc/org/jgrapht/traverse/class-use/AbstractGraphIterator.html new file mode 100644 index 0000000..7fa77f5 --- /dev/null +++ b/javadoc/org/jgrapht/traverse/class-use/AbstractGraphIterator.html @@ -0,0 +1,186 @@ + + + + + + +Uses of Class org.jgrapht.traverse.AbstractGraphIterator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.traverse.AbstractGraphIterator

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/class-use/BreadthFirstIterator.html b/javadoc/org/jgrapht/traverse/class-use/BreadthFirstIterator.html new file mode 100644 index 0000000..ebcf262 --- /dev/null +++ b/javadoc/org/jgrapht/traverse/class-use/BreadthFirstIterator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.traverse.BreadthFirstIterator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.traverse.BreadthFirstIterator

+
+
No usage of org.jgrapht.traverse.BreadthFirstIterator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/class-use/ClosestFirstIterator.html b/javadoc/org/jgrapht/traverse/class-use/ClosestFirstIterator.html new file mode 100644 index 0000000..726c07d --- /dev/null +++ b/javadoc/org/jgrapht/traverse/class-use/ClosestFirstIterator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.traverse.ClosestFirstIterator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.traverse.ClosestFirstIterator

+
+
No usage of org.jgrapht.traverse.ClosestFirstIterator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/class-use/CrossComponentIterator.VisitColor.html b/javadoc/org/jgrapht/traverse/class-use/CrossComponentIterator.VisitColor.html new file mode 100644 index 0000000..0d29341 --- /dev/null +++ b/javadoc/org/jgrapht/traverse/class-use/CrossComponentIterator.VisitColor.html @@ -0,0 +1,168 @@ + + + + + + +Uses of Class org.jgrapht.traverse.CrossComponentIterator.VisitColor (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.traverse.CrossComponentIterator.VisitColor

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/class-use/CrossComponentIterator.html b/javadoc/org/jgrapht/traverse/class-use/CrossComponentIterator.html new file mode 100644 index 0000000..c27abd4 --- /dev/null +++ b/javadoc/org/jgrapht/traverse/class-use/CrossComponentIterator.html @@ -0,0 +1,179 @@ + + + + + + +Uses of Class org.jgrapht.traverse.CrossComponentIterator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.traverse.CrossComponentIterator

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/class-use/DepthFirstIterator.html b/javadoc/org/jgrapht/traverse/class-use/DepthFirstIterator.html new file mode 100644 index 0000000..2ed1dc9 --- /dev/null +++ b/javadoc/org/jgrapht/traverse/class-use/DepthFirstIterator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.traverse.DepthFirstIterator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.traverse.DepthFirstIterator

+
+
No usage of org.jgrapht.traverse.DepthFirstIterator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/class-use/GraphIterator.html b/javadoc/org/jgrapht/traverse/class-use/GraphIterator.html new file mode 100644 index 0000000..545f826 --- /dev/null +++ b/javadoc/org/jgrapht/traverse/class-use/GraphIterator.html @@ -0,0 +1,193 @@ + + + + + + +Uses of Interface org.jgrapht.traverse.GraphIterator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.traverse.GraphIterator

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/class-use/TopologicalOrderIterator.html b/javadoc/org/jgrapht/traverse/class-use/TopologicalOrderIterator.html new file mode 100644 index 0000000..4581ddd --- /dev/null +++ b/javadoc/org/jgrapht/traverse/class-use/TopologicalOrderIterator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.traverse.TopologicalOrderIterator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.traverse.TopologicalOrderIterator

+
+
No usage of org.jgrapht.traverse.TopologicalOrderIterator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/package-frame.html b/javadoc/org/jgrapht/traverse/package-frame.html new file mode 100644 index 0000000..03e589b --- /dev/null +++ b/javadoc/org/jgrapht/traverse/package-frame.html @@ -0,0 +1,33 @@ + + + + + + +org.jgrapht.traverse (JGraphT : a free Java graph library) + + + + +

org.jgrapht.traverse

+ + + diff --git a/javadoc/org/jgrapht/traverse/package-summary.html b/javadoc/org/jgrapht/traverse/package-summary.html new file mode 100644 index 0000000..c2db68c --- /dev/null +++ b/javadoc/org/jgrapht/traverse/package-summary.html @@ -0,0 +1,212 @@ + + + + + + +org.jgrapht.traverse (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht.traverse

+
+
Graph traversal means.
+
+

See: Description

+
+
+
    +
  • + + + + + + + + + + + + +
    Interface Summary 
    InterfaceDescription
    GraphIterator<V,E> +
    A graph iterator.
    +
    +
  • +
  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    AbstractGraphIterator<V,E> +
    An empty implementation of a graph iterator to minimize the effort required + to implement graph iterators.
    +
    BreadthFirstIterator<V,E> +
    A breadth-first iterator for a directed and an undirected graph.
    +
    ClosestFirstIterator<V,E> +
    A closest-first iterator for a directed or undirected graph.
    +
    CrossComponentIterator<V,E,D> +
    Provides a cross-connected-component traversal functionality for iterator + subclasses.
    +
    DepthFirstIterator<V,E> +
    A depth-first iterator for a directed and an undirected graph.
    +
    TopologicalOrderIterator<V,E> +
    Implements topological order traversal for a directed acyclic graph.
    +
    +
  • +
  • + + + + + + + + + + + + +
    Enum Summary 
    EnumDescription
    CrossComponentIterator.VisitColor +
    Standard vertex visit state enumeration.
    +
    +
  • +
+ + + +

Package org.jgrapht.traverse Description

+
Graph traversal means.
+
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/package-tree.html b/javadoc/org/jgrapht/traverse/package-tree.html new file mode 100644 index 0000000..ecbdd5b --- /dev/null +++ b/javadoc/org/jgrapht/traverse/package-tree.html @@ -0,0 +1,161 @@ + + + + + + +org.jgrapht.traverse Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht.traverse

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Enum Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/traverse/package-use.html b/javadoc/org/jgrapht/traverse/package-use.html new file mode 100644 index 0000000..16583a3 --- /dev/null +++ b/javadoc/org/jgrapht/traverse/package-use.html @@ -0,0 +1,171 @@ + + + + + + +Uses of Package org.jgrapht.traverse (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht.traverse

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/ArrayUnenforcedSet.html b/javadoc/org/jgrapht/util/ArrayUnenforcedSet.html new file mode 100644 index 0000000..788bc7b --- /dev/null +++ b/javadoc/org/jgrapht/util/ArrayUnenforcedSet.html @@ -0,0 +1,388 @@ + + + + + + +ArrayUnenforcedSet (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.util
+

Class ArrayUnenforcedSet<E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess, Set<E>
    +
    +
    +
    +
    public class ArrayUnenforcedSet<E>
    +extends ArrayList<E>
    +implements Set<E>
    +
    Helper for efficiently representing small sets whose elements are known to be + unique by construction, implying we don't need to enforce the uniqueness + property in the data structure itself. Use with caution. + +

    Note that for equals/hashCode, the class implements the Set behavior + (unordered), not the list behavior (ordered); the fact that it subclasses + ArrayList should be considered an implementation detail.

    +
    Author:
    +
    John V. Sichi
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/FibonacciHeap.html b/javadoc/org/jgrapht/util/FibonacciHeap.html new file mode 100644 index 0000000..39a409f --- /dev/null +++ b/javadoc/org/jgrapht/util/FibonacciHeap.html @@ -0,0 +1,555 @@ + + + + + + +FibonacciHeap (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.util
+

Class FibonacciHeap<T>

+
+
+ +
+
    +
  • +
    +
    +
    public class FibonacciHeap<T>
    +extends Object
    +
    This class implements a Fibonacci heap data structure. Much of the code in + this class is based on the algorithms in the "Introduction to Algorithms"by + Cormen, Leiserson, and Rivest in Chapter 21. The amortized running time of + most of these methods is O(1), making it a very fast data structure. Several + have an actual running time of O(1). removeMin() and delete() have O(log n) + amortized running times because they do the heap consolidation. If you + attempt to store nodes in this heap with key values of -Infinity + (Double.NEGATIVE_INFINITY) the delete() operation may fail to + remove the correct element. + +

    Note that this implementation is not synchronized. If multiple + threads access a set concurrently, and at least one of the threads modifies + the set, it must be synchronized externally. This is typically + accomplished by synchronizing on some object that naturally encapsulates the + set.

    + +

    This class was originally developed by Nathan Fiedler for the GraphMaker + project. It was imported to JGraphT with permission, courtesy of Nathan + Fiedler.

    +
    Author:
    +
    Nathan Fiedler
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FibonacciHeap

        +
        public FibonacciHeap()
        +
        Constructs a FibonacciHeap object that contains no elements.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isEmpty

        +
        public boolean isEmpty()
        +
        Tests if the Fibonacci heap is empty or not. Returns true if the heap is + empty, false otherwise. + +

        Running time: O(1) actual

        +
        Returns:
        true if the heap is empty, false otherwise
        +
      • +
      + + + +
        +
      • +

        clear

        +
        public void clear()
        +
        Removes all elements from this heap.
        +
      • +
      + + + +
        +
      • +

        decreaseKey

        +
        public void decreaseKey(FibonacciHeapNode<T> x,
        +               double k)
        +
        Decreases the key value for a heap node, given the new value to take on. + The structure of the heap may be changed and will not be consolidated. + +

        Running time: O(1) amortized

        +
        Parameters:
        x - node to decrease the key of
        k - new key value for node x
        +
        Throws:
        +
        IllegalArgumentException - Thrown if k is larger than x.key + value.
        +
      • +
      + + + +
        +
      • +

        delete

        +
        public void delete(FibonacciHeapNode<T> x)
        +
        Deletes a node from the heap given the reference to the node. The trees + in the heap will be consolidated, if necessary. This operation may fail + to remove the correct element if there are nodes with key value + -Infinity. + +

        Running time: O(log n) amortized

        +
        Parameters:
        x - node to remove from heap
        +
      • +
      + + + +
        +
      • +

        insert

        +
        public void insert(FibonacciHeapNode<T> node,
        +          double key)
        +
        Inserts a new data element into the heap. No heap consolidation is + performed at this time, the new node is simply inserted into the root + list of this heap. + +

        Running time: O(1) actual

        +
        Parameters:
        node - new node to insert into heap
        key - key value associated with data object
        +
      • +
      + + + +
        +
      • +

        min

        +
        public FibonacciHeapNode<T> min()
        +
        Returns the smallest element in the heap. This smallest element is the + one with the minimum key value. + +

        Running time: O(1) actual

        +
        Returns:
        heap node with the smallest key
        +
      • +
      + + + +
        +
      • +

        removeMin

        +
        public FibonacciHeapNode<T> removeMin()
        +
        Removes the smallest element from the heap. This will cause the trees in + the heap to be consolidated, if necessary. + +

        Running time: O(log n) amortized

        +
        Returns:
        node with the smallest key
        +
      • +
      + + + +
        +
      • +

        size

        +
        public int size()
        +
        Returns the size of the heap which is measured in the number of elements + contained in the heap. + +

        Running time: O(1) actual

        +
        Returns:
        number of elements in the heap
        +
      • +
      + + + +
        +
      • +

        union

        +
        public static <T> FibonacciHeap<T> union(FibonacciHeap<T> h1,
        +                         FibonacciHeap<T> h2)
        +
        Joins two Fibonacci heaps into a new one. No heap consolidation is + performed at this time. The two root lists are simply joined together. + +

        Running time: O(1) actual

        +
        Parameters:
        h1 - first heap
        h2 - second heap
        +
        Returns:
        new heap containing h1 and h2
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public String toString()
        +
        Creates a String representation of this Fibonacci heap.
        +
        +
        Overrides:
        +
        toString in class Object
        +
        Returns:
        String of this.
        +
      • +
      + + + +
        +
      • +

        cascadingCut

        +
        protected void cascadingCut(FibonacciHeapNode<T> y)
        +
        Performs a cascading cut operation. This cuts y from its parent and then + does the same for its parent, and so on up the tree. + +

        Running time: O(log n); O(1) excluding the recursion

        +
        Parameters:
        y - node to perform cascading cut on
        +
      • +
      + + + +
        +
      • +

        consolidate

        +
        protected void consolidate()
        +
      • +
      + + + +
        +
      • +

        cut

        +
        protected void cut(FibonacciHeapNode<T> x,
        +       FibonacciHeapNode<T> y)
        +
        The reverse of the link operation: removes x from the child list of y. + This method assumes that min is non-null. + +

        Running time: O(1)

        +
        Parameters:
        x - child of y to be removed from y's child list
        y - parent of x about to lose a child
        +
      • +
      + + + +
        +
      • +

        link

        +
        protected void link(FibonacciHeapNode<T> y,
        +        FibonacciHeapNode<T> x)
        +
        Make node y a child of node x. + +

        Running time: O(1) actual

        +
        Parameters:
        y - node to become child
        x - node to become parent
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/FibonacciHeapNode.html b/javadoc/org/jgrapht/util/FibonacciHeapNode.html new file mode 100644 index 0000000..428784b --- /dev/null +++ b/javadoc/org/jgrapht/util/FibonacciHeapNode.html @@ -0,0 +1,310 @@ + + + + + + +FibonacciHeapNode (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.util
+

Class FibonacciHeapNode<T>

+
+
+ +
+
    +
  • +
    +
    +
    public class FibonacciHeapNode<T>
    +extends Object
    +
    Implements a node of the Fibonacci heap. It holds the information necessary + for maintaining the structure of the heap. It also holds the reference to the + key value (which is used to determine the heap structure).
    +
    Author:
    +
    Nathan Fiedler
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        FibonacciHeapNode

        +
        public FibonacciHeapNode(T data)
        +
        Default constructor. Initializes the right and left pointers, making this + a circular doubly-linked list.
        +
        Parameters:
        data - data for this node
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getKey

        +
        public final double getKey()
        +
        Obtain the key for this node.
        +
        Returns:
        the key
        +
      • +
      + + + +
        +
      • +

        getData

        +
        public final T getData()
        +
        Obtain the data for this node.
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public String toString()
        +
        Return the string representation of this object.
        +
        +
        Overrides:
        +
        toString in class Object
        +
        Returns:
        string representing this object
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/MathUtil.html b/javadoc/org/jgrapht/util/MathUtil.html new file mode 100644 index 0000000..594722e --- /dev/null +++ b/javadoc/org/jgrapht/util/MathUtil.html @@ -0,0 +1,267 @@ + + + + + + +MathUtil (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.util
+

Class MathUtil

+
+
+ +
+
    +
  • +
    +
    +
    public class MathUtil
    +extends Object
    +
    Math Utilities. Currently contains the following: + +
      +
    1. factorial(int N) - caclulate the factorial of N (aka N!)
    2. +
    +
    Since:
    +
    May 30, 2005
    +
    Author:
    +
    Assaf
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MathUtil

        +
        public MathUtil()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        factorial

        +
        public static long factorial(int N)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/ModifiableInteger.html b/javadoc/org/jgrapht/util/ModifiableInteger.html new file mode 100644 index 0000000..732c937 --- /dev/null +++ b/javadoc/org/jgrapht/util/ModifiableInteger.html @@ -0,0 +1,608 @@ + + + + + + +ModifiableInteger (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.util
+

Class ModifiableInteger

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, Comparable<ModifiableInteger>
    +
    +
    +
    +
    public class ModifiableInteger
    +extends Number
    +implements Comparable<ModifiableInteger>
    +
    The ModifiableInteger class wraps a value of the primitive type + int in an object, similarly to Integer. An + object of type ModifiableInteger contains a single field whose + type is int. + +

    Unlike java.lang.Integer, the int value which the + ModifiableInteger represents can be modified. It becomes useful when used + together with the collection framework. For example, if you want to have a + List of counters. You could use Integer but + that would have became wasteful and inefficient if you frequently had to + update the counters.

    + +

    WARNING: Because instances of this class are mutable, great care must be + exercised if used as keys of a Map or as values in a Set in a manner that affects equals comparisons while the + instances are keys in the map (or values in the set). For more see + documentation of Map and Set.

    +
    Since:
    +
    May 27, 2004
    +
    Author:
    +
    Barak Naveh
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      intvalue +
      The int value represented by this ModifiableInteger.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      ModifiableInteger() +
      Deprecated.  +
      not really deprecated, just marked so to avoid mistaken use.
      +
      +
      ModifiableInteger(int value) +
      Constructs a newly allocated ModifiableInteger object that + represents the specified int value.
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        value

        +
        public int value
        +
        The int value represented by this ModifiableInteger.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ModifiableInteger

        +
        @Deprecated
        +public ModifiableInteger()
        +
        Deprecated. not really deprecated, just marked so to avoid mistaken use.
        +
        !!! DON'T USE - Use the ModifiableInteger(int) constructor + instead !!! + +

        This constructor is for the use of java.beans.XMLDecoder + deserialization. The constructor is marked as 'deprecated' to indicate to + the programmer against using it by mistake.

        +
      • +
      + + + +
        +
      • +

        ModifiableInteger

        +
        public ModifiableInteger(int value)
        +
        Constructs a newly allocated ModifiableInteger object that + represents the specified int value.
        +
        Parameters:
        value - the value to be represented by the + ModifiableInteger object.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setValue

        +
        public void setValue(int value)
        +
        Sets a new value for this modifiable integer.
        +
        Parameters:
        value - the new value to set.
        +
      • +
      + + + +
        +
      • +

        getValue

        +
        public int getValue()
        +
        Returns the value of this object, similarly to intValue(). This + getter is NOT redundant. It is used for serialization by + java.beans.XMLEncoder.
        +
        Returns:
        the value.
        +
      • +
      + + + +
        +
      • +

        increment

        +
        public void increment()
        +
        Adds one to the value of this modifiable integer.
        +
      • +
      + + + +
        +
      • +

        decrement

        +
        public void decrement()
        +
        Subtracts one from the value of this modifiable integer.
        +
      • +
      + + + +
        +
      • +

        compareTo

        +
        public int compareTo(ModifiableInteger anotherInteger)
        +
        Compares two ModifiableInteger objects numerically.
        +
        +
        Specified by:
        +
        compareTo in interface Comparable<ModifiableInteger>
        +
        Parameters:
        anotherInteger - the ModifiableInteger to be compared.
        +
        Returns:
        the value 0 if this ModifiableInteger + is equal to the argument ModifiableInteger; a value less + than 0 if this ModifiableInteger is numerically + less than the argument ModifiableInteger; and a value + greater than 0 if this ModifiableInteger is + numerically greater than the argument ModifiableInteger + (signed comparison).
        +
      • +
      + + + + + + + +
        +
      • +

        equals

        +
        public boolean equals(Object o)
        +
        Compares this object to the specified object. The result is + true if and only if the argument is not null and is + an ModifiableInteger object that contains the same + int value as this object.
        +
        +
        Overrides:
        +
        equals in class Object
        +
        Parameters:
        o - the object to compare with.
        +
        Returns:
        true if the objects are the same; false + otherwise.
        +
      • +
      + + + + + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        Returns a hash code for this ModifiableInteger.
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        Returns:
        a hash code value for this object, equal to the primitive + int value represented by this ModifiableInteger + object.
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        toInteger

        +
        public Integer toInteger()
        +
        Returns an Integer object representing this + ModifiableInteger's value.
        +
        Returns:
        an Integer representation of the value of this + object.
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public String toString()
        +
        Returns a String object representing this + ModifiableInteger's value. The value is converted to signed + decimal representation and returned as a string, exactly as if the + integer value were given as an argument to the Integer.toString(int) method.
        +
        +
        Overrides:
        +
        toString in class Object
        +
        Returns:
        a string representation of the value of this object in + base 10.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/PrefetchIterator.NextElementFunctor.html b/javadoc/org/jgrapht/util/PrefetchIterator.NextElementFunctor.html new file mode 100644 index 0000000..6be742c --- /dev/null +++ b/javadoc/org/jgrapht/util/PrefetchIterator.NextElementFunctor.html @@ -0,0 +1,220 @@ + + + + + + +PrefetchIterator.NextElementFunctor (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.util
+

Interface PrefetchIterator.NextElementFunctor<EE>

+
+
+
+
    +
  • +
    +
    Enclosing class:
    +
    PrefetchIterator<E>
    +
    +
    +
    +
    public static interface PrefetchIterator.NextElementFunctor<EE>
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      EEnextElement() +
      You must implement that NoSuchElementException is thrown on + nextElement() if it is out of bound.
      +
      +
    • +
    +
  • +
+
+
+ +
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/PrefetchIterator.html b/javadoc/org/jgrapht/util/PrefetchIterator.html new file mode 100644 index 0000000..3cc006b --- /dev/null +++ b/javadoc/org/jgrapht/util/PrefetchIterator.html @@ -0,0 +1,432 @@ + + + + + + +PrefetchIterator (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.util
+

Class PrefetchIterator<E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Enumeration<E>, Iterator<E>
    +
    +
    +
    +
    public class PrefetchIterator<E>
    +extends Object
    +implements Iterator<E>, Enumeration<E>
    +
    Utility class to help implement an iterator/enumerator in which the hasNext() + method needs to calculate the next elements ahead of time. + +

    Many classes which implement an iterator face a common problem: if there + is no easy way to calculate hasNext() other than to call getNext(), then they + save the result for fetching in the next call to getNext(). This utility + helps in doing just that. + +

    Usage: The new iterator class will hold this class as a member + variable and forward the hasNext() and next() to it. When creating an + instance of this class, you supply it with a functor that is doing the real + job of calculating the next element. + +

    
    +    //This class supllies enumeration of integer till 100.
    +    public class IteratorExample implements Enumeration{
    +    private int counter=0;
    +    private PrefetchIterator nextSupplier;
    +
    +        IteratorExample()
    +        {
    +            nextSupplier = new PrefetchIterator(new PrefetchIterator.NextElementFunctor(){
    +
    +                public Object nextElement() throws NoSuchElementException {
    +                    counter++;
    +                    if (counter <= 100)
    +                        throw new NoSuchElementException();
    +                    else
    +                        return new Integer(counter);
    +                }
    +
    +            });
    +        }
    +        //forwarding to nextSupplier and return its returned value
    +        public boolean hasMoreElements() {
    +            return this.nextSupplier.hasMoreElements();
    +        }
    +    //  forwarding to nextSupplier and return its returned value
    +        public Object nextElement() {
    +            return this.nextSupplier.nextElement();
    +        }
    +  }
    + 
    +
    Author:
    +
    Assaf_Lehr
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        nextElement

        +
        public E nextElement()
        +
        1. Retrieves the saved value or calculates it if it does not exist 2. + Changes isGetNextLastResultUpToDate to false. (Because it does not save + the NEXT element now; it saves the current one!)
        +
        +
        Specified by:
        +
        nextElement in interface Enumeration<E>
        +
        +
      • +
      + + + +
        +
      • +

        hasMoreElements

        +
        public boolean hasMoreElements()
        +
        If (isGetNextLastResultUpToDate==true) returns true else 1. calculates + getNext() and saves it 2. sets isGetNextLastResultUpToDate to true.
        +
        +
        Specified by:
        +
        hasMoreElements in interface Enumeration<E>
        +
        +
      • +
      + + + +
        +
      • +

        isEnumerationStartedEmpty

        +
        public boolean isEnumerationStartedEmpty()
        +
        Tests whether the enumeration started as an empty one. It does not matter + if it hasMoreElements() now, only at initialization time. Efficiency: if + nextElements(), hasMoreElements() were never used, it activates the + hasMoreElements() once. Else it is immediately(O(1))
        +
      • +
      + + + +
        +
      • +

        hasNext

        +
        public boolean hasNext()
        +
        +
        Specified by:
        +
        hasNext in interface Iterator<E>
        +
        +
      • +
      + + + +
        +
      • +

        next

        +
        public E next()
        +
        +
        Specified by:
        +
        next in interface Iterator<E>
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/TypeUtil.html b/javadoc/org/jgrapht/util/TypeUtil.html new file mode 100644 index 0000000..454ab04 --- /dev/null +++ b/javadoc/org/jgrapht/util/TypeUtil.html @@ -0,0 +1,270 @@ + + + + + + +TypeUtil (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.util
+

Class TypeUtil<T>

+
+
+ +
+
    +
  • +
    +
    +
    public class TypeUtil<T>
    +extends Object
    +
    TypeUtil isolates type-unsafety so that code which uses it for legitimate + reasons can stay warning-free.
    +
    Author:
    +
    John V. Sichi
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TypeUtil

        +
        public TypeUtil()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        uncheckedCast

        +
        public static <T> T uncheckedCast(Object o,
        +                  TypeUtil<T> typeDecl)
        +
        Casts an object to a type.
        +
        Parameters:
        o - object to be cast
        typeDecl - conveys the target type information; the actual value is + unused and can be null since this is all just stupid compiler tricks
        +
        Returns:
        the result of the cast
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/VertexPair.html b/javadoc/org/jgrapht/util/VertexPair.html new file mode 100644 index 0000000..a836467 --- /dev/null +++ b/javadoc/org/jgrapht/util/VertexPair.html @@ -0,0 +1,365 @@ + + + + + + +VertexPair (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.util
+

Class VertexPair<V>

+
+
+ +
+
    +
  • +
    +
    +
    public class VertexPair<V>
    +extends Object
    +
    Representation of a pair of vertices; to be replaced by Pair<V,V> if + Sun ever gets around to adding Pair to java.util.
    +
    Author:
    +
    Soren (soren@tanesha.net)
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        VertexPair

        +
        public VertexPair(V n1,
        +          V n2)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getFirst

        +
        public V getFirst()
        +
      • +
      + + + +
        +
      • +

        getSecond

        +
        public V getSecond()
        +
      • +
      + + + + + +
        +
      • +

        hasVertex

        +
        public boolean hasVertex(V v)
        +
        Assess if this pair contains the vertex.
        +
        Parameters:
        v - The vertex in question
        +
        Returns:
        true if contains, false otherwise
        +
      • +
      + + + + + +
        +
      • +

        getOther

        +
        public V getOther(V one)
        +
      • +
      + + + + + + + +
        +
      • +

        equals

        +
        public boolean equals(Object o)
        +
        +
        Overrides:
        +
        equals in class Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/WeightCombiner.html b/javadoc/org/jgrapht/util/WeightCombiner.html new file mode 100644 index 0000000..b32c5c8 --- /dev/null +++ b/javadoc/org/jgrapht/util/WeightCombiner.html @@ -0,0 +1,335 @@ + + + + + + +WeightCombiner (JGraphT : a free Java graph library) + + + + + + + + + + + +
+
org.jgrapht.util
+

Interface WeightCombiner

+
+
+
+
    +
  • +
    +
    +
    public interface WeightCombiner
    +
    Binary operator for edge weights. There are some prewritten operators.
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        combine

        +
        double combine(double a,
        +             double b)
        +
        Combines two weights.
        +
        Parameters:
        a - first weight
        b - second weight
        +
        Returns:
        result of the operator
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/class-use/ArrayUnenforcedSet.html b/javadoc/org/jgrapht/util/class-use/ArrayUnenforcedSet.html new file mode 100644 index 0000000..c5474ce --- /dev/null +++ b/javadoc/org/jgrapht/util/class-use/ArrayUnenforcedSet.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.util.ArrayUnenforcedSet (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.util.ArrayUnenforcedSet

+
+
No usage of org.jgrapht.util.ArrayUnenforcedSet
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/class-use/FibonacciHeap.html b/javadoc/org/jgrapht/util/class-use/FibonacciHeap.html new file mode 100644 index 0000000..4d5cf57 --- /dev/null +++ b/javadoc/org/jgrapht/util/class-use/FibonacciHeap.html @@ -0,0 +1,210 @@ + + + + + + +Uses of Class org.jgrapht.util.FibonacciHeap (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.util.FibonacciHeap

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/class-use/FibonacciHeapNode.html b/javadoc/org/jgrapht/util/class-use/FibonacciHeapNode.html new file mode 100644 index 0000000..7b21b28 --- /dev/null +++ b/javadoc/org/jgrapht/util/class-use/FibonacciHeapNode.html @@ -0,0 +1,255 @@ + + + + + + +Uses of Class org.jgrapht.util.FibonacciHeapNode (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.util.FibonacciHeapNode

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/class-use/MathUtil.html b/javadoc/org/jgrapht/util/class-use/MathUtil.html new file mode 100644 index 0000000..c699a19 --- /dev/null +++ b/javadoc/org/jgrapht/util/class-use/MathUtil.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.util.MathUtil (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.util.MathUtil

+
+
No usage of org.jgrapht.util.MathUtil
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/class-use/ModifiableInteger.html b/javadoc/org/jgrapht/util/class-use/ModifiableInteger.html new file mode 100644 index 0000000..6ef827f --- /dev/null +++ b/javadoc/org/jgrapht/util/class-use/ModifiableInteger.html @@ -0,0 +1,162 @@ + + + + + + +Uses of Class org.jgrapht.util.ModifiableInteger (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.util.ModifiableInteger

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/class-use/PrefetchIterator.NextElementFunctor.html b/javadoc/org/jgrapht/util/class-use/PrefetchIterator.NextElementFunctor.html new file mode 100644 index 0000000..ef108b0 --- /dev/null +++ b/javadoc/org/jgrapht/util/class-use/PrefetchIterator.NextElementFunctor.html @@ -0,0 +1,158 @@ + + + + + + +Uses of Interface org.jgrapht.util.PrefetchIterator.NextElementFunctor (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.util.PrefetchIterator.NextElementFunctor

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/class-use/PrefetchIterator.html b/javadoc/org/jgrapht/util/class-use/PrefetchIterator.html new file mode 100644 index 0000000..c532342 --- /dev/null +++ b/javadoc/org/jgrapht/util/class-use/PrefetchIterator.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.util.PrefetchIterator (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.util.PrefetchIterator

+
+
No usage of org.jgrapht.util.PrefetchIterator
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/class-use/TypeUtil.html b/javadoc/org/jgrapht/util/class-use/TypeUtil.html new file mode 100644 index 0000000..fe950e0 --- /dev/null +++ b/javadoc/org/jgrapht/util/class-use/TypeUtil.html @@ -0,0 +1,163 @@ + + + + + + +Uses of Class org.jgrapht.util.TypeUtil (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.util.TypeUtil

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/class-use/VertexPair.html b/javadoc/org/jgrapht/util/class-use/VertexPair.html new file mode 100644 index 0000000..7554f83 --- /dev/null +++ b/javadoc/org/jgrapht/util/class-use/VertexPair.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class org.jgrapht.util.VertexPair (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Class
org.jgrapht.util.VertexPair

+
+
No usage of org.jgrapht.util.VertexPair
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/class-use/WeightCombiner.html b/javadoc/org/jgrapht/util/class-use/WeightCombiner.html new file mode 100644 index 0000000..3219b2a --- /dev/null +++ b/javadoc/org/jgrapht/util/class-use/WeightCombiner.html @@ -0,0 +1,226 @@ + + + + + + +Uses of Interface org.jgrapht.util.WeightCombiner (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Interface
org.jgrapht.util.WeightCombiner

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/package-frame.html b/javadoc/org/jgrapht/util/package-frame.html new file mode 100644 index 0000000..8d7c23b --- /dev/null +++ b/javadoc/org/jgrapht/util/package-frame.html @@ -0,0 +1,32 @@ + + + + + + +org.jgrapht.util (JGraphT : a free Java graph library) + + + + +

org.jgrapht.util

+ + + diff --git a/javadoc/org/jgrapht/util/package-summary.html b/javadoc/org/jgrapht/util/package-summary.html new file mode 100644 index 0000000..8d80c50 --- /dev/null +++ b/javadoc/org/jgrapht/util/package-summary.html @@ -0,0 +1,217 @@ + + + + + + +org.jgrapht.util (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Package org.jgrapht.util

+
+
Non-graph-specific data structures, algorithms, and utilities used by +JGraphT.
+
+

See: Description

+
+
+
    +
  • + + + + + + + + + + + + + + + + +
    Interface Summary 
    InterfaceDescription
    PrefetchIterator.NextElementFunctor<EE> 
    WeightCombiner +
    Binary operator for edge weights.
    +
    +
  • +
  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    ArrayUnenforcedSet<E> +
    Helper for efficiently representing small sets whose elements are known to be + unique by construction, implying we don't need to enforce the uniqueness + property in the data structure itself.
    +
    FibonacciHeap<T> +
    This class implements a Fibonacci heap data structure.
    +
    FibonacciHeapNode<T> +
    Implements a node of the Fibonacci heap.
    +
    MathUtil +
    Math Utilities.
    +
    ModifiableInteger +
    The ModifiableInteger class wraps a value of the primitive type + int in an object, similarly to Integer.
    +
    PrefetchIterator<E> +
    Utility class to help implement an iterator/enumerator in which the hasNext() + method needs to calculate the next elements ahead of time.
    +
    TypeUtil<T> +
    TypeUtil isolates type-unsafety so that code which uses it for legitimate + reasons can stay warning-free.
    +
    VertexPair<V> +
    Representation of a pair of vertices; to be replaced by Pair<V,V> if + Sun ever gets around to adding Pair to java.util.
    +
    +
  • +
+ + + +

Package org.jgrapht.util Description

+
Non-graph-specific data structures, algorithms, and utilities used by +JGraphT.
+
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/package-tree.html b/javadoc/org/jgrapht/util/package-tree.html new file mode 100644 index 0000000..084e777 --- /dev/null +++ b/javadoc/org/jgrapht/util/package-tree.html @@ -0,0 +1,158 @@ + + + + + + +org.jgrapht.util Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.jgrapht.util

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/org/jgrapht/util/package-use.html b/javadoc/org/jgrapht/util/package-use.html new file mode 100644 index 0000000..44967e7 --- /dev/null +++ b/javadoc/org/jgrapht/util/package-use.html @@ -0,0 +1,231 @@ + + + + + + +Uses of Package org.jgrapht.util (JGraphT : a free Java graph library) + + + + + + + + + + +
+

Uses of Package
org.jgrapht.util

+
+
+ +
+ + + + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/overview-frame.html b/javadoc/overview-frame.html new file mode 100644 index 0000000..c275fba --- /dev/null +++ b/javadoc/overview-frame.html @@ -0,0 +1,39 @@ + + + + + + +Overview List (JGraphT : a free Java graph library) + + + + + + +

 

+ + diff --git a/javadoc/overview-summary.html b/javadoc/overview-summary.html new file mode 100644 index 0000000..057bce3 --- /dev/null +++ b/javadoc/overview-summary.html @@ -0,0 +1,234 @@ + + + + + + +Overview (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

JGraphT - Parent 0.9.2 API

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Packages 
PackageDescription
org.jgrapht +
The front-end API's interfaces and classes, including Graph, +DirectedGraph and UndirectedGraph.
+
org.jgrapht.alg +
Algorithms provided with JGraphT.
+
org.jgrapht.alg.cycle +
Algorithms for enumeration of simple cycles in graphs.
+
org.jgrapht.alg.flow 
org.jgrapht.alg.interfaces 
org.jgrapht.alg.isomorphism 
org.jgrapht.alg.util +
Utilities used by JGraphT algorithms.
+
org.jgrapht.demo +
Demo programs that help to get started with JGraphT.
+
org.jgrapht.event +
Event classes and listener interfaces, used to provide a change +notification mechanism on graph modification events.
+
org.jgrapht.experimental +
A package that contains experimental work or work-in-progress that +is not yet ready to be included in a release.
+
org.jgrapht.experimental.alg 
org.jgrapht.experimental.alg.color 
org.jgrapht.experimental.dag 
org.jgrapht.ext +
+Extensions and integration means to other products.
+
org.jgrapht.generate +
Generators for graphs of various topologies.
+
org.jgrapht.graph +
Implementations of various graphs.
+
org.jgrapht.graph.builder +
Various builder for graphs.
+
org.jgrapht.traverse +
Graph traversal means.
+
org.jgrapht.util +
Non-graph-specific data structures, algorithms, and utilities used by +JGraphT.
+
+
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/overview-tree.html b/javadoc/overview-tree.html new file mode 100644 index 0000000..f72bf88 --- /dev/null +++ b/javadoc/overview-tree.html @@ -0,0 +1,602 @@ + + + + + + +Class Hierarchy (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + + +
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Enum Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/package-list b/javadoc/package-list new file mode 100644 index 0000000..e445e80 --- /dev/null +++ b/javadoc/package-list @@ -0,0 +1,19 @@ +org.jgrapht +org.jgrapht.alg +org.jgrapht.alg.cycle +org.jgrapht.alg.flow +org.jgrapht.alg.interfaces +org.jgrapht.alg.isomorphism +org.jgrapht.alg.util +org.jgrapht.demo +org.jgrapht.event +org.jgrapht.experimental +org.jgrapht.experimental.alg +org.jgrapht.experimental.alg.color +org.jgrapht.experimental.dag +org.jgrapht.ext +org.jgrapht.generate +org.jgrapht.graph +org.jgrapht.graph.builder +org.jgrapht.traverse +org.jgrapht.util diff --git a/javadoc/resources/background.gif b/javadoc/resources/background.gif new file mode 100644 index 0000000..f471940 Binary files /dev/null and b/javadoc/resources/background.gif differ diff --git a/javadoc/resources/tab.gif b/javadoc/resources/tab.gif new file mode 100644 index 0000000..1a73a83 Binary files /dev/null and b/javadoc/resources/tab.gif differ diff --git a/javadoc/resources/titlebar.gif b/javadoc/resources/titlebar.gif new file mode 100644 index 0000000..17443b3 Binary files /dev/null and b/javadoc/resources/titlebar.gif differ diff --git a/javadoc/resources/titlebar_end.gif b/javadoc/resources/titlebar_end.gif new file mode 100644 index 0000000..3ad78d4 Binary files /dev/null and b/javadoc/resources/titlebar_end.gif differ diff --git a/javadoc/serialized-form.html b/javadoc/serialized-form.html new file mode 100644 index 0000000..545a764 --- /dev/null +++ b/javadoc/serialized-form.html @@ -0,0 +1,1415 @@ + + + + + + +Serialized Form (JGraphT : a free Java graph library) + + + + + + + +
+ + + + + +
+ + +
+

Serialized Form

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2016. All rights reserved.

+ + diff --git a/javadoc/stylesheet.css b/javadoc/stylesheet.css new file mode 100644 index 0000000..0aeaa97 --- /dev/null +++ b/javadoc/stylesheet.css @@ -0,0 +1,474 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + background-color:#ffffff; + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:76%; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-image:url(resources/titlebar.gif); + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-image:url(resources/tab.gif); + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + background-image:url(resources/titlebar.gif); + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-image:url(resources/titlebar_end.gif); + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +} diff --git a/lib/jgraph-5.13.0.0.jar b/lib/jgraph-5.13.0.0.jar new file mode 100644 index 0000000..a853740 Binary files /dev/null and b/lib/jgraph-5.13.0.0.jar differ diff --git a/lib/jgrapht-core-0.9.2.jar b/lib/jgrapht-core-0.9.2.jar new file mode 100644 index 0000000..82dba34 Binary files /dev/null and b/lib/jgrapht-core-0.9.2.jar differ diff --git a/lib/jgrapht-demo-0.9.2.jar b/lib/jgrapht-demo-0.9.2.jar new file mode 100644 index 0000000..fbd2d23 Binary files /dev/null and b/lib/jgrapht-demo-0.9.2.jar differ diff --git a/lib/jgrapht-ext-0.9.2-uber.jar b/lib/jgrapht-ext-0.9.2-uber.jar new file mode 100644 index 0000000..03a2d24 Binary files /dev/null and b/lib/jgrapht-ext-0.9.2-uber.jar differ diff --git a/lib/jgrapht-ext-0.9.2.jar b/lib/jgrapht-ext-0.9.2.jar new file mode 100644 index 0000000..8710fb9 Binary files /dev/null and b/lib/jgrapht-ext-0.9.2.jar differ diff --git a/lib/jgraphx-2.0.0.1.jar b/lib/jgraphx-2.0.0.1.jar new file mode 100644 index 0000000..7b36c99 Binary files /dev/null and b/lib/jgraphx-2.0.0.1.jar differ diff --git a/manifest.mf b/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml new file mode 100644 index 0000000..8db778d --- /dev/null +++ b/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/nbproject/genfiles.properties b/nbproject/genfiles.properties new file mode 100644 index 0000000..e3a6632 --- /dev/null +++ b/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=111761a0 +build.xml.script.CRC32=4709d7a9 +build.xml.stylesheet.CRC32=8064a381@1.79.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=111761a0 +nbproject/build-impl.xml.script.CRC32=d4c056a9 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/nbproject/private/config.properties b/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/nbproject/private/private.properties b/nbproject/private/private.properties new file mode 100644 index 0000000..9e8f740 --- /dev/null +++ b/nbproject/private/private.properties @@ -0,0 +1,6 @@ +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\MrMcX\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/nbproject/private/private.xml b/nbproject/private/private.xml new file mode 100644 index 0000000..d6c266a --- /dev/null +++ b/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/C:/Users/MrMcX/ownCloud/Rollenspiel/DSA/Meister/DungeonGenerator/src/main/DungeonGeneratorUI.java + + + diff --git a/nbproject/project.properties b/nbproject/project.properties new file mode 100644 index 0000000..9f7acd7 --- /dev/null +++ b/nbproject/project.properties @@ -0,0 +1,110 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=DungeonGenerator +application.vendor=MrMcX +auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/DungeonGenerator.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +excludes= +file.reference.jgraph-5.13.0.0.jar=lib/jgraph-5.13.0.0.jar +file.reference.jgrapht-core-0.9.2.jar=lib/jgrapht-core-0.9.2.jar +file.reference.jgrapht-demo-0.9.2.jar=lib/jgrapht-demo-0.9.2.jar +file.reference.jgrapht-ext-0.9.2-uber.jar=lib/jgrapht-ext-0.9.2-uber.jar +file.reference.jgrapht-ext-0.9.2.jar=lib/jgrapht-ext-0.9.2.jar +file.reference.jgraphx-2.0.0.1.jar=lib/jgraphx-2.0.0.1.jar +includes=** +jar.archive.disabled=${jnlp.enabled} +jar.compress=false +jar.index=${jnlp.enabled} +javac.classpath=\ + ${libs.absolutelayout.classpath}:\ + ${file.reference.jgraph-5.13.0.0.jar}:\ + ${file.reference.jgrapht-core-0.9.2.jar}:\ + ${file.reference.jgrapht-demo-0.9.2.jar}:\ + ${file.reference.jgrapht-ext-0.9.2-uber.jar}:\ + ${file.reference.jgrapht-ext-0.9.2.jar}:\ + ${file.reference.jgraphx-2.0.0.1.jar} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +jnlp.codebase.type=no.codebase +jnlp.descriptor=application +jnlp.enabled=false +jnlp.mixed.code=default +jnlp.offline-allowed=false +jnlp.signed=false +jnlp.signing= +jnlp.signing.alias= +jnlp.signing.keystore= +main.class=main.DungeonGeneratorUI +# Optional override of default Application-Library-Allowable-Codebase attribute identifying the locations where your signed RIA is expected to be found. +manifest.custom.application.library.allowable.codebase= +# Optional override of default Caller-Allowable-Codebase attribute identifying the domains from which JavaScript code can make calls to your RIA without security prompts. +manifest.custom.caller.allowable.codebase= +# Optional override of default Codebase manifest attribute, use to prevent RIAs from being repurposed +manifest.custom.codebase= +# Optional override of default Permissions manifest attribute (supported values: sandbox, all-permissions) +manifest.custom.permissions= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +project.license=mit +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/nbproject/project.xml b/nbproject/project.xml new file mode 100644 index 0000000..bce8947 --- /dev/null +++ b/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + DungeonGenerator + + + + + + + + + diff --git a/src/dungeon/Dungeon.java b/src/dungeon/Dungeon.java new file mode 100644 index 0000000..1a00f43 --- /dev/null +++ b/src/dungeon/Dungeon.java @@ -0,0 +1,90 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package dungeon; + +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import main.Counter; +import main.Dice; +import org.jgraph.graph.DefaultEdge; +import org.jgrapht.UndirectedGraph; +import org.jgrapht.graph.SimpleGraph; + +/** + * + * @author MrMcX + */ +public class Dungeon { + private final List rooms; + private final LinkedList toGenerate; + private final Counter counter; + + public Dungeon(int size, Type isNatural, Mode mode){ + rooms = new ArrayList<>(); + toGenerate = new LinkedList<>(); + counter = new Counter(); + generate(size, isNatural, mode); + } + + private void generate(int size, Type isNatural, Mode mode){ + toGenerate.add(Room.RandomRoom(true, Exit.Start(), counter, isNatural)); + while(!toGenerate.isEmpty() && rooms.size() < size){ + Room next; + switch(mode){ + case STRAIGHT: + next = toGenerate.getLast(); + break; + case BRANCHED: + next = toGenerate.getFirst(); + break; + case RANDOM: + next = toGenerate.get(Dice.Roll(toGenerate.size(), 1)-1); + break; + default: + next = toGenerate.getFirst(); + break; + } + next.generate(counter, isNatural).stream().forEach((r) -> { + toGenerate.add(r); + }); + toGenerate.remove(next); + rooms.add(next); + } + } + + @Override + public String toString(){ + return rooms.stream().map((r) -> r.toLongString() + "\n").reduce("", String::concat); + } + + public UndirectedGraph toGraph(){ + UndirectedGraph g = new SimpleGraph(DefaultEdge.class); + rooms.stream().forEach((r) -> { + g.addVertex(r); + }); + rooms.stream().forEach((r) -> { + for(Exit e : r.exits){ + if(e.isStart || e.room.number == 0 || g.containsEdge(r, e.room)){ + continue; + } + g.addEdge(r, e.room, e); + } + }); + return g; + } + + public static enum Mode{ + STRAIGHT, + BRANCHED, + RANDOM + } + + public static enum Type{ + NATURAL, + ARTIFICIAL + } +} diff --git a/src/dungeon/Enemy.java b/src/dungeon/Enemy.java new file mode 100644 index 0000000..a286775 --- /dev/null +++ b/src/dungeon/Enemy.java @@ -0,0 +1,118 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package dungeon; + +import main.Dice; + +/** + * + * @author MrMcX + */ +public class Enemy{ + private String enemy; + + public Enemy(Dungeon.Type isNatural){ + enemy = ""; + if(isNatural == Dungeon.Type.NATURAL){ + switch(Dice.Roll(20, 1)){ + case 1: + enemy = "Höhlendrache"; + break; + case 2: + case 3: + case 4: + case 5: + enemy = "verirrter Goblin"; + break; + case 6: + case 7: + enemy = "Gruftassel"; + break; + case 8: + enemy = "Glutling"; + break; + case 9: + case 10: + enemy = "Höhlenspinne"; + break; + case 11: + enemy = Dice.Roll(20, 5) + " Fledermäuse"; + break; + case 12: + enemy = "Höhlenoger"; + break; + case 13: + case 14: + case 15: + case 16: + enemy = Dice.Roll(6, 1)*Dice.Roll(20, 1) + " Ratten"; + break; + case 17: + enemy = "Riesenamöbe"; + break; + case 18: + enemy = Dice.Roll(6, 1) + " Skelette"; + break; + case 19: + enemy = "Geistererscheinung eines hier verstorbenen Abenteurers"; + break; + case 20: + enemy = Dice.Roll(6, 1) + " Wühlschrate"; + break; + } + } else { + switch(Dice.Roll(20, 1)){ + case 1: + case 2: + case 3: + enemy = Dice.Roll(6, 1) + " Einwohner des Systems"; + break; + case 4: + enemy = Dice.Roll(6, 1) + " Gruftasseln"; + break; + case 5: + case 6: + enemy = "Riesenamöbe"; + break; + case 7: + enemy = "Höhlenhaustiere"; + break; + case 8: + case 9: + enemy = Dice.Roll(6, 1) + " Gefangene"; + break; + case 10: + enemy = "Mumie"; + break; + case 11: + case 12: + case 13: + enemy = Dice.Roll(6, 2) + " Einwohner des Systems"; + break; + case 14: + case 15: + case 16: + enemy = Dice.Roll(6,1) + " Ratten"; + break; + case 17: + case 18: + enemy = Dice.Roll(6, 1) + " Skelette"; + break; + case 19: + enemy = "‚Endgegner‘ der Anlage"; + break; + case 20: + enemy = Dice.Roll(6, 1) + " gut ausgebildete Wachen der Einwohner"; + break; + } + } + } + + @Override + public String toString(){ + return enemy; + } +} diff --git a/src/dungeon/Exit.java b/src/dungeon/Exit.java new file mode 100644 index 0000000..b3d0496 --- /dev/null +++ b/src/dungeon/Exit.java @@ -0,0 +1,95 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package dungeon; + +import main.Dice; + +/** + * + * @author MrMcX + */ +public class Exit { + public Room room; + public String type; + public boolean isStart; + public boolean isTrap; + public String trap; + + + public Exit(Room room){ + this(room, GetRandomType(), false); + } + + public Exit(Room room, String type){ + this(room, type, false); + } + + private Exit(Room room, String type, boolean start){ + this.room = room; + this.type = type; + isStart = start; + if(!isStart && type.contains("Falle")){ + isTrap = true; + trap = GetRandomTrap(); + } else { + isTrap = false; + } + } + + @Override + public String toString(){ + return type; + } + + public String toLongString(){ + String out = "- "; + if(isStart){ + out += "Aus-/Eingang"; + } else if(room.number == 0){ + out += type + " zu einer Sackgasse"; + } else { + out += type + " zu " + room.toShortString(); + } + if(isTrap){ + out += "; Falle: " + trap; + } + out += "\n"; + return out; + } + + public static Exit Start(){ + return new Exit(null, null, true); + } + + private static String GetRandomTrap(){ + switch(Dice.Roll(6, 1)){ + case 1: return "Giftnadel im Schloss; Gift ist zu alt, um Wirkung zu zeigen"; + case 2: return "Fallgrube öffnet sich direkt vor der Tür"; + case 3: return "Sensenklinge"; + case 4: return "Giftwolke (WdS 147)"; + case 5: return "Giftnadel im Schloss (WdS 147)"; + case 6: return "herabstürzender Steinquader"; + } + return ""; + } + + private static String GetRandomType(){ + switch(Dice.Roll(6, 2)){ + case 2: + case 3: + case 4: return "Freier Durchgang"; + case 5: return "Vorhang"; + case 6: + case 7: return "Offene Tür"; + case 8: return "Geschlossene Tür"; + case 9: return "Geschlossene Tür mit Falle"; + case 10: return "Verschlossene Tür"; + case 11: return "Verschlossene Tür mit Falle"; + case 12: return "Geheimdurchgang"; + } + return ""; + } +} diff --git a/src/dungeon/Room.java b/src/dungeon/Room.java new file mode 100644 index 0000000..c22f5c5 --- /dev/null +++ b/src/dungeon/Room.java @@ -0,0 +1,287 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package dungeon; + +import java.util.LinkedList; +import java.util.List; +import main.Counter; +import main.Dice; + +/** + * + * @author MrMcX + */ +public class Room { + public int number; + public Exit[] exits; + public Dungeon.Type isNatural; + public boolean isRoom, hasMonster, hasTrap, hasMagic, hasSpecial, hasTreasure = false; + public Enemy monster; + public Treasure treasure; + public Trap trap; + public String type, magicPhenomenon, specialPhenomenon = null; + + public Room(Exit predecessor, int numberOfExits, boolean room, String type, Counter c){ + exits = new Exit[numberOfExits]; + exits[0] = predecessor; + this.isRoom = room; + this.type = type; + number = 0; + } + + public List generate(Counter c, Dungeon.Type isNatural){ + number = c.Next(); + List list = new LinkedList(); + for(int i = 0; i < exits.length; i++){ + if(exits[i] == null){ + Exit predecessor = new Exit(this); + Room newRoom = RandomRoom(false, predecessor, c, isNatural); + exits[i] = new Exit(newRoom, predecessor.type); + list.add(newRoom); + } + } + SetContents(isNatural); + return list; + } + + private void SetContents(Dungeon.Type isNatural){ + if(isRoom){ + switch(Dice.Roll(6, 2)){ + case 2: + case 3: return; + case 4: + hasMonster = true; + monster = new Enemy(isNatural); + return; + case 5: + hasTrap = true; + trap = new Trap(); + case 6: + hasTreasure = true; + treasure = new Treasure(); + return; + case 7: + hasMagic = true; + // TODO: generate magic here + return; + case 8: + hasSpecial = true; + // TODO: generate special here + return; + case 9: + hasMonster = true; + hasTrap = true; + monster = new Enemy(isNatural); + trap = new Trap(); + return; + case 10: + hasMonster = true; + hasTreasure = true; + monster = new Enemy(isNatural); + treasure = new Treasure(); + return; + case 11: + hasMonster = true; + hasMagic = true; + monster = new Enemy(isNatural); + // TODO: generate magic here + return; + case 12: + hasTrap = true; + hasTreasure = true; + trap = new Trap(); + treasure = new Treasure(); + return; + } + } else { + switch(Dice.Roll(6, 1)){ + case 1: + case 2: + case 3: return; + case 4: + hasMonster = true; + monster = new Enemy(isNatural); + return; + case 5: + hasTrap = true; + trap = new Trap(); + return; + case 6: + hasTreasure = true; + treasure = new Treasure(); + return; + } + } + this.isNatural = isNatural; + } + + @Override + public String toString(){ + if(!isRoom){ + return "Gang " + number; + } else if(isNatural == Dungeon.Type.NATURAL){ + return "Höhle " + number; + } else { + return "Raum " + number; + } + } + + public String toLongString(){ + String out = ""; + if(isRoom){ + out += "Raum "; + } else { + out += "Gang "; + } + out += "Nummer " + number + ": " + type + "\n" + + "Ausgänge:\n"; + for(Exit x : exits){ + out += x.toLongString(); + } + if(hasMonster){ + out += "Gegner:\n- " + monster.toString() + "\n"; + } + if(hasTrap){ + out += "Fallen:\n- " + trap + "\n"; + } + if(hasMagic){ + out += "Magische Phänomene:\n- " + magicPhenomenon + "\n"; + } + if(hasSpecial){ + out += "Besondere Phänomene:\n- " + specialPhenomenon + "\n"; + } + if(hasTreasure){ + out += "Fundsache:\n- " + treasure + "\n"; + } + return out; + } + + public String toShortString(){ + if(isRoom){ + return "Raum Nummer " + number; + } else { + return "Gang Nummer " + number; + } + } + + + public static Room RoomBigExits(Exit predecessor, Counter c, Dungeon.Type isNatural){ + int rand = Dice.Roll(3, 1); + if(isNatural == Dungeon.Type.NATURAL){ + return new Room(predecessor, rand + 1, true, "große Höhle mit " + rand + " Ausgängen", c); + } else { + return new Room(predecessor, rand + 1, true, "großer Raum mit " + rand + " Ausgängen", c); + } + } + + public static Room RoomSmallExits(Exit predecessor, Counter c, Dungeon.Type isNatural){ + int rand = Dice.Roll(3, 1); + if(isNatural == Dungeon.Type.NATURAL){ + return new Room(predecessor, rand + 1, true, "kleine Höhle mit " + rand + " Ausgängen", c); + } else { + return new Room(predecessor, rand + 1, true, "kleiner Raum mit " + rand + " Ausgängen", c); + } + } + + public static Room RoomBigNoExits(Exit predecessor, Counter c, Dungeon.Type isNatural){ + if(isNatural == Dungeon.Type.NATURAL){ + return new Room(predecessor, 1, true, "große Höhle ohne Ausgang", c); + } else { + return new Room(predecessor, 1, true, "großer Raum ohne Ausgang", c); + } + } + + public static Room RoomBigExitsStair(Exit predecessor, Counter c, Dungeon.Type isNatural){ + int rand = Dice.Roll(2, 1); + if(isNatural == Dungeon.Type.NATURAL){ + return new Room(predecessor, rand + 2, true, "große Höhle mit " + rand + " Ausgängen und einer Treppe", c); + } else { + return new Room(predecessor, rand + 2, true, "großer Raum mit " + rand + " Ausgängen und einer Treppe", c); + } + } + + public static Room RoomSmallNoExits(Exit predecessor, Counter c, Dungeon.Type isNatural){ + if(isNatural == Dungeon.Type.NATURAL){ + return new Room(predecessor, 1, true, "kleine Höhle ohne Ausgang", c); + } else { + return new Room(predecessor, 1, true, "kleiner Raum ohne Ausgang", c); + } + } + + public static Room RoomSmallExitsStair(Exit predecessor, Counter c, Dungeon.Type isNatural){ + int rand = Dice.Roll(2, 1); + if(isNatural == Dungeon.Type.NATURAL){ + return new Room(predecessor, rand + 2, true, "kleine Höhle mit " + rand + " Ausgängen und einer Treppe", c); + } else { + return new Room(predecessor, rand + 2, true, "kleiner Raum mit " + rand + " Ausgängen und einer Treppe", c); + } + } + + public static Room RoomGiant(Exit predecessor, Counter c, Dungeon.Type isNatural){ + int rand = Dice.Roll(2, 1); + if(isNatural == Dungeon.Type.NATURAL){ + return new Room(predecessor, rand + 1, true, "gigantische Höhle mit " + rand + " Ausgängen", c); + } else { + return new Room(predecessor, rand + 1, true, "gigantischer Raum mit " + rand + " Ausgängen", c); + } + } + + public static Room CorridorStraight(Exit predecessor, Counter c){ + return new Room(predecessor, 2, false, "gerader Gang", c); + } + + public static Room CorridorRight(Exit predecessor, Counter c){ + return new Room(predecessor, 2, false, "rechts abbiegender Gang", c); + } + + public static Room CorridorLeft(Exit predecessor, Counter c){ + return new Room(predecessor, 2, false, "links abbiegender Gang", c); + } + + public static Room CrossingT(Exit predecessor, Counter c){ + return new Room(predecessor, 3, false, "T-Kreuzung mit Abzweigungen nach links und rechts", c); + } + + public static Room Crossing(Exit predecessor, Counter c){ + return new Room(predecessor, 4, false, "Kreuzung, die in alle Richtungen weitergeht", c); + } + + public static Room DeadEnd(Exit predecessor, Counter c){ + return new Room(predecessor, 1, false, "Sackgasse", c); + } + + public static Room RandomRoom(boolean first, Exit predecessor, Counter c, Dungeon.Type isNatural){ + int number; + if(first){ + number = Dice.Roll(6, 1); + } else { + number = Dice.Roll(20, 1); + } + switch(number){ + case 1: + case 2: + case 3: return RoomBigExits(predecessor, c, isNatural); + case 4: + case 5: + case 6: return RoomSmallExits(predecessor, c, isNatural); + case 7: return RoomBigNoExits(predecessor, c, isNatural); + case 8: + case 9: return RoomBigExitsStair(predecessor, c, isNatural); + case 10: return RoomSmallNoExits(predecessor, c, isNatural); + case 11: + case 12: return RoomSmallExitsStair(predecessor, c, isNatural); + case 13: + case 14: return RoomGiant(predecessor, c, isNatural); + case 15: return CorridorStraight(predecessor, c); + case 16: return CorridorRight(predecessor, c); + case 17: return CorridorLeft(predecessor, c); + case 18: return CrossingT(predecessor, c); + case 19: return Crossing(predecessor, c); + case 20: return DeadEnd(predecessor, c); + } + return null; + } +} diff --git a/src/dungeon/Trap.java b/src/dungeon/Trap.java new file mode 100644 index 0000000..c81a686 --- /dev/null +++ b/src/dungeon/Trap.java @@ -0,0 +1,69 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package dungeon; + +import main.Dice; + +/** + * + * @author MrMcX + */ +public class Trap { + + private String trap; + + public Trap() { + trap = ""; + switch (Dice.Roll(20, 1)) { + case 1: + case 2: + case 3: + trap = "getarnte Fallgrube"; + break; + case 4: + case 5: + case 6: + trap = "getarnte Fallgrube (angespitzte Stäbe/Speere oder Eisenspitzen am Boden)"; + break; + case 7: + trap = "Schnur am Boden löst Giftwolke aus."; + break; + case 8: + trap = "Magische Glyphe löst Schadenszauber aus."; + break; + case 9: + trap = "Schnur am Boden löst Steinfall aus."; + break; + case 10: + case 11: + trap = "Schnur am Boden löst sensenartige Klingen aus."; + break; + case 12: + case 13: + trap = "Bodenplatte löst schwere Steinkugel aus, die auf die Helden zurollt."; + break; + case 14: + case 15: + trap = "Bodeplatte löst " + Dice.Roll(6, 1) + " Armbrustbolzen aus."; + break; + case 16: + trap = "Magische Glyphe löst magischen Effekt aus."; + break; + case 17: + case 18: + trap = "Ein herab fallendes Netz verstrickt die Helden."; + break; + case 19: + case 20: + trap = "Die Wände bewegen sich auf die Helden zu und drohen sie zu zerquetschen."; + break; + } + } + @Override + public String toString() { + return trap; + } +} diff --git a/src/dungeon/Treasure.java b/src/dungeon/Treasure.java new file mode 100644 index 0000000..ec56c91 --- /dev/null +++ b/src/dungeon/Treasure.java @@ -0,0 +1,96 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package dungeon; + +import main.Dice; + +/** + * + * @author MrMcX + */ +public class Treasure { + private String treasure; + + public Treasure(){ + treasure = ""; + switch(Dice.Roll(20, 1)){ + case 1: + treasure = Dice.Roll(20, 1) + " Kreuzer"; + break; + case 2: + treasure = Dice.Roll(20, 1) + " Heller"; + break; + case 3: + treasure = Dice.Roll(20, 1) + " Silbertaler"; + break; + case 4: + treasure = Dice.Roll(20, 1) + " Dukaten"; + break; + case 5: + case 6: + case 7: + treasure = "eine Handvoll Schätze"; // TODO: generate real treasure here + break; + case 8: + case 9: + treasure = "zwei Handvoll Schätze"; // TODO: generate real treasure here + break; + case 10: + treasure = "uralte Waffe/Rüstung"; + break; + case 11: + treasure = "ziemlich neue Waffe/Rüstung"; + break; + case 12: + treasure = "hervorragende Waffe/Rüstung"; + break; + case 13: + treasure = Dice.Roll(6, 1) + " goldene Trinkpokale mit jeweils 5 kleinen Rubinen"; + break; + case 14: + treasure = "Skelett mit einer kompletten Höhlenforscherausrüstung (Q7 127)"; + break; + case 15: + treasure = "ein paar Holz-/Knochenwürfel"; + break; + case 16: + treasure = "eine zerbrochene Phiole"; + break; + case 17: + switch(Dice.Roll(6, 1)){ + case 1: + case 2: + case 3: + treasure = "eine Phiole mit einem Heiltrank darin"; + break; + case 4: + treasure = "eine Phiole mit einem Astraltrank darin"; + break; + case 5: + treasure = "eine Phiole mit einem Eigenschaftselixier darin"; + break; + case 6: + treasure = "eine Phiole mit einem Halbgift darin"; + break; + } + break; + case 18: + treasure = "Götterstatue/-amulett"; + break; + case 19: + treasure = "magisches Artefakt, dessen Ladungen alle verbraucht sind"; + break; + case 20: + treasure = "magisches Artefakt"; + break; + } + } + + @Override + public String toString(){ + return treasure; + } +} diff --git a/src/main/Counter.java b/src/main/Counter.java new file mode 100644 index 0000000..f088bcc --- /dev/null +++ b/src/main/Counter.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package main; + +/** + * + * @author MrMcX + */ +public class Counter { + private int counter; + + public Counter(){ + counter = 0; + } + + public int Next(){ + counter++; + return counter; + } + + public int Peek(){ + return counter; + } +} diff --git a/src/main/Dice.java b/src/main/Dice.java new file mode 100644 index 0000000..e31cc0f --- /dev/null +++ b/src/main/Dice.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package main; + +import java.util.Random; + +/** + * + * @author MrMcX + */ +public class Dice { + public static int Roll(int sides, int times){ + Random r = new Random(); + int sum = 0; + for(int i = 0; i < times; i++){ + sum += r.nextInt(sides)+1; + } + return sum; + } +} diff --git a/src/main/DungeonGeneratorUI.form b/src/main/DungeonGeneratorUI.form new file mode 100644 index 0000000..00895d6 --- /dev/null +++ b/src/main/DungeonGeneratorUI.form @@ -0,0 +1,350 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/DungeonGeneratorUI.java b/src/main/DungeonGeneratorUI.java new file mode 100644 index 0000000..92ee864 --- /dev/null +++ b/src/main/DungeonGeneratorUI.java @@ -0,0 +1,513 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package main; + +import com.mxgraph.layout.mxCircleLayout; +import com.mxgraph.layout.mxIGraphLayout; +import com.mxgraph.swing.mxGraphComponent; +import com.mxgraph.util.mxCellRenderer; +import com.mxgraph.util.mxConstants; +import dungeon.Dungeon; +import java.awt.CardLayout; +import java.awt.Color; +import java.awt.Toolkit; +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.util.Locale; +import java.util.Map; +import java.util.ResourceBundle; +import java.util.logging.Level; +import java.util.logging.Logger; +import javax.imageio.ImageIO; +import javax.swing.JFileChooser; +import javax.swing.JOptionPane; +import javax.swing.filechooser.FileNameExtensionFilter; +import org.jgrapht.UndirectedGraph; +import org.jgrapht.ext.GmlExporter; +import org.jgrapht.ext.JGraphXAdapter; +import java.awt.image.BufferedImage; +import java.awt.Image; +import javax.swing.ImageIcon; + +/** + * + * @author MrMcX + */ +public class DungeonGeneratorUI extends javax.swing.JFrame { + + private Dungeon mDungeon; + private UndirectedGraph mGraph; + mxGraphComponent mGraphComponent; + + /** + * Creates new form DungeonGeneratorUI + */ + public DungeonGeneratorUI() { + initComponents(); + ImageIcon imageIcon = new ImageIcon("firewall.png"); + this.setIconImage(imageIcon.getImage()); + } + + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // //GEN-BEGIN:initComponents + private void initComponents() { + + jPopupMenu1 = new javax.swing.JPopupMenu(); + jPanelCards = new javax.swing.JPanel(); + jPanelCardNew = new javax.swing.JPanel(); + jButtonGenerate = new javax.swing.JButton(); + jPanelSettings = new javax.swing.JPanel(); + jLabel4 = new javax.swing.JLabel(); + jSpinSize = new javax.swing.JSpinner(); + jLabel1 = new javax.swing.JLabel(); + jComboBoxNatural = new javax.swing.JComboBox<>(); + jLabel2 = new javax.swing.JLabel(); + jComboBoxMode = new javax.swing.JComboBox<>(); + jTabs = new javax.swing.JTabbedPane(); + jPanelCardShow = new javax.swing.JPanel(); + jScrollPane1 = new javax.swing.JScrollPane(); + jTextDescription = new javax.swing.JTextArea(); + jPanelCardDraw = new javax.swing.JPanel(); + jScrollPane2 = new javax.swing.JScrollPane(); + jPanelDraw = new javax.swing.JPanel(); + jPanelStatus = new javax.swing.JPanel(); + jLabelStatus1 = new javax.swing.JLabel(); + jLabelStatus2 = new javax.swing.JLabel(); + jLabelStatus3 = new javax.swing.JLabel(); + jMenuBar = new javax.swing.JMenuBar(); + jMenu = new javax.swing.JMenu(); + jMenuNew = new javax.swing.JMenuItem(); + jMenuSave = new javax.swing.JMenuItem(); + jMenuGraph = new javax.swing.JMenu(); + jMenuExport = new javax.swing.JMenuItem(); + jMenuImage = new javax.swing.JMenuItem(); + jMenuClose = new javax.swing.JMenuItem(); + jMenuHelp = new javax.swing.JMenu(); + jMenuItem1 = new javax.swing.JMenuItem(); + jSeparator1 = new javax.swing.JPopupMenu.Separator(); + jMenuItemAbout = new javax.swing.JMenuItem(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + setTitle("DungeonGenerator"); + setExtendedState(java.awt.Frame.MAXIMIZED_BOTH); + setMinimumSize(new java.awt.Dimension(800, 600)); + + jPanelCards.setLayout(new java.awt.CardLayout()); + + jPanelCardNew.setLayout(new java.awt.BorderLayout()); + + jButtonGenerate.setText("Generieren"); + jButtonGenerate.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButtonGenerateActionPerformed(evt); + } + }); + jPanelCardNew.add(jButtonGenerate, java.awt.BorderLayout.PAGE_END); + + jPanelSettings.setLayout(new java.awt.GridLayout(4, 2)); + + jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); + jLabel4.setText("Raummaximum"); + jPanelSettings.add(jLabel4); + + jSpinSize.setModel(new javax.swing.SpinnerNumberModel(1, 1, null, 1)); + jSpinSize.setMaximumSize(new java.awt.Dimension(40, 30)); + jSpinSize.setValue(1); + jPanelSettings.add(jSpinSize); + + jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); + jLabel1.setText("Wie ist der Dungeon entstanden?"); + jPanelSettings.add(jLabel1); + + jComboBoxNatural.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Natürlich", "Künstlich" })); + jPanelSettings.add(jComboBoxNatural); + + jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); + jLabel2.setText("Wie ist der Dungeon aufgebaut?"); + jPanelSettings.add(jLabel2); + + jComboBoxMode.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Verzweigt", "Geradlinig", "Zufällig" })); + jPanelSettings.add(jComboBoxMode); + + jPanelCardNew.add(jPanelSettings, java.awt.BorderLayout.CENTER); + + jPanelCards.add(jPanelCardNew, "new"); + + jPanelCardShow.setLayout(new java.awt.BorderLayout()); + + jTextDescription.setEditable(false); + jTextDescription.setColumns(20); + jTextDescription.setRows(5); + jTextDescription.setDisabledTextColor(new java.awt.Color(0, 0, 0)); + jScrollPane1.setViewportView(jTextDescription); + + jPanelCardShow.add(jScrollPane1, java.awt.BorderLayout.CENTER); + + jTabs.addTab("Beschreibung", jPanelCardShow); + + jPanelCardDraw.setLayout(new java.awt.BorderLayout()); + + jScrollPane2.setViewportView(jPanelDraw); + + jPanelCardDraw.add(jScrollPane2, java.awt.BorderLayout.CENTER); + + jTabs.addTab("Graph", jPanelCardDraw); + + jPanelCards.add(jTabs, "show"); + + getContentPane().add(jPanelCards, java.awt.BorderLayout.CENTER); + + jPanelStatus.setLayout(new java.awt.GridLayout(1, 4)); + + jLabelStatus1.setText("Max:"); + jPanelStatus.add(jLabelStatus1); + + jLabelStatus2.setText("Type:"); + jPanelStatus.add(jLabelStatus2); + + jLabelStatus3.setText("Mode:"); + jPanelStatus.add(jLabelStatus3); + + getContentPane().add(jPanelStatus, java.awt.BorderLayout.SOUTH); + + jMenu.setText("Datei"); + + jMenuNew.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_MASK)); + jMenuNew.setText("Neuer Dungeon"); + jMenuNew.setEnabled(false); + jMenuNew.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jMenuNewActionPerformed(evt); + } + }); + jMenu.add(jMenuNew); + + jMenuSave.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK)); + jMenuSave.setText("Beschreibung speichern"); + jMenuSave.setEnabled(false); + jMenuSave.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jMenuSaveActionPerformed(evt); + } + }); + jMenu.add(jMenuSave); + + jMenuGraph.setText("Graph exportieren"); + jMenuGraph.setEnabled(false); + + jMenuExport.setText(".GML-Datei"); + jMenuExport.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jMenuExportActionPerformed(evt); + } + }); + jMenuGraph.add(jMenuExport); + + jMenuImage.setText("Bilddatei"); + jMenuImage.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jMenuImageActionPerformed(evt); + } + }); + jMenuGraph.add(jMenuImage); + + jMenu.add(jMenuGraph); + + jMenuClose.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.CTRL_MASK)); + jMenuClose.setText("Beenden"); + jMenuClose.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jMenuCloseActionPerformed(evt); + } + }); + jMenu.add(jMenuClose); + + jMenuBar.add(jMenu); + + jMenuHelp.setText("Hilfe"); + + jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, 0)); + jMenuItem1.setText("Hilfe"); + jMenuHelp.add(jMenuItem1); + jMenuHelp.add(jSeparator1); + + jMenuItemAbout.setText("Über/Lizenz"); + jMenuItemAbout.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jMenuItemAboutActionPerformed(evt); + } + }); + jMenuHelp.add(jMenuItemAbout); + + jMenuBar.add(jMenuHelp); + + setJMenuBar(jMenuBar); + + pack(); + }// //GEN-END:initComponents + + private void jMenuCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuCloseActionPerformed + System.exit(0); + }//GEN-LAST:event_jMenuCloseActionPerformed + + private void jButtonGenerateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonGenerateActionPerformed + mDungeon = new Dungeon((int) jSpinSize.getValue(), SelectedNatural(), SelectedMode()); + + mGraph = mDungeon.toGraph(); + JGraphXAdapter graphAdapter = new JGraphXAdapter(mGraph); + mGraphComponent = new mxGraphComponent(graphAdapter); + mGraphComponent.setEnabled(false); + Map edgeStyle = graphAdapter.getStylesheet().getDefaultEdgeStyle(); + edgeStyle.put(mxConstants.STYLE_NOLABEL, true); + + mxIGraphLayout layout = new mxCircleLayout(graphAdapter); + layout.execute(graphAdapter.getDefaultParent()); + + jPanelDraw.add(mGraphComponent); + jTextDescription.setText(mDungeon.toString()); + jLabelStatus1.setText("Max: " + jSpinSize.getValue()); + jLabelStatus2.setText("Type: " + SelectedNatural().toString()); + jLabelStatus3.setText("Mode: " + SelectedMode().toString()); + + jMenuSave.setEnabled(true); + jMenuNew.setEnabled(true); + jMenuGraph.setEnabled(true); + CardLayout cl = (CardLayout) jPanelCards.getLayout(); + cl.show(jPanelCards, "show"); + }//GEN-LAST:event_jButtonGenerateActionPerformed + + private void jMenuNewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuNewActionPerformed + jMenuSave.setEnabled(false); + jMenuNew.setEnabled(false); + jMenuGraph.setEnabled(false); + CardLayout cl = (CardLayout) jPanelCards.getLayout(); + cl.show(jPanelCards, "new"); + jPanelDraw.removeAll(); + jLabelStatus1.setText("Max: -"); + jLabelStatus2.setText("Type: -"); + jLabelStatus3.setText("Mode: -"); + }//GEN-LAST:event_jMenuNewActionPerformed + + private void jMenuSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuSaveActionPerformed + JFileChooser fileChooser = new JFileChooser(); + FileNameExtensionFilter filter = new FileNameExtensionFilter("Textdateien", "txt"); + fileChooser.setFileFilter(filter); + fileChooser.setDialogTitle("Speicherort wählen"); + int userSelection = fileChooser.showSaveDialog(this); + if (userSelection == JFileChooser.APPROVE_OPTION) { + try { + File file = fileChooser.getSelectedFile(); + if (!file.getName().endsWith(".txt")) { + file = new File(file.getCanonicalPath() + ".txt"); + } + if (file.exists()) { + int result = JOptionPane.showConfirmDialog(this, "Existierende Datei überschreiben?"); + if (result != JOptionPane.YES_OPTION) { + return; + } + file.delete(); + } + Path path = Files.createFile(file.toPath()); + Files.write(path, jTextDescription.getText().getBytes()); + JOptionPane.showMessageDialog(this, "Gespeichert!"); + } catch (IOException ex) { + Logger.getLogger(DungeonGeneratorUI.class.getName()).log(Level.SEVERE, null, ex); + } + } + }//GEN-LAST:event_jMenuSaveActionPerformed + + private void jMenuExportActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuExportActionPerformed + JFileChooser fileChooser = new JFileChooser(); + FileNameExtensionFilter filter = new FileNameExtensionFilter("Graph Modelling Files", "gml"); + fileChooser.setFileFilter(filter); + fileChooser.setDialogTitle("Speicherort wählen"); + int userSelection = fileChooser.showSaveDialog(this); + if (userSelection == JFileChooser.APPROVE_OPTION) { + try { + File file = fileChooser.getSelectedFile(); + if (!file.getName().endsWith(".gml")) { + file = new File(file.getCanonicalPath() + ".gml"); + } + if (file.exists()) { + int result = JOptionPane.showConfirmDialog(this, "Existierende Datei überschreiben?"); + if (result != JOptionPane.YES_OPTION) { + return; + } + file.delete(); + } + try (FileWriter fw = new FileWriter(file, false)) { + //System.setProperties(file); + GmlExporter gex = new GmlExporter(); + gex.setPrintLabels(GmlExporter.PRINT_EDGE_VERTEX_LABELS); + gex.export(fw, mGraph); + JOptionPane.showMessageDialog(this, "Gespeichert!"); + } + } catch (IOException ex) { + Logger.getLogger(DungeonGeneratorUI.class.getName()).log(Level.SEVERE, null, ex); + } + } + }//GEN-LAST:event_jMenuExportActionPerformed + + private void jMenuImageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuImageActionPerformed + JFileChooser fileChooser = new JFileChooser(); + FileNameExtensionFilter filter = new FileNameExtensionFilter("Bilddateien", ".png"); + fileChooser.setFileFilter(filter); + fileChooser.setDialogTitle("Speicherort wählen"); + int userSelection = fileChooser.showSaveDialog(this); + if (userSelection == JFileChooser.APPROVE_OPTION) { + try { + File file = fileChooser.getSelectedFile(); + if (!file.getName().endsWith(".png")) { + file = new File(file.getCanonicalPath() + ".png"); + } + if (file.exists()) { + int result = JOptionPane.showConfirmDialog(this, "Existierende Datei überschreiben?"); + if (result != JOptionPane.YES_OPTION) { + return; + } + file.delete(); + } + BufferedImage image = mxCellRenderer.createBufferedImage(mGraphComponent.getGraph(), null, 1, Color.WHITE, true, null); + ImageIO.write(image, "PNG", file); + JOptionPane.showMessageDialog(this, "Gespeichert!"); + } catch (IOException ex) { + Logger.getLogger(DungeonGeneratorUI.class.getName()).log(Level.SEVERE, null, ex); + } + } + }//GEN-LAST:event_jMenuImageActionPerformed + + private void jMenuItemAboutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemAboutActionPerformed + ResourceBundle vprops = ResourceBundle.getBundle("version", Locale.getDefault()); + String number = vprops.getString("BUILDNUMBER"); + String date = vprops.getString("BUILDDATE"); + + JOptionPane.showMessageDialog(this, "DungeonGenerator Version " + number + "\n" + + "(compiled on " + date + ")\n" + + "\n" + + "The MIT License (MIT)\n" + + "\n" + + "Copyright (c) 2016 Simon Moser IT\n" + + "\n" + + "Permission is hereby granted, free of charge, to any person\n" + + "obtaining a copy of this software and associated documentation\n" + + "files (the \"Software\"), to deal in the Software without restriction,\n" + + "including without limitation the rights to use,copy, modify,\n" + + "merge, publish, distribute, sublicense, and/or sell copies\n" + + "of the Software, and to permit persons to whom the Software\n" + + "is furnished to do so, subject to the following conditions:\n" + + "\n" + + "The above copyright notice and this permission notice shall be\n" + + "included in all copies or substantial portions of the Software.\n" + + "\n" + + "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY\n" + + "OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT\n" + + "LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n" + + "FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n" + + "IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n" + + "BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n" + + "WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n" + + "ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n" + + "SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n" + + "\n" + + "Icons made by Revicon from www.flaticon.com", "Über", JOptionPane.QUESTION_MESSAGE); + }//GEN-LAST:event_jMenuItemAboutActionPerformed + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + /* Set the Nimbus look and feel */ + // + /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. + * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html + */ + try { + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Nimbus".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (ClassNotFoundException ex) { + java.util.logging.Logger.getLogger(DungeonGeneratorUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(DungeonGeneratorUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(DungeonGeneratorUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(DungeonGeneratorUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + // + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + new DungeonGeneratorUI().setVisible(true); + } + }); + } + + private Dungeon.Mode SelectedMode() { + String sel = (String) jComboBoxMode.getSelectedItem(); + switch (sel) { + case "Verzweigt": + return Dungeon.Mode.BRANCHED; + case "Geradlinig": + return Dungeon.Mode.STRAIGHT; + default: + return Dungeon.Mode.RANDOM; + } + } + + private Dungeon.Type SelectedNatural() { + return jComboBoxNatural.getSelectedItem().equals("Künstlich") ? Dungeon.Type.ARTIFICIAL : Dungeon.Type.NATURAL; + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton jButtonGenerate; + private javax.swing.JComboBox jComboBoxMode; + private javax.swing.JComboBox jComboBoxNatural; + private javax.swing.JLabel jLabel1; + private javax.swing.JLabel jLabel2; + private javax.swing.JLabel jLabel4; + private javax.swing.JLabel jLabelStatus1; + private javax.swing.JLabel jLabelStatus2; + private javax.swing.JLabel jLabelStatus3; + private javax.swing.JMenu jMenu; + private javax.swing.JMenuBar jMenuBar; + private javax.swing.JMenuItem jMenuClose; + private javax.swing.JMenuItem jMenuExport; + private javax.swing.JMenu jMenuGraph; + private javax.swing.JMenu jMenuHelp; + private javax.swing.JMenuItem jMenuImage; + private javax.swing.JMenuItem jMenuItem1; + private javax.swing.JMenuItem jMenuItemAbout; + private javax.swing.JMenuItem jMenuNew; + private javax.swing.JMenuItem jMenuSave; + private javax.swing.JPanel jPanelCardDraw; + private javax.swing.JPanel jPanelCardNew; + private javax.swing.JPanel jPanelCardShow; + private javax.swing.JPanel jPanelCards; + private javax.swing.JPanel jPanelDraw; + private javax.swing.JPanel jPanelSettings; + private javax.swing.JPanel jPanelStatus; + private javax.swing.JPopupMenu jPopupMenu1; + private javax.swing.JScrollPane jScrollPane1; + private javax.swing.JScrollPane jScrollPane2; + private javax.swing.JPopupMenu.Separator jSeparator1; + private javax.swing.JSpinner jSpinSize; + private javax.swing.JTabbedPane jTabs; + private javax.swing.JTextArea jTextDescription; + // End of variables declaration//GEN-END:variables +} diff --git a/src/version.properties b/src/version.properties new file mode 100644 index 0000000..a5d54ec --- /dev/null +++ b/src/version.properties @@ -0,0 +1,4 @@ +#Fri, 09 Sep 2016 18:10:34 +0200 +BUILDNUMBER=6 +BUILDDATE=2016-09-09 18\:10\:34 MESZ +