Class Graph-Container-Edge

This is the root class for edges in graph-containers. It adds vertex-1 and vertex-2 slots.

Part of:

package cl-graph, class weighted-edge, class graph-container-directed-edge, class dot-edge, class basic-edge

Direct Superclass

basic-edgeThis is the root class for all edges in CL-Graph.

Direct Subclass

dot-edge
graph-container-directed-edgeA graph-container-directed-edge is both a directed-edge-mixin and a graph-container-edge.
weighted-edgeA weighted edge is both a weighted-edge-mixin and a graph-container-edge.

Slot

color
The `color` is used by some algorithms for bookkeeping. [?? Should probably be in a mixin]
Initargs:color; Accessors:color.
edge-id
The `edge-id` is used internally by CL-Graph for bookkeeping.
Initform:0, Initargs:edge-id; Accessors:edge-id.
elementInitargs:element, value; Accessors:value, element.
graph
The `graph` of which this edge is a part.
Initargs:graph; Reader:graph.
tag
The `tag` is used by some algorithms for bookkeeping. [?? Should probably be in a mixin]
Initargs:tag; Accessors:tag.
vertex-1
`Vertex-1` is one of the two vertexes that an edge connects. In a directed-edge, `vertex-1` is also the `source-edge`.
Initargs:vertex-1; Reader:vertex-1.
vertex-2
`Vertex-2` is one of the two vertexes that an edge connects. In a directed edge, `vertex-2` is also the `target-vertex`.
Initargs:vertex-2; Reader:vertex-2.

Direct Method

add-edgeAdd-edge adds an existing edge to a graph. As add-edge-between-vertexes is generally more natural...
add-edge-to-vertexAttaches the edge `edge` to the vertex `vertex`.
delete-edgeDelete the `edge' from the `graph' and returns it.
dfs-back-edge-p
dfs-cross-edge-p
dfs-edge-type
dfs-forward-edge-p
dfs-tree-edge-p
find-edgeSearch `graph` for an edge whose vertexes match `edge`. This means that `vertex-1` of the edge in...
other-vertexAssuming that the value-or-vertex corresponds to one of the vertexes for `edge`, this method retu...
source-vertexReturns the source-vertex of a directed edge. Compare with `vertex-1`.
target-vertexReturns the target-vertex of a directed edge. Compare with `vertex-2`.
vertexesReturns a list of the vertexes of `thing`.

Other Method

directed-edge-pReturns true if-and-only-if edge is directed
edge->dotUsed by graph->dot to output edge formatting for `edge` onto the `stream`. The function can assum...
edge-lessp-by-directionReturns true if and only if edge-1 is undirected and edge-2 is directed.
edge-lessp-by-weightReturns true if the weight of edge-1 is strictly less than the weight of edge-2.
find-vertexSearch 'graph' for a vertex with element 'value'. The search is fast but inflexible because it us...
find-vertex-ifReturns the first vertex in `thing` for which the `predicate` function returns non-nil. If the `k...
iterate-vertexesCalls `fn` on each of the vertexes of `thing`.
out-edge-for-vertex-pReturns true if the edge is connected to vertex and is either an undirected edge or a directed ed...
tagged-edge-pReturns true if-and-only-if edge's tag slot is t
undirected-edge-pReturns true if-and-only-if edge is undirected
untagged-edge-pReturns true if-and-only-if edge's tage slot is nil
weightReturns the weight of an edge. This defaults to 1.0 and can only be altered if the edge is a sub-...