flooding algorithm

class of graph algorithms