By: ThorstenSeitz
Values
traversalVisitorsSource Codeshared traversalVisitors traversalVisitors

This object contains some useful visitors. Note that wrapping them into a parent object is only necessary to avoid a compiler backend type inference error.

By: ThorstenSeitz
Functions
mapDistancesSource Codeshared DistanceMap<Vertex,Weight> mapDistances<Vertex, E, Graph, Weight>(Graph graph, Vertex origin, Weights<Weight,Vertex,E> weights)
given Vertex satisfies Object
given E satisfies Edge<Vertex,E>
given Graph satisfies IncidenceGraph<Vertex,E>
given Weight satisfies Summable<Weight> & Comparable<Weight>

Map distances of all vertices of the given graph measured from given origin according to weights. Implementation note: uses a breadth first search edge traversal.

By: ThorstenSeitz
mapHopsSource Codeshared HopDistanceMap<Vertex> mapHops<Vertex, Graph>(Graph graph, Vertex origin)
given Vertex satisfies Object
given Graph satisfies AdjacencyGraph<Vertex>

Map hop distance of all vertices of the given graph measured from given origin. Implementation note: uses a breadth first search traversal.

By: ThorstenSeitz
Interfaces
DistanceMapSource Codeshared DistanceMap<Vertex,Distance>
given Vertex satisfies Object

Distance map giving the distance of vertices measured from a given origin according to some measure.

EdgeVisitorSource Codeshared EdgeVisitor<V,E>
given V satisfies Object
given E satisfies Edge<V,E>

An EdgeVisitor is a TraversalVisitor with additional callbacks when encountering out-edges.

HopDistanceMapSource Codeshared HopDistanceMap<Vertex>
given Vertex satisfies Object

A distance map for hops.

TraversalVisitorSource Codeshared TraversalVisitor<V>

A TraversalVisitor is called during a GraphTraversal when encountering vertices.

VertexVisitorSource Codeshared VertexVisitor<V>
given V satisfies Object

A VertexVisitor is a TraversalVisitor with additional callbacks when encountering neighbors.

Classes
DistanceMapperSource Codeshared abstract DistanceMapper<Vertex,Distance,DistanceMonoid>
given Vertex satisfies Object
given Distance satisfies Summable<Distance> & Comparable<Distance>
given DistanceMonoid satisfies Monoid<Distance,DistanceMonoid>

A DistanceMapper memorizes the distance of each visited vertex from the vertex which has been visited first (called the origin). The distance of a vertex is the least number of edges connecting the origin with that vertex as encountered during the traversal.

EdgeDistanceMapperSource Codeshared EdgeDistanceMapper<Vertex,E,Distance>
given Vertex satisfies Object
given E satisfies Edge<Vertex,E>
given Distance satisfies Summable<Distance> & Comparable<Distance>

An edge-visiting distance mapper.

HopDistanceMapperSource Codeshared HopDistanceMapper<Vertex>
given Vertex satisfies Object

A vertex-visiting distance mapper which measures distance in hops, i.e. number of edges.

HopsSource Codeshared Hops

A monoid for counting hops.

VertexDistanceMapperSource Codeshared VertexDistanceMapper<Vertex,Weight>
given Vertex satisfies Object
given Weight satisfies Summable<Weight> & Comparable<Weight>

A vertex-visiting distance mapper.

traversalVisitorsSource Codeshared traversalVisitors

This object contains some useful visitors. Note that wrapping them into a parent object is only necessary to avoid a compiler backend type inference error.