Uses of Class
org.graph4j.Edge
Packages that use Edge
Package
Description
The main interfaces and classes for representing and using graphs.
Algorithms related to flows in transportation networks.
Algorithms for testing graph isomorphism.
Algorithms for determining matchings, such as the maximum cardinality matching in bipartite graphs.
Minimum spanning tree algorithms, such as Prim's and Kruskal's.
Utility classes, such as apecialized collection for vertices and edges.
-
Uses of Edge in org.graph4j
Fields in org.graph4j with type parameters of type EdgeModifier and TypeFieldDescriptionGraphBuilderBase.edgesGraphBuilderBase.edgesMethods in org.graph4j that return EdgeModifier and TypeMethodDescriptionGraph.edge(int v, int u) Returns anEdgeobject corresponding to the specified vertices (its endpoints).NeighborIterator.edge()PredecessorIterator.edge()Edge[]Graph.edges()Creates and returns an array holding all the edges of the graph.Edge[]Graph.edgesOf(int v) Creates and returns an array holding the edges incident to a specified vertex.Edge.flip()Flips source and target, for directed edges.default Edge[]Digraph.incomingEdgesTo(int v) Creates an array holding the edges incoming to a vertex.EdgeIterator.next()Returns the next edge in the iteration.default Edge[]Digraph.outgoingEdgesFrom(int v) Creates an array holding the edges outgoing from a vertex.Methods in org.graph4j that return types with arguments of type EdgeModifier and TypeMethodDescriptionGraphUtils.createLineGraph(Digraph digraph) Creates the line graph of a directed graph.GraphUtils.createLineGraph(Graph graph) Creates the line graph of an undirected graph.Methods in org.graph4j with parameters of type EdgeModifier and TypeMethodDescriptionintAdds a new edge to the graph.intdefault booleanGraph.containsEdge(Edge e) Checks if an edge belongs to the graph.booleanEdge.isAdjacentTo(Edge other) default intMultigraph.multiplicity(Edge e) default voidGraph.removeEdge(Edge e) Removes the specified edge from the graph.Method parameters in org.graph4j with type arguments of type EdgeModifier and TypeMethodDescriptionstatic doubleGraphUtils.computeWeight(Graph graph, Collection<Edge> edges) Computes the sum of the weights of the edges in a specified collectionstatic VertexSetGraphUtils.getVertices(Graph graph, Collection<Edge> edges) Determines the set of distinct vertices belonging to a collection of edges.Digraph.subgraph(Collection<Edge> edges) DirectedMultigraph.subgraph(Collection<Edge> edges) DirectedPseudograph.subgraph(Collection<Edge> edges) Graph.subgraph(Collection<Edge> edges) Creates and returns the subgraph generated by a collection of edges.Multigraph<V, E> Multigraph.subgraph(Collection<Edge> edges) Network.subgraph(Collection<Edge> edges) Pseudograph.subgraph(Collection<Edge> edges) -
Uses of Edge in org.graph4j.flow
Methods in org.graph4j.flow that return types with arguments of type EdgeMethods in org.graph4j.flow with parameters of type Edge -
Uses of Edge in org.graph4j.isomorphism
Methods in org.graph4j.isomorphism that return Edge -
Uses of Edge in org.graph4j.matching
Constructor parameters in org.graph4j.matching with type arguments of type EdgeModifierConstructorDescriptionGreedyWeightedMatching(Graph graph, Comparator<Edge> comparator) Creates a maximal matching algorithm that iterates over the edges of the graph in the order given by a specified comparator.MaximalCardinalityMatching(Graph graph, Comparator<Edge> comparator) Creates a maximal matching algorithm that iterates over the edges of the graph in the order given by a specified comparator.This method has O(m + m log n) time complexity. -
Uses of Edge in org.graph4j.spanning
Fields in org.graph4j.spanning declared as EdgeModifier and TypeFieldDescriptionprotected final Edge[]BoruvkaMinimumSpanningTreeBase.cheapestprotected final Edge[]WeightedSpanningTreeIterator.edgesMethods in org.graph4j.spanning that return types with arguments of type Edge -
Uses of Edge in org.graph4j.util
Methods in org.graph4j.util that return types with arguments of type EdgeMethods in org.graph4j.util with parameters of type EdgeModifier and TypeMethodDescriptionbooleanDeprecated.Adds an edge to the collection.protected voidstatic voidValidator.containsEdge(Graph graph, Edge e) Checks if a graph contains an edge.booleanDeprecated.Removes an edge from the collection.Constructors in org.graph4j.util with parameters of type EdgeModifierConstructorDescriptionDeprecated.Constructs a new set containing the elements in the specified array.Constructor parameters in org.graph4j.util with type arguments of type EdgeModifierConstructorDescriptionEdgeSet(Graph graph, Collection<Edge> edges) Constructs a new set containing the elements in the specified collection.