Uses of Interface
com.jgalgo.graph.IntGraph
Packages that use IntGraph
Package
Description
Algorithms for solving bipartite graph problems.
Package for common classes and interfaces used by the algorithms in the JGAlgo library.
Algorithms for solving connectivity problems, such as strongly/weakly connected components, minimum edge/vertex cuts,
ect.
Algorithms for determining isomorphism between graphs.
Algorithms for finding paths in graphs, such as shortest paths, iterating over all simple paths between two vertices,
computing the Voronoi cells given a set of sites, ect.
Algorithms for traversing graphs, such as depth-first search and breadth-first search.
Algorithms specifically for tree graphs, such as LCA or TPM.
Graphs object are the fundamental building blocks of the JGAlgo library.
-
Uses of IntGraph in com.jgalgo.alg.bipartite
Methods in com.jgalgo.alg.bipartite with parameters of type IntGraphModifier and TypeMethodDescriptionstatic Optional<IVertexBiPartition> BipartiteGraphs.getExistingPartition(IntGraph g) Get the existing bipartite partition of the givenIntGraphfrom the vertices weights. -
Uses of IntGraph in com.jgalgo.alg.common
Methods in com.jgalgo.alg.common that return IntGraphModifier and TypeMethodDescriptiondefault IntGraphIVertexPartition.blocksGraph()IVertexPartition.blocksGraph(boolean parallelEdges, boolean selfEdges) default IntGraphIVertexPartition.blockSubGraph(int block) default IntGraphIVertexPartition.blockSubGraph(int block, boolean copyVerticesWeights, boolean copyEdgesWeights) IPath.graph()IVertexPartition.graph()Methods in com.jgalgo.alg.common with parameters of type IntGraphModifier and TypeMethodDescriptionstatic IPathFind a valid path from \(u\) to \(v\).static IVertexBiPartitionCreate a new vertex bi-partition from a vertex-side map.static IVertexPartitionIVertexPartition.fromMap(IntGraph g, Int2IntMap map) Create a new vertex partition from a vertex-blockIndex map.static IVertexBiPartitionIVertexBiPartition.fromMapping(IntGraph g, IntPredicate mapping) Create a new vertex bi-partition from a vertex-side mapping function.static IVertexPartitionIVertexPartition.fromMapping(IntGraph g, IntUnaryOperator mapping) Create a new vertex partition from a vertex-blockIndex mapping function.static IVertexBiPartitionIVertexBiPartition.fromWeights(IntGraph g, IWeightsBool weights) Create a new vertex bi-partition from a vertex-side weights container.static booleanIVertexBiPartition.isPartition(IntGraph g, IntPredicate mapping) Check if a mapping is a valid bi-partition of the vertices of a graph.static booleanIVertexPartition.isPartition(IntGraph g, IntUnaryOperator mapping) Check if a mapping is a valid partition of the vertices of a graph.static booleanCheck whether the given edge list is a valid path in the given graph.static IntSetIPath.reachableVertices(IntGraph g, int source) Find all the vertices reachable from a given source vertex.static IntSetIPath.reachableVertices(IntGraph g, IntIterator sources) Find all the vertices reachable from a set of given source vertices.static IPathCreate a new path from an edge list, a source and a target vertices.static IntIteratorIPath.verticesIter(IntGraph g, int source, IntList edges) Create an iterator that iterate over the vertices visited by an edge path. -
Uses of IntGraph in com.jgalgo.alg.connect
Methods in com.jgalgo.alg.connect that return IntGraphModifier and TypeMethodDescriptionBiConnectedComponentsAlgo.Result.getBlockGraph()Get the graph of the bi-connected components. -
Uses of IntGraph in com.jgalgo.alg.isomorphism
Methods in com.jgalgo.alg.isomorphism that return IntGraphModifier and TypeMethodDescriptionIsomorphismIMapping.sourceGraph()IsomorphismIMapping.targetGraph() -
Uses of IntGraph in com.jgalgo.alg.shortestpath
Methods in com.jgalgo.alg.shortestpath that return IntGraphModifier and TypeMethodDescriptionShortestPathSingleSource.IResult.graph()default IntGraphShortestPathSingleSource.IResult.shortestPathTree()default IntGraphShortestPathSingleSource.IResult.shortestPathTree(boolean directed) Methods in com.jgalgo.alg.shortestpath with parameters of type IntGraphModifier and TypeMethodDescriptionShortestPathHeuristicSt.computeShortestPath(IntGraph g, IWeightFunction w, int source, int target, IntToDoubleFunction vHeuristic) Compute the shortest path between two vertices in an int graph.ShortestPathHeuristicStAbstract.computeShortestPath(IntGraph g, IWeightFunction w, int source, int target, IntToDoubleFunction vHeuristic) -
Uses of IntGraph in com.jgalgo.alg.traversal
Methods in com.jgalgo.alg.traversal with parameters of type IntGraphModifier and TypeMethodDescriptionstatic BfsIter.IntBfsIter.newInstance(IntGraph g, int source) Create a BFS iterator in an int graph.static DfsIter.IntDfsIter.newInstance(IntGraph g, int source) Create a DFS iterator for an int graph. -
Uses of IntGraph in com.jgalgo.alg.tree
Methods in com.jgalgo.alg.tree with parameters of type IntGraphModifier and TypeMethodDescriptionLowestCommonAncestorOffline.IQueries.newInstance(IntGraph g) Create an empty queries container.static TreePathMaxima.IQueriesTreePathMaxima.IQueries.newInstance(IntGraph g) Create an empty queries container. -
Uses of IntGraph in com.jgalgo.graph
Subinterfaces of IntGraph in com.jgalgo.graphModifier and TypeInterfaceDescriptioninterfaceA graph whose vertices and edges identifiers are indices.Methods in com.jgalgo.graph that return IntGraphModifier and TypeMethodDescriptionIntGraphBuilder.build()IntGraphBuilder.buildMutable()default IntGraphIntGraph.copy()default IntGraphIntGraph.copy(boolean copyVerticesWeights, boolean copyEdgesWeights) default IntGraphIntGraph.immutableCopy()default IntGraphIntGraph.immutableCopy(boolean copyVerticesWeights, boolean copyEdgesWeights) default IntGraphIntGraph.immutableView()default IntGraphIntGraphFactory.newCopyOf(Graph<Integer, Integer> g, boolean copyVerticesWeights, boolean copyEdgesWeights) static IntGraphIntGraph.newDirected()Create a new directed empty int graph.IntGraphFactory.newGraph()default IntGraphIntGraphFactory.newImmutableCopyOf(Graph<Integer, Integer> g) IntGraphFactory.newImmutableCopyOf(Graph<Integer, Integer> g, boolean copyVerticesWeights, boolean copyEdgesWeights) static IntGraphIntGraph.newUndirected()Create a new undirected empty int graph.default IntGraphIntGraph.reverseView()static IntGraphGraphs.subGraph(IntGraph g, IntCollection vertices, IntCollection edges, boolean copyVerticesWeights, boolean copyEdgesWeights) Create a new graph that is a subgraph of the given int graph, with option to copy weights.default IntGraphIntGraph.subGraphCopy(Collection<Integer> vertices, Collection<Integer> edges) Create a new graph that is a subgraph of this graph.default IntGraphIntGraph.undirectedView()Methods in com.jgalgo.graph with parameters of type IntGraphModifier and TypeMethodDescriptionstatic IEdgeSetCreate an edge set object of all the edges in a graph.static <T,WeightsT extends IWeights<T>>
WeightsTIWeights.createExternalEdgesWeights(IntGraph g, Class<? super T> type) Create an external edge weights container.static <T,WeightsT extends IWeights<T>>
WeightsTIWeights.createExternalEdgesWeights(IntGraph g, Class<? super T> type, T defVal) Create an external edge weights container with default values.static <T,WeightsT extends IWeights<T>>
WeightsTIWeights.createExternalVerticesWeights(IntGraph g, Class<? super T> type) Create an external vertex weights container.static <T,WeightsT extends IWeights<T>>
WeightsTIWeights.createExternalVerticesWeights(IntGraph g, Class<? super T> type, T defVal) Create an external vertex weights container with default values.static IEdgeIterIndexIdMaps.indexToIdEdgeIter(IntGraph g, IEdgeIter indexIter) static IEdgeSetIndexIdMaps.indexToIdEdgeSet(IEdgeSet indexSet, IntGraph g) Create an edge set of IDs from an edge set of indices in anIntGraph.static IEdgeSetCreate an edge set object from a plain set of edges.static intGet a random edge from the given int graph.static intGraphs.randVertex(IntGraph g, Random rand) Get a random vertex from the given int graph.static IntSetGet a view of all the self edges in an int graph.static IntGraphGraphs.subGraph(IntGraph g, IntCollection vertices, IntCollection edges, boolean copyVerticesWeights, boolean copyEdgesWeights) Create a new graph that is a subgraph of the given int graph, with option to copy weights.