Uses of Interface
org.graph4j.Digraph
Packages that use Digraph
Package
Description
The main interfaces and classes for representing and using graphs.
Algorithms for analyzing connectivity of graphs and digraphs.
Graph generators of various kinds.
Algorithms for testing graph isomorphism.
Classes responsible with calculating various graph measures (degrees, number of traingles, etc.).
Algorithms that produce various orderings of the vertices of a graph.
Algorithms for graph realization problems.
Support algorithms for various type of graphs (bipartite, tournament, etc.).
Implementations of the depth-first search (DFS) and breadth-first search (BFS)
algorithms, using both iterator and visitor patterns.
-
Uses of Digraph in org.graph4j
Subinterfaces of Digraph in org.graph4jModifier and TypeInterfaceDescriptioninterfaceDirectedMultigraph<V,E> Multiple (parallel) edges are allowed.interfaceDirectedPseudograph<V,E> Multiple (parallel) edges are allowed.interfaceNetwork<V,E> Represents a single commodity transportation (flow) network.Fields in org.graph4j declared as DigraphMethods in org.graph4j that return DigraphModifier and TypeMethodDescriptionGraphBuilder.buildDigraph()Builds a directed graph, without multiple edges or self loops.Digraph.complement()Creates the complement of the digraph.Digraph.copy()Creates an identical copy of the digraph.static DigraphGraphUtils.createAcyclicOrientation(Graph graph) Creates the acyclic orientation of an undirected graph.GraphUtils.createLineGraph(Digraph digraph) Creates the line graph of a directed graph.Digraph.subgraph(int... vertices) Digraph.subgraph(Collection<Edge> edges) static DigraphThe corresponding directed graph of an undirected graph G has all the vertices of G and a pair of symmetrical arcs for each edge of G.static DigraphCreates the transpose of a directed graph.Methods in org.graph4j with parameters of type DigraphModifier and TypeMethodDescriptionGraphUtils.createLineGraph(Digraph digraph) Creates the line graph of a directed graph.static booleanGraphTests.isArborescence(Digraph digraph) Determines if a directed graph is an arborescence (also called poly-tree), that is a directed rooted tree in which all edges point away from the root.static booleanGraphTests.isBranching(Digraph digraph) Determines if a directed graph is a branching (also called poly-forest), that is a collection of disjoint arborescences.static booleanGraphTests.isStronglyConnected(Digraph digraph) Determines if a directed graph is strongly connected, that is for every pair of vertices u and v, there exists both directed paths from u to v and from v to u.static booleanGraphTests.isUnilateralConnected(Digraph digraph) Determines if a directed graph is unilateral connected, that is for every pair of vertices u and v, there exists either a directed path from u to v or one from v to u.static booleanGraphTests.isWeaklyConnected(Digraph digraph) Determines if a directed graph is weakly connected, that is its support graph is connected.static DigraphCreates the transpose of a directed graph.Constructors in org.graph4j with parameters of type Digraph -
Uses of Digraph in org.graph4j.connectivity
Methods in org.graph4j.connectivity that return DigraphModifier and TypeMethodDescriptionStrongConnectivityAlgorithm.createCondensation()Each strongly connected component is contracted to a single vertex, the resulting graph is a directed acyclic graph, the condensation.TarjanStrongConnectivity.createCondensation()Methods in org.graph4j.connectivity that return types with arguments of type DigraphModifier and TypeMethodDescriptionStrongConnectivityAlgorithm.createCondensation()Each strongly connected component is contracted to a single vertex, the resulting graph is a directed acyclic graph, the condensation.TarjanStrongConnectivity.createCondensation()StrongConnectivityAlgorithm.getStronglyConnectedComponents()TarjanStrongConnectivity.getStronglyConnectedComponents()Methods in org.graph4j.connectivity with parameters of type DigraphModifier and TypeMethodDescriptionstatic StrongConnectivityAlgorithmStrongConnectivityAlgorithm.getInstance(Digraph digraph) Constructors in org.graph4j.connectivity with parameters of type Digraph -
Uses of Digraph in org.graph4j.generators
Methods in org.graph4j.generators that return DigraphModifier and TypeMethodDescriptionTournamentGenerator.createAcyclic()Creates an acyclic tournament.RandomTreeGenerator.createArborescence()Creates a random arborescence.RandomDAGGenerator.createDAG()AbstractBipartiteGenerator.createDigraph(Boolean leftToRight) CompleteGraphGenerator.createDigraph()CycleGenerator.createDigraph(boolean clockwise) GridGenerator.createDigraph()Edges are oriented from left to right and top to bottom.PathGenerator.createDigraph(boolean leftToRight) RandomGnmBipartiteGenerator.createDigraph()RandomGnmGraphGenerator.createDigraph()RandomGnpBipartiteGenerator.createDigraph()RandomGnpGraphGenerator.createDigraph()RandomHamiltonianGenerator.createDigraph()RegularGraphGenerator.createDigraph()StarGenerator.createDigraph(boolean outward) WheelGenerator.createDigraph(boolean clockwise, boolean outward) Creates a directed wheel graph.TournamentGenerator.createRandom()Creates a random tournament.static DigraphGraphGenerator.randomArborescence(int numVertices) Generates a random arborescence.static DigraphGraphGenerator.randomDAG(int numVertices, double edgeProbability) Generates a random directed acyclic graph (DAG).static DigraphGraphGenerator.randomTournament(int numVertices) Generates a random tournament graph. -
Uses of Digraph in org.graph4j.isomorphism
Fields in org.graph4j.isomorphism declared as DigraphModifier and TypeFieldDescriptionprotected final DigraphOrderedDigraph.dgprotected final DigraphAbstractGraphIsomorphism.dg1protected final DigraphAbstractGraphIsomorphism.dg2Methods in org.graph4j.isomorphism that return DigraphMethods in org.graph4j.isomorphism with parameters of type DigraphModifier and TypeMethodDescriptionprotected abstract StateAbstractGraphIsomorphism.getStateInstance(Digraph g1, Digraph g2, boolean cache) protected StateUllmanExactGraphIsomorphism.getStateInstance(Digraph g1, Digraph g2, boolean cache) protected StateUllmanSubGraphIsomorphism.getStateInstance(Digraph g1, Digraph g2, boolean cache) protected StateVF2ExactGraphIsomorphism.getStateInstance(Digraph g1, Digraph g2, boolean cache) protected StateVF2SubGraphIsomorphism.getStateInstance(Digraph g1, Digraph g2, boolean cache) Constructors in org.graph4j.isomorphism with parameters of type DigraphModifierConstructorDescriptionAbstractUllmanState(Digraph g1, Digraph g2) AbstractUllmanState(Digraph g1, Digraph g2, boolean cache) AbstractVF2State(Digraph g1, Digraph g2) AbstractVF2State(Digraph g1, Digraph g2, boolean cache) Constructor for the initial state of the search algorithm.OrderedDigraph(Digraph dg, boolean cache) Constructor that orders the vertices of the given digraph according to their degree.UllmanExactState(Digraph g1, Digraph g2) UllmanExactState(Digraph g1, Digraph g2, boolean cache) UllmanSubState(Digraph g1, Digraph g2) UllmanSubState(Digraph g1, Digraph g2, boolean cache) VF2ExactState(Digraph g1, Digraph g2) VF2ExactState(Digraph g1, Digraph g2, boolean cache) VF2SubState(Digraph g1, Digraph g2, boolean cache) -
Uses of Digraph in org.graph4j.measures
Methods in org.graph4j.measures with parameters of type DigraphModifier and TypeMethodDescriptionstatic doubleGraphMeasures.avgIndegree(Digraph digraph) Determines the average indegree of vertices.static doubleGraphMeasures.avgOutdegree(Digraph digraph) Determines the average outdegree of vertices.static doublestatic int[]GraphMeasures.indegreeHistogram(Digraph digraph) The indegree histogram counts how many vertices have a specific indegree in the digraph.static intGraphMeasures.maxIndegree(Digraph digraph) Determines the maximum indegree of the vertices.static intGraphMeasures.maxIndegreeVertex(Digraph digraph) Determines a vertex with maximum indegree.static intGraphMeasures.maxOutdegree(Digraph digraph) Determines the maximum outdegree of the vertices.static intGraphMeasures.maxOutdegreeVertex(Digraph digraph) Determines a vertex with maximum outdegree.static intGraphMeasures.minIndegree(Digraph digraph) Determines the minimum indegree of the vertices.static intGraphMeasures.minIndegreeVertex(Digraph digraph) Determines a vertex with minimum indegree.static intGraphMeasures.minOutdegree(Digraph digraph) Determines the minimum outdegree of the vertices.static intGraphMeasures.minOutdegreeVertex(Digraph digraph) Determines a vertex with minimum outdegree.static int[]GraphMeasures.outdegreeHistogram(Digraph digraph) The outdegree histogram counts how many vertices have a specific outdegree in the digraph. -
Uses of Digraph in org.graph4j.ordering
Methods in org.graph4j.ordering that return DigraphMethods in org.graph4j.ordering with parameters of type DigraphModifier and TypeMethodDescriptionstatic int[]VertexOrderings.topological(Digraph graph) Computes a vertex ordering of a directed graph such that for every directed edge (u,v) from vertex u to vertex v, u comes before v in the ordering.Constructors in org.graph4j.ordering with parameters of type Digraph -
Uses of Digraph in org.graph4j.realization
Methods in org.graph4j.realization that return DigraphModifier and TypeMethodDescriptionDigraphRealizationAlgorithm.getDigraph()Creates a directed graph with the specified in-degrees and out-degrees.KleitmanWangDigraphRealization.getDigraph() -
Uses of Digraph in org.graph4j.support
Constructors in org.graph4j.support with parameters of type Digraph -
Uses of Digraph in org.graph4j.traversal
Constructors in org.graph4j.traversal with parameters of type DigraphModifierConstructorDescriptionTopologicalOrderIterator(Digraph graph) Creates a topological order iterator for a directed graph.