Package it.unimi.dsi.law.fibrations
Interface ArcColouringStrategy
public interface ArcColouringStrategy
A colouring on the arcs. It is given by a
colour(int, int) function
that returns the colour of the arc between two nodes. For simplicity of implementation,
the function is allowed to return a value even if the arc does not exist.-
Method Summary
Modifier and Type Method Description intcolour(int x, int y)Returns the colour for the arc fromxtoy.
-
Method Details
-
colour
int colour(int x, int y)Returns the colour for the arc fromxtoy.This method is allows to return a value even if there is not arc from
xtoy.- Parameters:
x- a node.y- another node.- Returns:
- the colour on the arc from
xtoy, or an undefined value if no such arc exists.
-