directed graph stuff to start maping flow to a chart