Uses of Class
org.jgrapht.alg.util.Pair
Package
Description
Algorithms related to graph cycles.
Algorithms for computing maximum density subgraphs.
Graph Drawing.
Graph Drawing Basic Types and Models.
Algorithm related interfaces.
Algorithms for computing lowest common ancestors in graphs.
Algorithms for link prediction
Shortest-path related algorithms.
Utilities used by JGraphT algorithms.
Implementations of specifics for various graph types.
Importers/Exporters for various graph formats.
Specialized graph implementations using sparse matrix representations.
Immutable graphs stored using Sux4J's quasi-succinct data
structures.
-
Uses of Pair in org.jgrapht.alg.cycle
Modifier and TypeMethodDescriptionprotected Pair<HierholzerEulerianCycle<V,
E>.EdgeNode, HierholzerEulerianCycle<V, E>.EdgeNode> HierholzerEulerianCycle.computePartialCycle()
Computes a partial cycle assuming that all vertices have an even degree.Modifier and TypeMethodDescriptionprotected void
HierholzerEulerianCycle.updateGraphAndInsertLocations
(Pair<HierholzerEulerianCycle<V, E>.EdgeNode, HierholzerEulerianCycle<V, E>.EdgeNode> partialCycle, HierholzerEulerianCycle<V, E>.VertexNode partialCycleSourceVertex) Iterate over the partial cycle to remove vertices with zero degrees and compute new insert locations for vertices with non-zero degrees. -
Uses of Pair in org.jgrapht.alg.densesubgraph
Modifier and TypeClassDescriptionclass
GoldbergMaximumDensitySubgraphAlgorithmNodeWeightPerEdgeWeight<V extends Pair<?,
Double>, E> This class computes a maximum density subgraph based on the algorithm described by Andrew Vladislav Goldberg in Finding Maximum Density Subgraphs, 1984, University of Berkley.class
GoldbergMaximumDensitySubgraphAlgorithmNodeWeights<V extends Pair<?,
Double>, E> This class computes a maximum density subgraph based on the algorithm described by Andrew Vladislav Goldberg in Finding Maximum Density Subgraphs, 1984, University of Berkley. -
Uses of Pair in org.jgrapht.alg.drawing
-
Uses of Pair in org.jgrapht.alg.drawing.model
Modifier and TypeMethodDescriptionBoxes.splitAlongXAxis
(Box2D box) Split a box along the x axis into two equal boxes.Boxes.splitAlongYAxis
(Box2D box) Split a box along the y axis into two equal boxes. -
Uses of Pair in org.jgrapht.alg.interfaces
Modifier and TypeMethodDescriptionCapacitatedSpanningTreeAlgorithm.CapacitatedSpanningTree.getPartition()
Return the label-to-partition map of the underlying partition of capacitated spanning tree.CapacitatedSpanningTreeAlgorithm.CapacitatedSpanningTreeImpl.getPartition()
Modifier and TypeMethodDescriptionLowestCommonAncestorAlgorithm.getBatchLCA
(List<Pair<V, V>> queries) Return a list of LCAs for a batch of queriesLowestCommonAncestorAlgorithm.getBatchLCASet
(List<Pair<V, V>> queries) Return a list of computed sets of LCAs for a batch of queriesPredict an edge between a set of vertex pairs. -
Uses of Pair in org.jgrapht.alg.lca
-
Uses of Pair in org.jgrapht.alg.linkprediction
Modifier and TypeMethodDescriptionPair<?,
?> LinkPredictionIndexNotWellDefinedException.getVertexPair()
Get the vertex pair which caused the error.Modifier and TypeMethodDescriptionvoid
LinkPredictionIndexNotWellDefinedException.setVertexPair
(Pair<?, ?> vertexPair) Set the vertex pair which caused the error.ModifierConstructorDescriptionLinkPredictionIndexNotWellDefinedException
(String message, Pair<?, ?> vertexPair) Constructs a new exception with the specified detail message. -
Uses of Pair in org.jgrapht.alg.shortestpath
Modifier and TypeFieldDescriptionTreeSingleSourcePathsImpl.map
A map which keeps for each target vertex the predecessor edge and the total length of the shortest path.Modifier and TypeMethodDescriptionTreeSingleSourcePathsImpl.getDistanceAndPredecessorMap()
Get the internal map used for representing the paths.ModifierConstructorDescriptionBidirectionalDijkstraShortestPath
(Graph<V, E> graph, double radius, Supplier<org.jheaps.AddressableHeap<Double, Pair<V, E>>> heapSupplier) Constructs a new instance for a specified graph.BidirectionalDijkstraShortestPath
(Graph<V, E> graph, Supplier<org.jheaps.AddressableHeap<Double, Pair<V, E>>> heapSupplier) Constructs a new instance for a specified graph.ContractionHierarchyBidirectionalDijkstra
(ContractionHierarchyPrecomputation.ContractionHierarchy<V, E> hierarchy, double radius, Supplier<org.jheaps.AddressableHeap<Double, Pair<ContractionHierarchyPrecomputation.ContractionVertex<V>, ContractionHierarchyPrecomputation.ContractionEdge<E>>>> heapSupplier) Constructs a new instance of the algorithm for the givenhierarchy
,radius
andheapSupplier
.DijkstraShortestPath
(Graph<V, E> graph, double radius, Supplier<org.jheaps.AddressableHeap<Double, Pair<V, E>>> heapSupplier) Constructs a new instance of the algorithm for a given graph.DijkstraShortestPath
(Graph<V, E> graph, Supplier<org.jheaps.AddressableHeap<Double, Pair<V, E>>> heapSupplier) Constructs a new instance of the algorithm for a given graph.Construct a new instance.YenShortestPathIterator
(Graph<V, E> graph, V source, V sink, Supplier<org.jheaps.AddressableHeap<Double, Pair<GraphPath<V, E>, Boolean>>> heapSupplier) Constructs an instance of the algorithm for givengraph
,source
,sink
andheapSupplier
.YenShortestPathIterator
(Graph<V, E> graph, V source, V sink, Supplier<org.jheaps.AddressableHeap<Double, Pair<GraphPath<V, E>, Boolean>>> heapSupplier, PathValidator<V, E> pathValidator) Constructs an instance of the algorithm for givengraph
,source
,sink
,heapSupplier
andpathValidator
. -
Uses of Pair in org.jgrapht.alg.util
-
Uses of Pair in org.jgrapht.graph.specifics
Modifier and TypeFieldDescriptionFastLookupDirectedSpecifics.touchingVerticesToEdgeMap
Maps a pair of vertices <u,v> to a set of edges {(u,v)}.FastLookupUndirectedSpecifics.touchingVerticesToEdgeMap
Maps a pair of vertices <u,v> to a set of edges {(u,v)}. -
Uses of Pair in org.jgrapht.nio
Modifier and TypeMethodDescriptionvoid
BaseEventDrivenImporter.addEdgeAttributeConsumer
(BiConsumer<Pair<E, String>, Attribute> consumer) Add an edge attribute consumer.void
EventDrivenImporter.addEdgeAttributeConsumer
(BiConsumer<Pair<E, String>, Attribute> consumer) Add an edge attribute consumer.void
BaseEventDrivenImporter.addVertexAttributeConsumer
(BiConsumer<Pair<V, String>, Attribute> consumer) Add a vertex attribute consumer.void
EventDrivenImporter.addVertexAttributeConsumer
(BiConsumer<Pair<V, String>, Attribute> consumer) Add a vertex attribute consumer.void
BaseEventDrivenImporter.removeEdgeAttributeConsumer
(BiConsumer<Pair<E, String>, Attribute> consumer) Remove an edge attribute consumer.void
EventDrivenImporter.removeEdgeAttributeConsumer
(BiConsumer<Pair<E, String>, Attribute> consumer) Remove an edge attribute consumer.void
BaseEventDrivenImporter.removeVertexAttributeConsumer
(BiConsumer<Pair<V, String>, Attribute> consumer) Remove a vertex attribute consumer.void
EventDrivenImporter.removeVertexAttributeConsumer
(BiConsumer<Pair<V, String>, Attribute> consumer) Remove a vertex attribute consumer. -
Uses of Pair in org.jgrapht.opt.graph.sparse
ModifierConstructorDescriptionSparseIntDirectedGraph
(int numVertices, int numEdges, Supplier<Stream<Pair<Integer, Integer>>> edges, IncomingEdgesSupport incomingEdgesSupport) Create a new graph from an edge stream.SparseIntDirectedGraph
(int numVertices, List<Pair<Integer, Integer>> edges) Create a new graph from an edge list.SparseIntDirectedGraph
(int numVertices, List<Pair<Integer, Integer>> edges, IncomingEdgesSupport incomingEdgesSupport) Create a new graph from an edge list.SparseIntUndirectedGraph
(int numVertices, int numEdges, Supplier<Stream<Pair<Integer, Integer>>> edges) Create a new graph from an edge streamSparseIntUndirectedGraph
(int numVertices, List<Pair<Integer, Integer>> edges) Create a new graph from an edge list -
Uses of Pair in org.jgrapht.sux4j
ModifierConstructorDescriptionCreates a new immutable succinct directed graph from a supplier of streams of edges, supporting both outgoing and incoming edges.SuccinctDirectedGraph
(int numVertices, int numEdges, Supplier<Stream<Pair<Integer, Integer>>> edges, boolean incomingEdgesSupport) Creates a new immutable succinct directed graph from a supplier of streams of edges, choosing whether to support incoming edges.SuccinctDirectedGraph
(int numVertices, List<Pair<Integer, Integer>> edges) Creates a new immutable succinct directed graph from an edge list, supporting both outgoing and incoming edges.SuccinctDirectedGraph
(int numVertices, List<Pair<Integer, Integer>> edges, boolean incomingEdgesSupport) Creates a new immutable succinct directed graph from an edge list, choosing whether to support incoming edges.SuccinctIntDirectedGraph
(int numVertices, int numEdges, Supplier<Stream<Pair<Integer, Integer>>> edges) Creates a new immutable succinct directed graph from a supplier of streams of edges, supporting both outgoing and incoming edges.SuccinctIntDirectedGraph
(int numVertices, int numEdges, Supplier<Stream<Pair<Integer, Integer>>> edges, boolean incomingEdgesSupport) Creates a new immutable succinct directed graph from a supplier of streams of edges, choosing whether to support incoming edges.SuccinctIntDirectedGraph
(int numVertices, List<Pair<Integer, Integer>> edges) Creates a new immutable succinct directed graph from an edge list, supporting both outgoing and incoming edges.SuccinctIntDirectedGraph
(int numVertices, List<Pair<Integer, Integer>> edges, boolean incomingEdgesSupport) Creates a new immutable succinct directed graph from an edge list, choosing whether to support incoming edges.SuccinctIntUndirectedGraph
(int numVertices, List<Pair<Integer, Integer>> edges) Creates a new immutable succinct undirected graph from an edge list.SuccinctUndirectedGraph
(int numVertices, List<Pair<Integer, Integer>> edges) Creates a new immutable succinct undirected graph from an edge list.