fixing graph division
Merge pull request #558 from kreczko/fix_graph_division

fixing graph division