Uses of Class
com.gengoai.graph.Edge
-
Packages that use Edge Package Description com.gengoai.graph com.gengoai.graph.algorithms com.gengoai.graph.io -
-
Uses of Edge in com.gengoai.graph
Subclasses of Edge in com.gengoai.graph Modifier and Type Class Description class
DirectedEdge<V>
A directed weighted edge implementation.class
UndirectedEdge<V>
An undirected weighted edge implementation.Methods in com.gengoai.graph that return Edge Modifier and Type Method Description Edge<V>
DefaultGraphImpl. addEdge(V fromVertex, V toVertex)
Edge<V>
DefaultGraphImpl. addEdge(V fromVertex, V toVertex, double weight)
Edge<V>
Graph. addEdge(V fromVertex, V toVertex)
Adds an edge to the graphEdge<V>
Graph. addEdge(V fromVertex, V toVertex, double weight)
Adds an edge to the graphEdge<V>
EdgeFactory. createEdge(V from, V to, double weight)
Creates an edge between the from and to vertices with the given weightEdge<V>
EdgeFactory. createEdge(V from, V to, JsonEntry entry)
Creates an edge between the from and to vertices filling in any given edge properties (e.g.Edge<V>
DefaultGraphImpl. getEdge(V v1, V v2)
Edge<V>
Graph. getEdge(V v1, V v2)
Gets the edge if one, between the two given verticesEdge<V>
EdgeMergeFunction. merge(Edge<V> originalEdge, Edge<V> duplicateEdge, EdgeFactory<V> factory)
Merges the information related to two edges defined over the same vertices creating a new edge.Edge<V>
DefaultGraphImpl. removeEdge(V fromVertex, V toVertex)
Edge<V>
Graph. removeEdge(V fromVertex, V toVertex)
Removes an edge from the graphMethods in com.gengoai.graph that return types with arguments of type Edge Modifier and Type Method Description Set<? extends Edge<V>>
DefaultGraphImpl. edges()
Set<? extends Edge<V>>
Graph. edges()
Edges set.Class<? extends Edge>
DirectedEdgeFactory. getEdgeClass()
Class<? extends Edge>
EdgeFactory. getEdgeClass()
Gets the type of edge this factory generates (used to validate edges being added to the graph).Class<? extends Edge>
UndirectedEdgeFactory. getEdgeClass()
default Set<? extends Edge<V>>
Graph. getEdges(V vertex)
Gets all edges incident to the given vertex.Set<? extends Edge<V>>
DefaultGraphImpl. getInEdges(V vertex)
Set<? extends Edge<V>>
Graph. getInEdges(V vertex)
Gets the edges coming in to the given vertex (i.e.Set<? extends Edge<V>>
DefaultGraphImpl. getOutEdges(V vertex)
Set<? extends Edge<V>>
Graph. getOutEdges(V vertex)
Gets the edges coming out out of the given vertex (i.e.Methods in com.gengoai.graph with parameters of type Edge Modifier and Type Method Description void
DefaultGraphImpl. addEdge(Edge<V> edge)
void
Graph. addEdge(Edge<V> edge)
Adds an edge to the graph.default boolean
Graph. containsEdge(Edge<V> edge)
Checks if an edge in the graphEdge<V>
EdgeMergeFunction. merge(Edge<V> originalEdge, Edge<V> duplicateEdge, EdgeFactory<V> factory)
Merges the information related to two edges defined over the same vertices creating a new edge.boolean
DefaultGraphImpl. removeEdge(Edge<V> edge)
boolean
Graph. removeEdge(Edge<V> edge)
Removes an edge from the graphMethod parameters in com.gengoai.graph with type arguments of type Edge Modifier and Type Method Description default void
Graph. addEdges(Collection<? extends Edge<V>> edges)
Adds a collection of edges to the graph. -
Uses of Edge in com.gengoai.graph.algorithms
Methods in com.gengoai.graph.algorithms that return types with arguments of type Edge Modifier and Type Method Description protected List<Tuple2<V,Edge<V>>>
BreadthFirstSearch. next(Deque<List<Tuple2<V,Edge<V>>>> pathes)
protected List<Tuple2<V,Edge<V>>>
DepthFirstSearch. next(Deque<List<Tuple2<V,Edge<V>>>> pathes)
List<Edge<V>>
DijkstraShortestPath. path(V source, V target)
List<Edge<V>>
ShortestPath. path(V source, V target)
The shortest path (list of edges) from the source to target vertex.List<Edge<V>>
DijkstraShortestPath. search(V startingPoint, V endingPoint)
List<Edge<V>>
GraphSearch. search(V startingPoint, V endingPoint)
Searches for a path from the given starting point to the given ending pointListMultimap<V,Edge<V>>
DijkstraShortestPath. singleSourceShortestPath(V source)
ListMultimap<V,Edge<V>>
SingleSourceShortestPath. singleSourceShortestPath(V source)
The path (list of edges) between the source vertex and all other vertices in the graphMethod parameters in com.gengoai.graph.algorithms with type arguments of type Edge Modifier and Type Method Description protected void
BreadthFirstSearch. add(Deque<List<Tuple2<V,Edge<V>>>> pathes, List<Tuple2<V,Edge<V>>> path)
protected void
BreadthFirstSearch. add(Deque<List<Tuple2<V,Edge<V>>>> pathes, List<Tuple2<V,Edge<V>>> path)
protected void
DepthFirstSearch. add(Deque<List<Tuple2<V,Edge<V>>>> pathes, List<Tuple2<V,Edge<V>>> path)
protected void
DepthFirstSearch. add(Deque<List<Tuple2<V,Edge<V>>>> pathes, List<Tuple2<V,Edge<V>>> path)
protected List<Tuple2<V,Edge<V>>>
BreadthFirstSearch. next(Deque<List<Tuple2<V,Edge<V>>>> pathes)
protected List<Tuple2<V,Edge<V>>>
DepthFirstSearch. next(Deque<List<Tuple2<V,Edge<V>>>> pathes)
-
Uses of Edge in com.gengoai.graph.io
Methods in com.gengoai.graph.io that return Edge Modifier and Type Method Description Edge<V>
EdgeDecoder. decode(Edge<V> edge, Map<String,String> properties)
Decodes the properties in theMap
adding them to the edge as necessary.Methods in com.gengoai.graph.io with parameters of type Edge Modifier and Type Method Description Edge<V>
EdgeDecoder. decode(Edge<V> edge, Map<String,String> properties)
Decodes the properties in theMap
adding them to the edge as necessary.Map<String,String>
EdgeEncoder. encode(Edge<V> edge)
Encodes the properties of an endge into map.
-