Uses of Class
squidpony.squidai.graph.Connection
| Package | Description |
|---|---|
| squidpony.squidai.graph |
Graphs and graph algorithms used primarily (but not exclusively) for pathfinding.
|
-
Uses of Connection in squidpony.squidai.graph
Subclasses of Connection in squidpony.squidai.graph Modifier and Type Class Description static classConnection.DirectedConnection<V>A Connection that treats A-to-B as a different edge from B-to-A.static classConnection.UndirectedConnection<V>A Connection that treats A-to-B and B-to-A as the same edge.Fields in squidpony.squidai.graph with type parameters of type Connection Modifier and Type Field Description protected OrderedMap<Connection<V>,Connection<V>>Graph. edgeMapprotected OrderedMap<Connection<V>,Connection<V>>Graph. edgeMapprotected HashMap<Node<V>,Connection<V>>Node. neighborsprotected ArrayList<Connection<V>>Node. outEdgesMethods in squidpony.squidai.graph that return Connection Modifier and Type Method Description protected Connection<V>Graph. addConnection(Node<V> a, Node<V> b)protected Connection<V>Graph. addConnection(Node<V> a, Node<V> b, float weight)protected Connection<V>UndirectedGraph. addConnection(Node<V> a, Node<V> b, float weight)Connection<V>Graph. addEdge(V v, V w)Add an edge to the graph, from v to w.Connection<V>Graph. addEdge(V v, V w, float weight)Add an edge to the graph, from v to w and with the specified weight.protected Connection<V>Node. addEdge(Node<V> v, float weight)protected Connection<V>Graph. getEdge(Node<V> a, Node<V> b)protected Connection<V>Node. getEdge(Node<V> v)protected Connection<V>UndirectedGraph. getEdge(Node<V> a, Node<V> b)protected Connection<V>DirectedGraph. obtainEdge()protected abstract Connection<V>Graph. obtainEdge()protected Connection<V>UndirectedGraph. obtainEdge()protected Connection<V>Node. removeEdge(Node<V> v)Methods in squidpony.squidai.graph that return types with arguments of type Connection Modifier and Type Method Description Collection<Connection<V>>Node. getConnections()Method parameters in squidpony.squidai.graph with type arguments of type Connection Modifier and Type Method Description voidGraph. sortEdges(Comparator<Connection<V>> comparator)Sort the edges using the provided comparator.