Hops assigns an edge the weight of 1 and can therefore be used to count the number of edges, or 'hops' between two vertices.
no subtypes hierarchy
| Initializer |
Hops() |
| Attributes | |
zero | Source Codeshared actual Integer zero= 0Refines Monoid.zero (zero) |
| Inherited Attributes |
Attributes inherited from: Object |
Attributes inherited from: Monoid<T,M>zero |
| Methods | |
weight | Source Codeshared actual Integer weight(E edge)Refines Weights.weight |
| Inherited Methods |
Methods inherited from: Object |
Methods inherited from: Monoid<T,M>plus |
Methods inherited from: Weights<Weight,Vertex,E> |