You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.
right now, EachAdjacent() is lying in the implementations - 'adjacency' means the same thing regardless of whether the connecting edge is directed or not. so we need more enumerators that allow traversal purely of out-edges, purely of in-edges, or both (and which send the edge instead of the vertex, as EachAdjacent() does).
the final set of methods should be:
EachInEdge(Vertex, func(Edge))
EachOutEdge(Vertex, func(Edge))
EachIncident(Vertex, func(Edge))
The text was updated successfully, but these errors were encountered:
// An IncidentEdgeEnumerator iteratively enumerates a given vertex's incident edges.typeIncidentEdgeEnumeratorinterface {
EachEdgeIncidentTo(vVertex, incidentEdgeLambdaEdgeLambda)
}
// An IncidentArcEnumerator iteratively enumerates a given vertex's incident arcs (directed edges).// One enumerator provides inbound edges, the other outbound edges.typeIncidentArcEnumeratorinterface {
EachArcFrom(vVertex, outEdgeLambdaEdgeLambda)
EachArcTo(vVertex, inEdgeLambdaEdgeLambda)
}
right now,
EachAdjacent()
is lying in the implementations - 'adjacency' means the same thing regardless of whether the connecting edge is directed or not. so we need more enumerators that allow traversal purely of out-edges, purely of in-edges, or both (and which send the edge instead of the vertex, asEachAdjacent()
does).the final set of methods should be:
EachInEdge(Vertex, func(Edge))
EachOutEdge(Vertex, func(Edge))
EachIncident(Vertex, func(Edge))
The text was updated successfully, but these errors were encountered: