made flood fill work for arbitrary graphs
fixed names
fixed documentation